Community discussions

MikroTik App
 
chronos
newbie
Topic Author
Posts: 32
Joined: Tue Aug 05, 2008 3:54 pm

Netwatch with latency?

Tue Apr 28, 2009 9:11 am

As I need to store client and link latency information in time and draw it accross time I need to periodic ping program which can say host is up/down and last ping latency was xxx ms.

Currently there is only online state checking by /tools netwarch and print terse can display status:
 0   comment=host1 host=192.168.1.101 timeout=1s interval=1m since=apr/27/2009 17:09:00 status=up up-script="" down-script="" 
 1   comment=host2 host=192.168.1.102 timeout=1s interval=1m since=apr/26/2009 08:59:44 status=down up-script="" down-script="" 
 2   comment=host3 host=192.168.1.103 timeout=1s interval=1m since=apr/26/2009 08:59:44 status=down up-script="" down-script="" 
 3   comment=host4 host=192.168.1.104 timeout=1s interval=1m since=apr/27/2009 09:28:00 status=up up-script="" down-script="" 
...
 
It is possible to add latency information to netwatch tool on some next routeros version maybe to beta?

Anyway second way could be make own netwatch using scripting engine if it is possible at all. But where to start. It is possible to create own script and upload it to routerboard and set scheduler to run it every second. Routerboard have ping command too which display latency but can it be used by script to get latency, I hope so.
[admin@router] > /ping 192.168.0.1
192.168.0.1 64 byte ping: ttl=63 time=1 ms
192.168.0.1 64 byte ping: ttl=63 time<1 ms
So there is need to make some global variable as storage for host list and than periodic script executed by scheduler could read it and try to ping every host in list and store their latency.

Is it possible?
Or have somebody similar solution already?

Thanks in advance.
 
JJCinAZ
Member
Member
Posts: 475
Joined: Fri Oct 22, 2004 8:03 am
Location: Tucson, AZ

Re: Netwatch with latency?

Tue Apr 28, 2009 6:15 pm

Have you looked at Cacti?

http://www.cacti.net/

If you had an x86 router, you could even try running the Xen package and then you could run Cacti aside the router.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Netwatch with latency?

Tue Apr 28, 2009 9:27 pm

use The Dude! =)
 
chronos
newbie
Topic Author
Posts: 32
Joined: Tue Aug 05, 2008 3:54 pm

Re: Netwatch with latency?

Tue Apr 28, 2009 11:10 pm

Even there are some other projects which do something similar can it be done directly in routerboard? I have simple fetching PHP script already to get online state and I need simply add latency information to it. I have made my custom administration system using PHP and MySQL and I want to get latency info to my database.

Dude don't run right on linux with wine and I dont want to have another windows based virtual machine.
I tried cacti recently but it is too complex and in some ways too limited solution for my needs.

Who is online

Users browsing this forum: diamuxin and 14 guests