View Full Version : Monitor connections.
Monitor router connections: how?
Thanks advance!
/proc/net/ip_conntrack
-sh: /proc/net/ip_conntrack: Permission denied
:(
cat /proc/net/ip_conntrack
bugmenot
22-04-2008, 21:13
I was wondering how to monitor my connection as well.
Could use something like vmnet or cat the file you guys suggest. But what I am acctually more interested in: when is my interconnection up.
I have a lot of issues with my internet provider, internet keeps going down for hours, backup for a couple of hours, and back down.
I want to somehow track this ( plotting it would also be nice as a second) so I can show them in detail when my connection is or is not working.
Any suggestions? Maybe ping a certain host and plot the ping time?
Or is there a smarter way.
Please advise.
Thanks guys, and by the way: SUPER FORUM!
Cheers,
BmN
bugmenot
22-04-2008, 21:44
Ok, just checked out how oleg's cgi-script for transmission does it's graph: also gnuplot.
Should be able run a cron every 1-5 minutes that does a ping, checks my wan-ip (if any) and maybe check something else and cat that to a file.
Then I can run another cron-job every day that feeds this to the gnuplot program so I can create a new png every day of the resulted pings.
Going to play with this (meantime all comments/ideas are still welcome)
bugmenot
22-04-2008, 22:52
And ofcourse.. haha :) .. While testing this, my internet connection dropped.
The ping that is installed on the wl500gp (oleg's firmware) does not have the -w option.
I wanted to check the return value of ping -w 4 www.google.com
Deadline of 4 times before host must be reached, if not reached within 4 pings, the return value will be bigger then 0 indicating an error. If it can be reached the return value will be 0 meaning it was succesfull.
Anyone has an alternative to the -w option to do this?
Or maybe I can somehow install a ping that does have the -w option?
bugmenot
20-05-2008, 15:35
Kick ^^
Ping -W, anyone?
You can install iftop and nload use it as:
iftop -i ppp0 -P -m 2000000 -u k
nload -t 10000 -i 2500 -o 400 -u k ppp0
For graphing solution I suggest mrtg or rrdcollect