Nagios 4.0.7 upgrade thrown an error: "Unable to get process status"

14,816

Solution 1

For others who end up here, the solution for me was that the files in /usr/local/nagios/sbin had the wrong permissions. Setting them to 755 solved it.

Solution 2

inside /etc/nagios there is a resource.cfg file which defines the plugins path inside a $USER1$ variable. Set it to the existing plugins directory, hopefully will work.

Share:
14,816
Andrei Stalbe
Author by

Andrei Stalbe

Updated on June 26, 2022

Comments

  • Andrei Stalbe
    Andrei Stalbe about 2 years

    I have upgraded my nagios core to 4.0.7 and there are some errors when I log in my nagios web interface.

    First, there is an error message on the home page: Unable to get process status.

    Second, nagios seem not being able to execute any of it's plugin commands which reflects over the localhost : check_ping command returning the following status information: (No output on stdout) stderr: execvp(/opt/nagios/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory.

    The problem is obvious here, it tries to execute the plugin commands from a wrong directory. After upgrading, all plugin commands are located in /usr/local/nagios/libexec. How do I tell nagios where to look for default commands?

    Thank you.