[Nagiosplug-devel] check_rta (aka check_icmp 0.9)

Subhendu Ghosh sghosh at sghosh.org
Wed Jan 26 20:38:02 CET 2005


builds/runs on Fedora3 -

Will always need to run as root as most platforms restrict access to raw 
sockets...

On Wed, 26 Jan 2005, Joe Rhett wrote:

> In contrast, it builds and runs fine on Solaris 8/x86 if run as root.
>
> $ make
> gcc -O2 -funroll-loops -fomit-frame-pointer -W -Wall -Wpointer-arith
> -Wimplicit -Wshadow -Wstrict-prototypes -Wmissing-prototypes    -c
> check_rta.c -o check_rta.o
> check_rta.c: In function `get_timevar':
> check_rta.c:1016: warning: subscript has type `char'
> uname -s | grep -i Linux && gcc check_rta.o -o check_rta || \
> uname -s | grep -i bsd && gcc check_rta.o -o check_rta || \
>        gcc -lnsl -lsocket check_rta.o -o check_rta
>
> cyclops 5$ ./check_rta -H www.google.com
> www.google.com: rta nan, lost 100%|rta=0.000ms;200;500;0; pl=100%;40;80;;
>
> cyclops 6$ sudo ./check_rta -H www.google.com
> www.google.com: rta 0.130ms, lost 0%|rta=0.130ms;200;500;0; pl=0%;40;80;;
>
> On Wed, Jan 26, 2005 at 03:59:09PM -0800, Joe Rhett wrote:
>> On Tue, Jan 25, 2005 at 10:42:27AM +0100, Andreas Ericsson wrote:
>>> Those who have been kind enough to try the check_rta/(new)check_icmp
>>> should have a look at https://devel.op5.se/oss (oss.op5.se is down due
>>> to isp problems, I will arrange for mirroring when it goes back up so
>>> both locations should work properly from now on), where you will find
>>> the latest version available. It should build properly on linux, *bsd
>>> and solaris now, although I have only tested linux.
>>
>> It builds and appears to run on FreeBSD, but it doesn't actually generate
>> the icmp packets.
>>
>> ardbeg3:[1012] ./check_rta www.google.com
>> www.google.com: rta nan, lost 100%|rta=0.000ms;200;500;0; pl=100%;40;80;;
>> ardbeg3:[1013] ./check_rta -H www.google.com
>> www.google.com: rta nan, lost 100%|rta=0.000ms;200;500;0; pl=100%;40;80;;
>> ardbeg3:[1016] ./check_rta -H www.google.com -w 1000,50% -c 2000,80% -p 5
>> www.google.com: rta nan, lost 100%|rta=0.000ms;1000;2000;0; pl=100%;50;80;;
>>
>> Running it as root produces a core dump.
>>
>> --
>> Joe Rhett
>> Senior Geek
>> Meer.net
>
>

-- 





More information about the Devel mailing list