check_ping: %s: Warning threshold must be integer or percentage!

Andy Shellam andy.shellam-lists at mailnetwork.co.uk
Thu Aug 31 14:30:37 CEST 2006


Ranjeet,

Only just got this e-mail after I'd replied!

OK this is what's happening. Firstly, check_ping on your Nagios machine 
is ignored by nrpe - as that contains it's own command definitions. So, 
here:
command[check_ping]=/usr/lib/nagios/plugins/check_ping -H $ARG1$ -w 
$ARG2$ -c $AGR3$ -p 5

it's expecting the hostname as argument 1, the warning threshold as 
argument 2 and the critical threshold as argument 3. (depending on what 
your check_nrpe command reads (something like "check_nrpe -H 
$HOSTADDRESS$ -p 5666 -c $ARG1$"), what Nagios is actually passing is:

"check_ping!100.0,20%!500.0,60%", so your client machine is reading the 
host (argument 1) as 100.0,20%, the warning threshold (argument 2) as 
500.0,60% and the critical threshold as blank.

Also notice your typo in command[check_ping]: $AGR3$ should be $ARG3$

Andy.

Ranjeet Kumar wrote:
>
> Hi,
>
> In case of check_ping it throws error “check_ping: %s: Warning 
> threshold must be integer or percentage! “
>
> Server (Fedora Core 4)
>
> Command details in service section
>
> check_command check_ping!100.0,20%!500.0,60%
>
> Command
>
> # 'check_ping' command definition
>
> define command{
>
> command_name check_ping
>
> command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
>
> }
>
> check command on client (Debain)
>
> command[check_ping]=/usr/lib/nagios/plugins/check_ping -H $ARG1$ -w 
> $ARG2$ -c $AGR3$ -p 5
>
> I am using following server & client configuration: -
>
> Server : Fedora Core 4
>
> Nagios ver 2.5
>
> Nagios Plugin ver 1.4.3
>
> NRPE ver 2.5.2
>
> Client : Debian (2.6.16 kernel)
>
> Nagios Plugin ver 1.4.6
>
> Nagios NRPE : 2.0.7
>
> Please help me in solving this issue.
>
> Thanks,
>
> Ranjeet
>
> !DSPAM:37,44f6cd04143291392681367!
>
> The information contained in, or attached to, this e-mail, contains 
> confidential information and is intended solely for the use of the 
> individual or entity to whom they are addressed and is subject to 
> legal privilege. If you have received this e-mail in error you should 
> notify the sender immediately by reply e-mail, delete the message from 
> your system and notify your system manager. Please do not copy it for 
> any purpose, or disclose its contents to any other person. The views 
> or opinions presented in this e-mail are solely those of the author 
> and do not necessarily represent those of the company. The recipient 
> should check this e-mail and any attachments for the presence of 
> viruses. The company accepts no liability for any damage caused, 
> directly or indirectly, by any virus transmitted in this email.
>
> www.aztecsoft.com
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
> !DSPAM:37,44f6cd04143291392681367!
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
>
> !DSPAM:37,44f6cd04143291392681367!
>   


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list