Page 1 of 1

Problems with nrpe and nagios console

Posted: Thu Aug 30, 2012 11:59 am
by aquegles
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 :

Code: Select all

command[check_hpux_disk]=/opt/nrpe/libexec/check_disk -w 20 -c 10
In my nagios server i run this command :

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 130.0.200.111 -c check_hpux_disk
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 :

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
        }
and the definition of check_nrpe_1arg in the commands.cfg file is :

Code: Select all

define command{
command_name check_nrpe_1arg
command_line /usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
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!!!!!!!!!!!

Re: Problems with nrpe and nagios console

Posted: Thu Aug 30, 2012 1:45 pm
by slansing
This could be due to the lack of correct arguments for the check, could you:

Code: Select all

tail -f /var/log/messages