AW: [Nagiosplug-help] Check_ping performance data?

Andreas Ericsson ae at op5.se
Fri Jun 18 12:54:03 CEST 2004


Andreas Ericsson wrote:
> Sand Philipp wrote:
> 
>> Questions to that plugin:
>>
>> 1. why must it be run with root priv.?
> 
> 
> To access raw sockets and be able to send ICMP packets. ls -l `which 
> ping`, and you'll see that it also has mode 4755.
> 
>> 2. with that setuid interval limitation of < 25 ... Did you mean not to
>> set the interval < 25s oder < 25 minutes?
> 
> 
> The timing interval is calculated in msecs, and is there so that regular 
> users shouldn't be able to flood the network with icmp packets.
> 
>> 3. Is there a possibility to get performance data out of that plugin
>> when multiple ips are used?
> 
> 
> Maybe. How do you suggest the perfdata be delivered? AFAICT, every 
> variable needs to carry a unique name, which means pl and rta 
> (packetloss and roundtrip time average) would have to be obscured to 
> include the host-address or something equally per-host unique as well.
> 
> The main feature of check_icmp is that it's MUCH faster than regular 
> check_ping, which means it's not that big a tradeoff to simply add one 
> more service instead of checking several interfaces.
> 
> Program logic comparisons;
> check_ping sends a packet and awaits a response within 1 second. It 
> waits the entire second even if the packet appears earlier. When it's 
> done waiting, it sends another packet.
> 
> check_icmp sends a packet and awaits critical_rta time. If the packet 
> appears earlier it stops waiting and moves on to check if 
> packet_interval has passed while it was waiting. If not, it sleeps the 
> remaining time before sending again. Otherwise it sends the packet 
> immediately.
> RTA threshold values can be anything. Packets entering in misplaced 
> order are properly recognized and accounted for (otherwise packet rta 
> result could never be higher than critical_rta, since those packets 
> would be considered lost. That somehow seems appropriate anyways).
> 
>> I read the fping description and was very
>> happy that you can ping more than one ip with one command. But when i
>> tried it with the check_icmp i only get:
>>
>> # ./check_icmp -H 192.168.110.22 192.168.110.76 -w 200,20% -c 500,50% -p
>> 5
>> <br>
>> <br>
>> OK - All 2 hosts are alive
>>
> 
> That's a bug. It should print out status for each of the two hosts, with 
> a <br> instead of \n in between. I guess I screwed something up when I 
> added perfdata output to it.
> 

Here is a bug-fixed version. It doesn't print performance data output 
for all hosts (still don't know how to do that), but for one host it 
should print things properly now.

Let me know if this works, ok?

>> Back...no performance data :-/ and I think those double <br> are a
>> problem for nagios, too...
>>
> 
> Not the <br>'s, but the linebreaks will be a hassle. I'll fix this and 
> release 0.5 later today.
> 
>>
>>> -----Original Message-----
>>> From: Andreas Ericsson [mailto:ae at op5.se] Sent: Thursday, June 17, 
>>> 2004 11:05 AM
>>> To: nagiosplug-help at lists.sourceforge.net
>>> Subject: Re: AW: [Nagiosplug-help] Check_ping performance data?
>>>
>>> Bock, Christian wrote:
>>>
>>>> nagiosplug-help-admin at lists.sourceforge.net wrote:
>>>>
>>>>
>>>>> Jon Lyons wrote:
>>>>>
>>>>>
>>>>>> Anyone know when the performance data information will be added to 
>>>>>> the check_ping plugin? Trying to use the new perfparse for stats...
>>>>>>
>>>>>
>>>>> It's added to the check_icmp plugin, which drifts around 
>>>
>>>
>>> from time to
>>>
>>>>> time on the mailing list.
>>>>> I wrote it, so gimme a holler if you want a copy.
>>>>
>>>>
>>>>
>>>> I definately want a copy, that's what I need right now :-)
>>>>
>>>>
>>>
>>> Ok. I've gotten a small drove of emails about this, so I'll post it 
>>> once more to the list then.
>>>
>>> Plugin-developers; Any chance this might make it into the default 
>>> plugins any time soon?
>>>
>>>
>>>>>> Thanks!
>>>>>>
>>>>>
>>>> ... a lot
>>>>
>>>> chris
>>>>
>>>>
>>>>
>>>>> You're welcome. ;-)
>>>>>
>>>>>
>>>>> -------------------------------------------------------
>>>>> This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
>>>>> Learn from the experts at JavaOne(SM), Sun's Worldwide Java 
>>>
>>>
>>> Developer
>>>
>>>>> Conference, June 28 - July 1 at the Moscone Center in San
>>>>> Francisco, CA
>>>>> REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority
>>>>> Code NWMGYKND
>>>>> _______________________________________________
>>>>> Nagiosplug-help mailing list
>>>>> Nagiosplug-help at lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
>>>>>
>>>>>
>>>>>>>> Please include plugins version (-v) and OS when reporting any
>>>>>>>> issue. Messages without supporting info will risk being sent to
>>>>>>>> /dev/null 
>>>>
>>>>
>>>>
>>>>
>>> -- 
>>> Andreas Ericsson
>>> OP5 AB
>>> +46 (0)733 709032
>>> andreas.ericsson at op5.se
>>>
>>>
>>> -------------------------------------------------------
>>> This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
>>> Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
>>> Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
>>> REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
>>> _______________________________________________
>>> Nagiosplug-help mailing list
>>> Nagiosplug-help at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
>>> ::: Please include plugins version (-v) and OS when reporting any 
>>> issue. ::: Messages without supporting info will risk being sent to 
>>> /dev/null
>>>
>>>
>>
>>
>>
>> -------------------------------------------------------
>> This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
>> Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
>> Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
>> REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
>> _______________________________________________
>> Nagiosplug-help mailing list
>> Nagiosplug-help at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
>> ::: Please include plugins version (-v) and OS when reporting any 
>> issue. ::: Messages without supporting info will risk being sent to 
>> /dev/null
>>
> 

-- 
Andreas Ericsson
OP5 AB
+46 (0)733 709032
andreas.ericsson at op5.se




More information about the Help mailing list