0 bytes pin using check_ping
Andy Shellam (Mailing Lists)
andy.shellam-lists at mailnetwork.co.uk
Tue Jan 2 16:02:47 CET 2007
Yep I see your problem.
One thing you could try, *note* I've not tried this so it may or may not
be efficient, when you compile the Nagios plugins, add the following
directive to ./configure:
--with-ping-command="/bin/ping -s 0 -n -U -w %d -c %d %s"
(ie. add the "-s 0" parameter to the ping plugin).
In theory this should compile check_ping with the near-0-byte ping
command I ran manually earlier.
In practice, I don't know how you could check it's OK (unless you can
monitor bandwidth manually, or notice really low RTAs compared to the
64-byte command.)
Hope this helps some more!
Andy.
dhaval thakar wrote:
> Dear Andy,
>
> thanks for your reply,
> of course practically I'll not get 0 byte ping.
>
> i need to monitor 200 branches over vsat,
> we have limited amount of bandwidth over vsat, this bandwidth is used
> for our applications.
>
> i do not want to make 64 bytres ping for 200 branches, not even for 2
> packets this will consume my 128bytes X 200 for ping. if i could use 0
> byte ping consumption will drop down to 16bytes X 200.
>
> Secondly VSAT has latency of approx 600ms, this might not get me
> proper host result if i ping onely once or twice.
>
> I tried with check_icmp,
> but the results in "check_icmp: Failed to obtain ICMP socket:
> Operation not permitted".
> i used "chmod 777 check_icmp" but didn't worked out.
>
> Kindly help me if there any way to drop down ping bytes.
>
>
>
>> From: "Andy Shellam (Mailing Lists)"
>> <andy.shellam-lists at mailnetwork.co.uk>
>> To: nagios-users at lists.sourceforge.net
>> Subject: Re: [Nagios-users] 0 bytes pin using check_ping
>> Date: Tue, 02 Jan 2007 14:13:33 +0000
>>
>> 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
>> >
>> > >
>> >
>> >
>>
>>
>> --
>> 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
>
> _________________________________________________________________
> The MSN Entertainment Guide to Golden Globes is here. Get all the
> scoop. http://tv.msn.com/tv/globes2007/
>
>
> !DSPAM:37,459a727031949316020810!
>
>
--
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