Problems with nrpe and nagios console
Posted: Thu Aug 30, 2012 11:59 am
Hi there, im having some problems with the nagios web console and nrpe, hope you can help me with this...
I have installed and running the nrpe daemon and nagios plugins in a HPUX server. In nrpe.cfg i have the following command definition :
In my nagios server i run this command :
and it returns correctly, like this : OK - DISK usage ( this is an custom command i wrote )
i have added the following line in my remotehosts.cfg file in nagios server :
and the definition of check_nrpe_1arg in the commands.cfg file is :
But in my nagios console, the service appears with violet color, and displays the error "The check_nrpe plugin returns "CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for an error message."
Why this is happening??? can anyone please help me???
Thanks a lot!!!!!!!!!!!
I have installed and running the nrpe daemon and nagios plugins in a HPUX server. In nrpe.cfg i have the following command definition :
Code: Select all
command[check_hpux_disk]=/opt/nrpe/libexec/check_disk -w 20 -c 10Code: Select all
/usr/local/nagios/libexec/check_nrpe -H 130.0.200.111 -c check_hpux_diski have added the following line in my remotehosts.cfg file in nagios server :
Code: Select all
define service{
use generic-service ; Name of service template to use
host_name Desarrollo
service_description Root Partition
check_command check_nrpe_1arg!check_hpux_disk
}
Code: Select all
define command{
command_name check_nrpe_1arg
command_line /usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
Why this is happening??? can anyone please help me???
Thanks a lot!!!!!!!!!!!