[mrtg] MRTG does not draw snmp graphs
Andrey Falko
ma3oxuct at gmail.com
Sun Feb 4 17:32:52 CET 2007
I have a machine called Lion that is set up with snmp. It appears that mrtg
is grabbing the correct numbers from it, but not drawing the graphs for it.
Ma3oxuct, the machine on which mrtg runs, has its bandwidth tracked by a
local script. Bandwidth usage for Ma3oxuct works perfectly. See for
yourselves: http://afalko.homelinux.net/bandwidth/
workDir: /web/bandwidth
Options[_]: nopercent,growright,noinfo,gauge
RunAsDaemon: Yes
WriteExpires: Yes
Xsize[_]: 600
Ysize[_]: 200
Ytics[_]: 10
Target[Ma3oxuct]: `sh /home/andrey/system network eth0`
Options[Ma3oxuct]: nopercent, noinfo
MaxBytes[Ma3oxuct]: 1250000
Title[Ma3oxuct]: Ma3oxuct's Bandwidth
PageTop[Ma3oxuct]: <h1>Ma3oxuct's Bandwidth</h1>
Target[Lion]: !00-0c-41-eb-e1-ad:public at Lion :
SetEnv[Lion]: MRTG_INT_IP="192.168.1.106" MRTG_INT_DESCR="eth0"
MaxBytes[Lion]: 12500000
Title[Lion]: Lion's Bandwidth
PageTop[Lion]: <h1>Lion's Bandwidth</h1>
Here is my config:
Here is a section of my log file:
2007-02-03 00:55:40 -- --snpo: run external sh /home/andrey/system network
eth0
2007-02-03 00:55:40 -- --snpo: External result:1411782061 out:2399930357
uptime:00:55:40 up 2 days, 7:02 name:network
2007-02-03 00:55:40 -- --snpo: run snmpget from
ifInOctets&ifOutOctets:home at Lion
2007-02-03 00:55:40 -- --snpo: (0) Confcache Match 00-0c-41-eb-e1-ad -> .2
2007-02-03 00:55:40 -- --snpo: (1) Confcache Match 00-0c-41-eb-e1-ad -> .2
2007-02-03 00:55:40 -- --snpo: SNMPGet from home at Lion: -- ifPhysAddress.2,
ifInOctets.2,ifPhysAddress.2,ifOutOctets.2,sysUpti
me,sysName
2007-02-03 00:55:40 -- --snpo: SNMPfound -- '^@^LA�', '550288748', '^@^LA�',
'234021079', '1 day, 3:11:05', 'Lion'
2007-02-03 00:55:40 -- --snpo: (0) Eth crosscheck OK
2007-02-03 00:55:40 -- --snpo: (1) Eth crosscheck OK
2007-02-03 00:55:40 -- --log: Called /usr/bin/rateup /web/bandwidth/
ma3oxuct 1170464140 -Z u 1411782061 2399930357 1250000
c #00cc00 #0000ff #006600 #ff00ff k 1000 i
/web/bandwidth/ma3oxuct-day.png-1250000 -1250000 600 200 1 1 0 300 0
10 1 %Y-%m-
%d %H:%M 0
2007-02-03 00:55:40 -- --log: Called /usr/bin/rateup /web/bandwidth/ lion
1170464140 -Z g 550288748 234021079 12500000 c #00
cc00 #0000ff #006600 #ff00ff k 1000 i /web/bandwidth/lion-day.png -12500000
-12500000 600 200 1 1 1 300 0 10 1 %Y-%m-%d %H:%
M 0
2007-02-03 01:00:40 -- --snpo: run external sh /home/andrey/system network
eth0
2007-02-03 01:00:40 -- --snpo: External result:1412043825 out:2403290987
uptime:01:00:40 up 2 days, 7:07 name:network
2007-02-03 01:00:40 -- --snpo: run snmpget from
ifInOctets&ifOutOctets:home at Lion
2007-02-03 01:00:40 -- --snpo: (0) Confcache Match 00-0c-41-eb-e1-ad -> .2
2007-02-03 01:00:40 -- --snpo: (1) Confcache Match 00-0c-41-eb-e1-ad -> .2
2007-02-03 01:00:40 -- --snpo: SNMPGet from home at Lion: -- ifPhysAddress.2,
ifInOctets.2,ifPhysAddress.2,ifOutOctets.2,sysUpti
me,sysName
2007-02-03 01:00:40 -- --snpo: SNMPfound -- '^@^LA�', '550289212', '^@^LA�',
'234021312', '1 day, 3:16:05', 'Lion'
2007-02-03 01:00:40 -- --snpo: (0) Eth crosscheck OK
2007-02-03 01:00:40 -- --snpo: (1) Eth crosscheck OK
2007-02-03 01:00:40 -- --log: Called /usr/bin/rateup /web/bandwidth/
ma3oxuct 1170464440 -Z u 1412043825 2403290987 1250000
c #00cc00 #0000ff #006600 #ff00ff k 1000 i /web/bandwidth/ma3oxuct-
day.png-1250000 -1250000 600 200 1 1 0 300 0 10 1 %Y-%m-
%d %H:%M 0
2007-02-03 01:00:41 -- --log: Called /usr/bin/rateup /web/bandwidth/ lion
1170464440 -Z g 550289212 234021312 12500000 c #00cc00 #0000ff #006600
#ff00ff k 1000 i /web/bandwidth/lion-day.png -12500000 -12500000 600 200 1 1
1 300 0 10 1 %Y-%m-%d %H:%M 0
It appears that Lion's numbers are going up (look at the numbers marked red)
and bring injected into rateup as expected. However the graph is not being
drawn for Lion and the numbers displayed on the page of Lion show all zeros.
What am I missing or what should I do next to figure out what is wrong?
Thanks in advance for any help.
Best regards,
Andrey Falko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20070204/8cd47788/attachment.htm
More information about the mrtg
mailing list