Check_ping plugin error

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
sreesha
Posts: 19
Joined: Wed Jun 13, 2012 12:18 pm

Check_ping plugin error

Post 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.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Check_ping plugin error

Post by agriffin »

What does your command definition look like for check_nrpe?
sreesha
Posts: 19
Joined: Wed Jun 13, 2012 12:18 pm

Re: Check_ping plugin error

Post 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%
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Check_ping plugin error

Post 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$
    }
sreesha
Posts: 19
Joined: Wed Jun 13, 2012 12:18 pm

Re: Check_ping plugin error

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Check_ping plugin error

Post by lmiltchev »

You actually didn't show the check_nrpe command definition as asked by agriffin.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked