Page 1 of 1

Nagios Plugins went Cafewy

Posted: Sat Feb 16, 2013 11:16 am
by ms2oo8
First off, sorry if this forum isn't for plug-in support

I have a Nagios install that has been working, but lately I discovered it wasn't sending notifications like it should when a server is down.
Upon checking it out, I saw the logs flooded with this

I haven't touched the configuration in months, but something messed up, when I tried to verify the Nagios cfg file it received an error about the resources.cfg file (it's also missing) so I commented that line out in the main cfg file. Now Nagio starts but I get this error in the logs. Maybe the missing resources.cfg file is the problem. The only thing is, I have no idea what to put in a new resources.cfg file to replace it.

[1361030597] Warning: Return code of 127 for check of service 'CPU Load' on host 'remoteserver' was out of bounds. Make sure the plugin you're trying to run actually exists.

I'm trying to monitor remote servers with this install, the crazy part is, I can run checks on remote servers manually no problem

[root@server nagios]# /usr/local/nagios/libexec/check_nrpe -H RemoteServerIP
NRPE v2.12

[root@server nagios]# /usr/local/nagios/libexec/check_nrpe -H RemoteServerIP -c check_load
OK - load average: 0.04, 0.03, 0.00|load1=0.040;15.000;30.000;0; load5=0.030;10.000;25.000;0; load15=0.000;5.000;20.000;0;

Any tips would be greatly appreciated.

Re: Nagios Plugins went Cafewy

Posted: Mon Feb 18, 2013 1:21 am
by jsmurphy
Your problem here is definitely the missing resources.cfg file, without it $USER1$ will be empty which means nagios won't be able to find the path to the libexec directory.

By default the resources.cfg file contains these lines:

Code: Select all

# Path to the plugins
$USER1$=/usr/local/nagios/libexec

# Path to event handlers
#$USER2$=/usr/local/nagios/libexec/eventhandlers
If you recreate the file with the above content that should solve your problem (also obviously uncomment it in the nagios.cfg)

Re: Nagios Plugins went Cafewy

Posted: Tue Feb 19, 2013 10:51 am
by slansing
Marking as resolved, if you have further questions let us know in a new thread! Thanks for the tips Jsmurphy!