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.
Check_ping plugin error
Re: Check_ping plugin error
What does your command definition look like for check_nrpe?
Re: Check_ping plugin error
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%
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
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
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.
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
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!