Re: Check_Load displays load even if monitored node is off
Posted: Wed Jan 18, 2017 7:33 am
Thanks for your help 
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
pi@raspberrypi:/usr/lib/nagios/plugins $ ./check_nrpe -H 10.10.133.120 -c check_load
OK - load average: 0.19, 0.29, 0.34|load1=0.190;15.000;30.000;0; load5=0.290;10.000;25.000;0; load15=0.340;5.000;20.000;0;Code: Select all
d78a@ei-rn-lab12 /usr/local/nagios/libexec $ ./check_mem -u -w 10 -c 50
CRITICAL - 90.4% (1852256 kB) used!|TOTAL=2048836KB;;;; USED=1852256KB;204883;1024418;; FREE=196580KB;;;; CACHES=998268KB;;;;
Code: Select all
pi@raspberrypi:/usr/lib/nagios/plugins $ ./check_nrpe -H 10.10.133.120 -c check_mem
NRPE: Command 'check_mem' not definedCode: Select all
command[check_mem]=/usr/local/nagios/libexec/check_mem -w 70 -c 90Code: Select all
define service{
use generic-service
host_name pcneben
service_description CPU Load NRPE
check_command check_nrpe!check_load
}
define service{
use generic-service
host_name pcneben
service_description RAM Usage NRPE
check_command check_nrpe!check_mem
}
My guess is it's defined already, but missing $ARG$ variables. What is the output of this command?Additionaly the results I get - when I set the Service description - in Nagios is only the Version Number of NRPE, but not the requested Information.
When i try to define a command in the command.cfg for nrpe, it tells me that there is already a definition for that, but I have no idea, where this should supposed to be.
Code: Select all
grep '' /usr/local/nagios/etc/*