Page 1 of 1

Check_ping plugin error

Posted: Wed Jun 20, 2012 8:48 am
by sreesha
Hi,

When I try to monitor the service for a remote host using check_nrpe!check_ping, im getting an error saying "you need more arguments".
In the nrpe.cfg file, the command is defined as
command[check_ping]=/opt/nrpe/libexec/check_ping -H 23.252.18.86 -w 100.0,20% -c 500.0,60%
and In the .cfg file corresponding to the host, the service is defined as
check_command check_nrpe!check_ping

Is there anything that needs to be added to this ? Please advise.

Re: Check_ping plugin error

Posted: Wed Jun 20, 2012 9:21 am
by agriffin
What does your command definition look like for check_nrpe?

Re: Check_ping plugin error

Posted: Wed Jun 20, 2012 11:01 am
by sreesha
hi,

The command definition in the nrpe.cfg file on the remote server is :
command[check_ping]=/opt/nrpe/libexec/check_ping -H 23.252.18.86 -w 100.0,20% -c 500.0,60%

Re: Check_ping plugin error

Posted: Wed Jun 20, 2012 11:26 am
by agriffin
Sorry, I meant in your Nagios configuration. It should be something similar to this:

Code: Select all

define command {
    command_name    check_nrpe
    command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$
    }

Re: Check_ping plugin error

Posted: Thu Jun 21, 2012 1:03 am
by sreesha
Hi,

The definition available in commands.cfg file of the localhost is:

define command{
command_name check-host-alive
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5
}

but, isn't this command definition applicable only for the service being monitored for the local host ?
Isn't the command definition in the nrpe.cfg what's applicable for the remote host ?
I'm new to this field and not fully aware.

Re: Check_ping plugin error

Posted: Thu Jun 21, 2012 11:05 am
by lmiltchev
You actually didn't show the check_nrpe command definition as asked by agriffin.