BBNET customize short interval ping
Hello guys,
I have un other little xymon just for monitore a link throught VPN, or internet...:)
I'd like to configure xymon to monitor quickly link (every one second, and less, if possible).
Currentl, my hobbitlaunch is configured as fallow :
[bbnet] ENVFILE /home/xymon/xymon/server/etc/hobbitserver.cfg NEEDS hobbitd CMD bbtest-net --report --ping --checkresponse LOGFILE $BBSERVERLOGS/bb-network.log INTERVAL 1s
BUT the time isnt respect:
root at my_little_xymon:~# tcpdump -i eth0 host 10.X.X.X tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes 08:57:02.183784 IP my_little_xymon.34417 > 10.X.X.X.telnet: S 1399962259:1399962259(0) win 5840 <mss 1460,sackOK,timestamp 17099822 0,nop,wscale 5> 08:57:02.228000 IP my_little_xymon > 10.X.X.X: ICMP echo request, id 8525, seq 2, length 64 08:57:05.177405 IP my_little_xymon.34417 > 10.X.X.X.telnet: S 1399962259:1399962259(0) win 5840 <mss 1460,sackOK,timestamp 17100122 0,nop,wscale 5> 08:57:08.137567 IP my_little_xymon > 10.X.X.X: ICMP echo request, id 8524, seq 2, length 64 08:57:08.205629 IP 10.X.X.X > my_little_xymon: ICMP echo reply, id 8524, seq 2, length 64 08:57:11.177752 IP my_little_xymon.34417 > 10.X.X.X.telnet: S 1399962259:1399962259(0) win 5840 <mss 1460,sackOK,timestamp 17100722 0,nop,wscale 5> 08:57:23.083278 IP my_little_xymon.55506 > 10.X.X.X.telnet: S 1733075379:1733075379(0) win 5840 <mss 1460,sackOK,timestamp 17101912 0,nop,wscale 5> 08:57:23.093086 IP my_little_xymon.55510 > 10.X.X.X.telnet: S 1743087463:1743087463(0) win 5840 <mss 1460,sackOK,timestamp 17101913 0,nop,wscale 5> 08:57:23.126564 IP my_little_xymon > 10.X.X.X: ICMP echo request, id 8534, seq 2, length 64 08:57:23.138561 IP my_little_xymon > 10.X.X.X: ICMP echo request, id 8535, seq 2, length 64 08:57:26.077281 IP my_little_xymon.55506 > 10.X.X.X.telnet: S 1733075379:1733075379(0) win 5840 <mss 1460,sackOK,timestamp 17102212 0,nop,wscale 5> 08:57:26.087252 IP my_little_xymon.55510 > 10.X.X.X.telnet: S 1743087463:1743087463(0) win 5840 <mss 1460,sackOK,timestamp 17102213 0,nop,wscale 5> 08:57:29.047321 IP my_little_xymon > 10.X.X.X: ICMP echo request, id 8533, seq 2, length 64 08:57:29.048010 IP my_little_xymon > 10.X.X.X: ICMP echo request, id 8534, seq 2, length 64 08:57:29.154068 IP 10.X.X.X > my_little_xymon: ICMP echo reply, id 8533, seq 2, length 64 08:57:29.196275 IP 10.X.X.X > my_little_xymon: ICMP echo reply, id 8534, seq 2, length 64
I need to debug issue to micro line cut, and the ping is spaced out more 1 second.
How to, can I win a time more short than currently, for test more accurate ?
Thank you.
--
<mailinglist.benoit - at - gmail!com>
You would be better off writing your own test than to try to do this with the standard Xymon functions. All you need to do is write a test that will ping at one second intervals and record the results. then, at the end of your test you can scan the results and send a consolidated message to Xymon for display.
One ping per second is very aggressive, and you are going to find that many pings are dropped or delayed (deferred) due to normal network activity -- and that this is not a problem.
GLH
From: Naudit007 [mailto:mailinglist.benoit at gmail.com]
Sent: Friday, February 20, 2009 2:42 AM
To: hobbit at hswn.dk
Subject: [hobbit] BBNET customize short interval ping
Hello guys,
I have un other little xymon just for monitore a link throught
VPN, or internet...:)
I'd like to configure xymon to monitor quickly link (every one
second, and less, if possible).
Currentl, my hobbitlaunch is configured as fallow :
[bbnet]
ENVFILE /home/xymon/xymon/server/etc/hobbitserver.cfg
NEEDS hobbitd
CMD bbtest-net --report --ping --checkresponse
LOGFILE $BBSERVERLOGS/bb-network.log
INTERVAL 1s
BUT the time isnt respect:
root at my_little_xymon:~# tcpdump -i eth0 host 10.X.X.X
tcpdump: verbose output suppressed, use -v or -vv for full
protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes 08:57:02.183784 IP my_little_xymon.34417 > 10.X.X.X.telnet: S 1399962259:1399962259(0) win 5840 <mss 1460,sackOK,timestamp 17099822 0,nop,wscale 5> 08:57:02.228000 IP my_little_xymon > 10.X.X.X: ICMP echo request, id 8525, seq 2, length 64 08:57:05.177405 IP my_little_xymon.34417 > 10.X.X.X.telnet: S 1399962259:1399962259(0) win 5840 <mss 1460,sackOK,timestamp 17100122 0,nop,wscale 5> 08:57:08.137567 IP my_little_xymon > 10.X.X.X: ICMP echo request, id 8524, seq 2, length 64 08:57:08.205629 IP 10.X.X.X > my_little_xymon: ICMP echo reply, id 8524, seq 2, length 64 08:57:11.177752 IP my_little_xymon.34417 > 10.X.X.X.telnet: S 1399962259:1399962259(0) win 5840 <mss 1460,sackOK,timestamp 17100722 0,nop,wscale 5> 08:57:23.083278 IP my_little_xymon.55506 > 10.X.X.X.telnet: S 1733075379:1733075379(0) win 5840 <mss 1460,sackOK,timestamp 17101912 0,nop,wscale 5> 08:57:23.093086 IP my_little_xymon.55510 > 10.X.X.X.telnet: S 1743087463:1743087463(0) win 5840 <mss 1460,sackOK,timestamp 17101913 0,nop,wscale 5> 08:57:23.126564 IP my_little_xymon > 10.X.X.X: ICMP echo request, id 8534, seq 2, length 64 08:57:23.138561 IP my_little_xymon > 10.X.X.X: ICMP echo request, id 8535, seq 2, length 64 08:57:26.077281 IP my_little_xymon.55506 > 10.X.X.X.telnet: S 1733075379:1733075379(0) win 5840 <mss 1460,sackOK,timestamp 17102212 0,nop,wscale 5> 08:57:26.087252 IP my_little_xymon.55510 > 10.X.X.X.telnet: S 1743087463:1743087463(0) win 5840 <mss 1460,sackOK,timestamp 17102213 0,nop,wscale 5> 08:57:29.047321 IP my_little_xymon > 10.X.X.X: ICMP echo request, id 8533, seq 2, length 64 08:57:29.048010 IP my_little_xymon > 10.X.X.X: ICMP echo request, id 8534, seq 2, length 64 08:57:29.154068 IP 10.X.X.X > my_little_xymon: ICMP echo reply, id 8533, seq 2, length 64 08:57:29.196275 IP 10.X.X.X > my_little_xymon: ICMP echo reply, id 8534, seq 2, length 64
I need to debug issue to micro line cut, and the ping is spaced
out more 1 second.
How to, can I win a time more short than currently, for test
more accurate ?
Thank you.
--
<mailinglist.benoit - at - gmail!com>
Ok, thank you Greg.
The pings are only started since serveur. But what advise me as command to create my script ??? Ping is the better solution ?
Thank
2009/2/20 Hubbard, Greg L <greg.hubbard at eds.com>
You would be better off writing your own test than to try to do this with the standard Xymon functions. All you need to do is write a test that will ping at one second intervals and record the results. then, at the end of your test you can scan the results and send a consolidated message to Xymon for display.
One ping per second is very aggressive, and you are going to find that many pings are dropped or delayed (deferred) due to normal network activity -- and that this is not a problem.
GLH
--
<mailinglist.benoit - at - gmail!com>
You can use ping, or floodping (fping) or any other test that you want. The built-in Xymon "conn" test is not really designed to run at one second intervals. In fact, a ping can take several seconds to time out, so you need to either ping with a very short timeout period, or deal with the fact that ping A may still be "active" (and on its way to timeout) when you issue ping B. If you write a single-threaded script you will fall behind.
I've heard good things about something called "smoke ping" but I have never used it or even investigated it.
There is documentation available for creating your own tests in Xymon. The basic task is to write some executable that the Hobbit client can launch at regular intervals, or you need to write something that can run as a standalone system and then communicate status at regular intervals. You decided what status to send Xymon, and you send it when you are ready. Xymon will take care of the rest. If you want to graph your results you have to set up Xymon to detect your data as it comes in and log it in RRD files, and you will have to define any graphs that you want.
You can do some "interesting" things with Xymon and some simple custom tests. For instance, if you are capturing syslog on a central server, you can run a "wc -l" against the file every 5 minutes, and let the RRD library log this for you. If you let the RRD function calculate a rate, you can easily graph your "syslogs/per second" over 576 days, and look for trends. This is not particulary elegant, but it does work...
GLH
From: Naudit007 [mailto:mailinglist.benoit at gmail.com]
Sent: Wednesday, February 25, 2009 9:42 AM
To: hobbit at hswn.dk
Subject: Re: [hobbit] BBNET customize short interval ping
Ok, thank you Greg.
The pings are only started since serveur.
But what advise me as command to create my script ??? Ping is
the better solution ?
Thank
2009/2/20 Hubbard, Greg L <greg.hubbard at eds.com>
You would be better off writing your own test than to
try to do this with the standard Xymon functions. All you need to do is write a test that will ping at one second intervals and record the results. then, at the end of your test you can scan the results and send a consolidated message to Xymon for display. One ping per second is very aggressive, and you are going to find that many pings are dropped or delayed (deferred) due to normal network activity -- and that this is not a problem. GLH
--
<mailinglist.benoit - at - gmail!com>
participants (2)
-
greg.hubbard@eds.com
-
mailinglist.benoit@gmail.com