• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Check_mk_agent not working on 2.1.5

Scheduled Pinned Locked Moved pfSense Packages
7 Posts 4 Posters 1.8k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B
    BeNe
    last edited by Dec 30, 2014, 12:15 PM

    Hi,

    i want to use the check_mk_agent on my pfSense 2.1.5 but it doesn´t work.
    Installed the package from the default repository and i´m unable to use it.

    Here is the System Log:

    
    cannot execute /usr/local/bin/check_mk_agent: No such file or directory
    
    

    The file itself exists:

    
    [2.1.5-RELEASE][root@fw01.private]/root(1): ls -la  /usr/local/bin/check_mk_agent
    -rwxr-xr-x  1 root  wheel  14131 Dec 14 13:03 /usr/local/bin/check_mk_agent
    [2.1.5-RELEASE][root@fw01.private]/root(2):
    
    

    I de/reinstalled the package with any success. Is it a wrong chroot ?
    Does someone has an hint ?

    Thanks!
    check_mk_2.PNG
    check_mk_2.PNG_thumb
    check_mk_1.PNG
    check_mk_1.PNG_thumb

    Use *BSD and feel free

    1 Reply Last reply Reply Quote 0
    • K
      kristous
      last edited by Jan 5, 2015, 3:35 PM

      Hi,

      I got the same problem on our newest firewall.

      After a bit of research the problem is the following:

      In the newest innovation releases the interpreter for the check_mk freebsd agent changed from /bin/sh to /bin/bash and as the package fetches HEAD from git it gets the "latest and greatest".
      The "No such file or directory" error means that bash can not be found.

      As I quick fix I will exchange /usr/local/bin/check_mk_agent manually with a working version.

      Regards
      Christian

      1 Reply Last reply Reply Quote 0
      • B
        BeNe
        last edited by Jan 10, 2015, 12:25 PM

        Thanks for this important info!  :)

        I changed my current version with this one here (last version that useses /bin/sh as shell)
        –> http://git.mathias-kettner.de/git/?p=check_mk.git;a=blob;f=agents/check_mk_agent.freebsd;hb=1270a651efef0bc1a69debdf7b2624eb22762045

        Seems check_mk_agent is running now - but i´m still unable to connet with my check_mk instance.

        Any hints ?
        Or is there more to change than only this file ?

        Thanks!

        Use *BSD and feel free

        1 Reply Last reply Reply Quote 0
        • K
          kristous
          last edited by Jan 11, 2015, 4:46 PM

          The only thing I did to make it work again was exchanging the agent with an older one.

          And of course I did configure it. :-)

          1 Reply Last reply Reply Quote 0
          • Y
            yarick123
            last edited by Mar 3, 2015, 2:08 PM

            Hi,

            I have just restored my yesterdays configuration on pfSense 2.1.5. All packages seems to be automatically updated. The version of check_mk_agent is now v0.1.1.

            Now I have the same problem as some other:

            inetd[95958]: cannot execute /usr/local/bin/check_mk_agent: No such file or directory

            I am sorry, @kristous, I have understood, that the package is functional now:

            @kristous:

            The only thing I did to make it work again was exchanging the agent with an older one.

            Am I wrong supposing, that current version of check_mk_agent works correctly with pfSense 2.1.5?

            P.S. Is it possible to install an old version of a package?

            Regards

            1 Reply Last reply Reply Quote 0
            • Y
              yarick123
              last edited by Mar 3, 2015, 2:10 PM

              Hi @kristous,

              I am sorry, the question should not be addressed to you. I supposed, that you are the author of the package.

              Regards

              1 Reply Last reply Reply Quote 0
              • 8
                8191
                last edited by Apr 22, 2015, 6:30 PM

                The last working version is http://git.mathias-kettner.de/git/?p=check_mk.git;a=blob;f=agents/check_mk_agent.freebsd;hb=e13899bde8bdafe13780427811c8153c59be807f. Versions after that introduced the get_cached function, which is not supported by sh.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                  This community forum collects and processes your personal information.
                  consent.not_received