0 bytes pin using check_ping

Andy Shellam (Mailing Lists) andy.shellam-lists at mailnetwork.co.uk
Tue Jan 2 15:13:33 CET 2007


Why do you need to make a "0 byte" ping?  (I'm not particularly up on 
networking, but a 0 byte ping would in theory send nothing, right?)

Tried doing this on my Fedora system, and you still get a minimum of 8 
bytes back:

/bin/ping -s 0 www.google.com
PING www.l.google.com (216.239.59.99) 0(28) bytes of data.
8 bytes from 216.239.59.99: icmp_seq=1 ttl=243

The Nagios plugin doesn't seem to have a size parameter, so to limit 
network traffic what you could do is only send 1 packet (in practice I 
believe it will send 2 - one when it first runs the plugin, then another 
to confirm the result - don't know why, but it's been bought to light on 
the list toward the beginning of December.)

Thus you would add "-p 1" to your check_ping command (or change the 
current value of "-p" if it's already present) to only send 1 packet.

Hope this helps.

Andy.



dhaval thakar wrote:
> Dear All,
>
> I want to monitor my VSAT branches using nagios,
> For that I need to make 0 bytes ping.
>
> Kindly suggest me how to ping 0 bytes useing check_ping plugin.
>
>
> Regards
> Dhaval
>
> _________________________________________________________________
> >From photos to predictions, The MSN Entertainment Guide to Golden Globes has 
> it all. http://tv.msn.com/tv/globes2007/
>
>
> -------------------------------------------------------------------------
> 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,459a60f431946550517838!
>
>
>   


-- 
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