check_ping issue


#1

hi all am running nagios on red hat AS and nagios ver 2.6. Now every other command is working just fine apart from the check_ping command which is returning an error:
check_ping: %s: Warning threshold must be integer or percentage!
How can i remedy this?
Thanks


#2

Dunno, but it might help if we are shown the check_ping command definition and also the service check command definition.


#3

Here is the ping defination :
define command{
command_name check_ping
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
}
I donno where the values for $ARG1$and $ARG2$ are supposed to be but from what i gather they are supposed to be rerplaced with “2000,25%” is this true?


#4

Have a look in the service check definition. $ARG1$ is what comes after the first “!”, $ARG2$ after the next and so on.

So in mine I have:
check_command check_ping!200.0,20%!20000.0,60%

in which case $ARG1$ will contains “200.0,20%”.


#5

Again, the command and SERVICE defintion, please.