Check_mk_agent not working on 2.1.5



  • 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!





  • 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



  • 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!



  • 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. :-)



  • 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



  • Hi @kristous,

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

    Regards



  • 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.


Log in to reply