[mrtg] No Traffic being graphed?

Derek Conniffe derek at rivertower.ie
Sat Jun 17 11:42:03 MEST 2006


Hi,

I've used MRTG a few times over the years but I'm having trouble setting
it up again to graph the bandwidth usage in a multi-homed firewall.

Because I want to monitor the bandwidth per NIC the linux_stats.pl
contrib script looked like just the job and it runs perfectly with the
usual MRTG type output being produced (debug output below).

But whats funny is when I have MRTG up and running every 5 minutes the
graphs are showing 0 bites/bytes per second and the MRTG log file for
the target seems to have loads of 0s in it which I think is suspicious.

My setup is below - I'm sure this is something I have wrong as I haven't
used MRTG for a couple of years at least - any help is most appreciated

thanks very much!

Derek

My mrtg.cfg:
----------------------------
### Global Config Options
EnableIPv6: no
WorkDir: /var/www/html/mrtg
Options[_]: bits,growright

HtmlDir: /var/www/mrtg
ImageDir: /var/www/mrtg
LogDir: /var/lib/mrtg
ThreshDir: /var/lib/mrtg

Target[allusersbandwidth]:
`/usr/local/mrtgscripts/linux_stat/linux_stats.pl eth3 /proc/net/dev`
MaxBytes[allusersbandwidth]: 400
Title[allusersbandwidth]: All User's Bandwidth Usage
PageTop[allusersbandwidth]: <h1>All User's Bandwidth Usage</h1>
----------------------------

The output from "/usr/local/mrtgscripts/linux_stat/linux_stats.pl eth3
/proc/net/dev":
----------------------------
453563003
2802727134
 10:42:51 up 10 days, 10:13,  1 user,  load average: 0.01, 0.04, 0.00
gatekeeper: Interface: eth3
----------------------------

The top of the /var/www/html/mrtg/allusersbandwidth.log file:
----------------------------
1150537203 452700671 2790281337
1150537203 0 0 0 0
1150536902 0 0 0 0
1150536900 0 0 0 0
1150536600 0 0 0 0
1150536300 0 0 0 0
1150536000 0 0 0 0
1150535700 0 0 0 0
1150535400 0 0 0 0
1150535100 0 0 0 0
1150534800 0 0 0 0
1150534500 0 0 0 0
1150534200 0 0 0 0
1150533900 0 0 0 0
1150533600 0 0 0 0
1150533300 0 0 0 0
1150533000 0 0 0 0
..... And so on - all 0s to the end!
----------------------------



Thanks for any help!!

Derek

-- 
Derek Conniffe
Rivertower Ltd
DID Number: 01 440 1806 (International: 00 353 1 440 1806)
Ireland: (Local) 01 440 1800
United Kingdom: 0870 068 2368
International: 00 353 1 440 1800
Derek Conniffe Mobile: 086 856 3823 (International: 00 353 86 856 3823)
Fax: 01 440 1801 (International: 00 353 1 440 1801)
Email: Derek at rivertower.ie
Web: http://www.rivertowerhosting.com

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the mrtg mailing list