I have a working server with 3.2.0 with the following command:
Code: Select all
define service{
use generic-service
host_name remoteserverip
service_description Current Load
check_command check_nrpe_1arg!check_load
}But when i do : "/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg" i got an error;
So I tried to do it the other way...Checking services...
Error: Service check command 'check_nrpe_1arg' specified in service 'Current Load' for host 'remoteserverip' not defined anywhere!
On my monitoring server i wrote:
Code: Select all
define service{
use generic-service
host_name remoteserverip
service_description Current Load
check_command check_nrpe!check_load
}I set :
command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20
(the following is commented : #command[check_load]=/usr/lib/nagios/plugins/check_load -w $ARG1$ -c $ARG2$)
Checking with ssh is ok : /usr/lib/nagios/plugins# ./check_nrpe -H remoteip -c check_load
OK - load average: 1.16, 2.42, 2.32|load1=1.160;15.000;30.000;0; load5=2.420;10.000;25.000;0; load15=2.320;5.000;20.000;0;
BUT Nagios dashboard on the monitoring is not. It says : "(No output returned from plugin)"
Nagios log on the monitoring server says : "Service Unknown[05-15-2012 13:31:50] SERVICE ALERT: remoteserverip;Current Load;UNKNOWN;SOFT;1;(No output returned from plugin)"
Syslog on remote server says :
May 15 14:55:33 mx nrpe[2225]: Starting up daemon
May 15 14:55:33 mx nrpe[2225]: Listening for connections on port 5666
May 15 14:55:33 mx nrpe[2225]: Allowing connections from: monitoringip
Humfff
Any help will be appreciated.
Bernard