Problems with nrpe and nagios console

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
aquegles
Posts: 3
Joined: Wed Aug 22, 2012 2:23 pm

Problems with nrpe and nagios console

Post 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!!!!!!!!!!!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Problems with nrpe and nagios console

Post 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
Locked