Plugin issue

Andy Shellam (Mailing Lists) andy.shellam-lists at mailnetwork.co.uk
Sat Jan 13 12:08:36 CET 2007


What's the command line of your check_ping command (as defined in Nagios?)

The correct syntax is:
/path/to/nagios/plugins/check_ping -H <ip address> -w 2000,25% -c 4000,50%

whereby <ip address> is the IP of the machine to ping, 2000 is the 
round-trip time (in ms) to generate a warning, 25% is the packet-loss 
amount to generate a warning, and ditto for the critical.

Also note there's a bug in the check_ping whereby if the "critical" 
parameters are incorrect, it says the error is with the "warning" 
parameters - so check that's not the case as well.  And you do need the 
percent signs ;)

Andy.

tyrus at icsit.jkuat.ac.ke wrote:
> Hi guys am still running nagios and now there,s this error am getting with
> the check_ping command. It is giving me an error that:
> check_ping: %s: Warning threshold must be integer or percentage!
> Am wondering why that is the case and yet am able to ping th machine.
> am running red hat 9 AS and nagios version 2.6.
> Your assistance will highly be appreciated.
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> 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,45a892bd137106816226190!
>
>
>   


-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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