NRPE Plugin
I have 4 Linux Guests including the one for Nagios Would like to check memory usage on them Found a page by Box293 which gave me the commands to use with NRPE
My cfg file extract
Code: Select all
define service {
host_name localhost
service_description Check Memory Used Physical
check_command check_nrpe!Check_Memory! -a show-all type=physical 'warning=used>80%' 'critical=used>90%'
check_interval 1
use generic-service
}
define service {
host_name RaspberryPi
service_description Check Memory Used Physical
check_command check_nrpe!Check_Memory! -a show-all type=physical 'warning=used>80%' 'critical=used>90%'
check_interval 1
use generic-service
}
define service {
host_name TGCS018
service_description Check Memory Used Physical
check_command check_nrpe!Check_Memory! -a show-all type=physical 'warning=used>80%' 'critical=used>90%'
check_interval 1
use generic-service
}
define service {
host_name vMA
service_description Check Memory Used Physical
check_command check_nrpe!Check_Memory! -a show-all type=physical 'warning=used>80%' 'critical=used>90%'
check_interval 1
use generic-service
}
The errors on Nagios
RaspBerryPi CHECK_NRPE: No output returned from daemon. This is Raspbian
TGCS018 (Return code of 255 is out of bounds) This is CentOS 7
LocalHost CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages. This is the Nagios Server Ubuntu 16.04.01
vMA (Return code of 255 is out of bounds) This is vSphere Management Assistant 6.0.0.1
Ran the command line
Raspberrypi
nagios@tgcs017:/usr/local/nagios/etc/objects$ /usr/lib/nagios/plugins/check_nrpe -H 10.2.8.70 -t 30 CheckMEM -a ShowAll=long type=physical
I (0,4,1,73 2012-12-17) seem to be doing fine...
nagios@tgcs017:/usr/local/nagios/etc/objects$
TGCS018
nagios@tgcs017:/usr/local/nagios/etc/objects$ /usr/lib/nagios/plugins/check_nrpe -H 10.2.8.74 -t 30 CheckMEM -a ShowAll=long type=physical
connect to address 10.2.8.74 port 5666: Connection refused
connect to host 10.2.8.74 port 5666: Connection refusednagios@tgcs017:/usr/local/nagios/etc/objects$
vMA
nagios@tgcs017:/usr/local -H 10.2.8.7 -t 30 CheckMEM -a ShowAll=long type=physical
connect to address 10.2.8.7 port 5666: Connection refused
connect to host 10.2.8.7 port 5666: Connection refusednagios@tgcs017:/usr/local/nagios/etc/objects$
Localhost
nagios@tgcs017:/usr/local/nagios/etc/objects$ /usr/lib/nagios/plugins/check_nrpe -H localhost -t 30 CheckMEM -a ShowAll=long type=physical
CHECK_NRPE: Error - Could not complete SSL handshake.
nagios@tgcs017:/usr/local/nagios/etc/objects$
What am I doing wrong here?
Thanks