check_ping from 2 interfaces
Thiago Conde Figueiró
thiago at ntime.com.br
Tue Sep 16 18:23:29 CEST 2003
Here it goes. Have fun.
You might have some portability problems, but the major part is done.
I used nagios-plugins-1.3.0.
[thiago at careca plugins]$ ./check_ping -v -H demeter -w 100,50% -c
200,80% -I eth0
/bin/ping -n -U -c 5 demeter -I eth0 ==> PING OK - Packet
loss = 0%, RTA = 0.24 ms 100.000000:50% 200.000000:80%
Files description:
check_ping.c.diff: patch for check_ping.c (1.3.0) and my modified
check_ping-interface.c
config.h: changes needed in config.h (PING_COMMAND)
check_ping-interface.c: my modified version of check_ping.c
Regards,
--
Thiago Figueiró Gerência de Operações
thiago at ntime.com.br Cel.: (21) 8817-3632
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_ping.c.diff
Type: application/octet-stream
Size: 2032 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030916/3d5861e3/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.h
Type: application/octet-stream
Size: 17131 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030916/3d5861e3/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_ping-interface.c
Type: application/octet-stream
Size: 13537 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030916/3d5861e3/attachment-0002.obj>
More information about the Users
mailing list