I have nagios server installed on linux server (centos 6) , and all communications with nrpe clients are done .
To monitor free memory usage of (RAM),I created script perl to do this .
You can see below the result of script's execution
Code: Select all
bash-4.1# ./check_mem -f -w 20 -c 10
CRITICAL - 9.7% (183684 kB) free!|TOTAL=1902800KB;;;; USED=1719116KB;1522240;1712520;; FREE=183684KB;;;; CACHES=458376KB;;;;
==> Nagios_server
on commands.cfg
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c $ARG1$
}
on service.cfg
define service{
use generic-service
host_name XXXXXXX
service_description Free Memory
check_command check_nrpe!check_mem
}
==> Nrpe client
command[check_mem]=/usr/lib64/nagios/plugins/check_mem -f -w 20 -c 10
Problem : when it's ececuted remotly i got this error (its tha same on web interface and CLI ):
Code: Select all
NRPE: Unable to read output
Thank you in advance
Best Regards
Seddik Alaoui