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:[EMAIL PROTECTED] : 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:[EMAIL PROTECTED] 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 [EMAIL PROTECTED]: -- ifPhysAddress.2, ifInOctets.2,ifPhysAddress.2,ifOutOctets.2,sysUpti me,sysName 2007-02-03 00:55:40 -- --snpo: SNMPfound -- '[EMAIL PROTECTED]', '550288748', '[EMAIL PROTECTED]', '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:[EMAIL PROTECTED] 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 [EMAIL PROTECTED]: -- ifPhysAddress.2, ifInOctets.2,ifPhysAddress.2,ifOutOctets.2,sysUpti me,sysName 2007-02-03 01:00:40 -- --snpo: SNMPfound -- '[EMAIL PROTECTED]', '550289212', '[EMAIL PROTECTED]', '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
_______________________________________________ mrtg mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
