Nagios 4.0.7 update threw error: "Failed to get process status"

I updated mine nagios core

to 4.0.7

and there are some errors when logging into my nagios web interface.

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

.

Secondly, nagios

it seems that he can not perform any of its plug-in commands that reflect the team localhost : check_ping

, returning the following information about the condition (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 is trying to execute plugin commands from the wrong directory. After the update, all plugin commands are located in /usr/local/nagios/libexec

. How do I tell nagios

where to look for default commands?

Thank.

+3


source to share


4 answers


For others who ended up here, the solution for me was that the files in / usr / local / nagios / sbin had the wrong permissions. By setting them to 755, he decided.



+3


source


inside /etc/nagios

there is a file resource.cfg

that defines the path of plugins inside a variable $USER1$

. Install it in your existing plugins directory, hopefully it will work.



+1


source


You need to update your command.cfg commands to the correct paths.

Nagios Command Configuration Documentation

0


source


I know this is an old thread, but for others who may find it, I had plugins in a folder other than / opt / nagios / libexec /

Which is fixed to copy the plugins from where they were to the folder Nagios expects them to be.

For example: cp -RL / usr / local / nagios / libexec / * / opt / nagios / libexec /

0


source







All Articles