ADSL monitoring and graphing tool for BSD ?
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Broadband
- :
- ADSL monitoring and graphing tool for BSD ?
ADSL monitoring and graphing tool for BSD ?
19-05-2011 7:53 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Any favourite BSD Unix (or AMP) solutions for monitoring and graphing line stats ?
I've found NINO http://nino.sourceforge.net/nino/nino.html which can use an ADSL SNMP MIB from here http://www.oidview.com/mibs/0/ADSL-LINE-MIB.html
It's not a dedicated ADSL tool, though, so it's not clear whether it will display the ADSL MIB block in a friendly or useful way ( with graphing and logging).
As it's SNMP, it should work with quite a few routers without HTML page hacking or undocumented debug telnet modes.
Re: ADSL monitoring and graphing tool for BSD ?
22-05-2011 4:13 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I use a small daemon I wrote in C to collect the information from snmp and then dump it in to a MySQL database.
I then wrote something in PHP to pull out the data and display it.
If you're interested I can put the source code up somewhere.
(This was written for and running under FreeBSD using the included bsnmpd and mysql 5)
Re: ADSL monitoring and graphing tool for BSD ?
24-05-2011 10:53 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
My router/modem (Netgear DG834GT) doesn't support SNMP, so I wrote a Perl script that is used by Cacti, that logs in to the router to scrape the line stats. Over time, I've gradually added more scripts to gather information from Plusnet's portal, Speedtest.net, and another script that checks download speeds. The last gets updated at times, to control the bandwidth I use by restricting how often tests take place.
Cacti does support SNMP, and I use that for gathering data from other machines.
HOWEVER: Cacti doesn't support alarms or notifying problems to you - you'd need something like Nagios for that, but I never got around to setting that up.
Nowadays, I'd want the two to happen within 1 software package, and I'd probably use something like Zabbix; I just haven't got around to doing it yet. With fibre coming soon, I'll lose access to the line stats, but will gain from having a SamKnows/Ofcom measurement box, so that will probably prompt me to give it a go. I did find a review page at http://workaround.org/node/304
Using FTTC since 2011. Currently on 80/20 Unlimited Fibre Extra.
Re: ADSL monitoring and graphing tool for BSD ?
01-06-2011 9:37 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Also a lot of apache faff-ing to get it to run in a /var/www chroot - particularly if you haven't already got mod_perl loaded and working, as I hadn't. I also couldn't work out whether having the server snmpd daemon running was necessary if I was only interested in the modem's stats. The server stats via SNMP are of no interest to me - only the ADSL MIB block. I think Nino has failed at the starting block 😞
@avatastic - perhaps you could post a tgz or bz2 as an attachment to this thread ?
@WWWombat - Cacti looks rather good. There is an OpenBSD package for rrdtool (1.2.30), and I already have PHP5 installed.
Re: ADSL monitoring and graphing tool for BSD ?
02-06-2011 8:30 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
i use the TG585v8, so no SNMP, but i'm sure i could modify the perl script to do something similar.
i've become a bit of a graphing geek i have an EON energy monitor, that i log the tempterature and current/max energy used.
Re: ADSL monitoring and graphing tool for BSD ?
02-06-2011 8:07 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I'll try to post some of the perl scripts tomorrow, or over the weekend...
Using FTTC since 2011. Currently on 80/20 Unlimited Fibre Extra.
Re: ADSL monitoring and graphing tool for BSD ?
07-06-2011 10:59 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
have you had any luck getting the scripts up yet?
Re: ADSL monitoring and graphing tool for BSD ?
07-06-2011 2:50 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Build instructions are at the top, as are some of the variables that'll need to be set for your MySQL install.
The table that is logged to looks like
mysql> describe usage_log_c;
+----------+------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+----------+------------+------+-----+---------+-------+
| start | bigint(20) | NO | PRI | NULL | |
| up | bigint(20) | NO | | NULL | |
| down | bigint(20) | NO | | NULL | |
| duration | bigint(20) | NO | | NULL | |
+----------+------------+------+-----+---------+-------+
4 rows in set (0.09 sec)
The PHP is very bug riddled and I'm too ashamed to share it at the moment but when I've fixed it up, I'll whack that up too.
[edit]Looking at the OP, it looks like you're after line stats monitoring not Bandwidth usage logging. I've not got anything that does that.
My signature ---\/ works by using http to my Netgear DM111 and pppctl to the PPP client on the FreeBSD server.
The source for that can be found at http://skynet.avatastic.co.uk/~adw/uptime-src.phps
[/edit]
Re: ADSL monitoring and graphing tool for BSD ?
07-06-2011 8:22 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: ADSL monitoring and graphing tool for BSD ?
17-06-2011 1:56 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: petertaylor Hi WWWombat,
have you had any luck getting the scripts up yet?
Sorry, I had to focus on some server re-install & backup problems first. Then Plusnet changed the layout of some oftheir website pages...
I'll get what I can here this afternoon...
Using FTTC since 2011. Currently on 80/20 Unlimited Fibre Extra.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Broadband
- :
- ADSL monitoring and graphing tool for BSD ?