[mrtg] Undefined SNMP Targets do not warn/error

Brian A. Seklecki lavalamp at spiritual-machines.org
Fri Nov 30 22:42:02 CET 2007


$ sudo -H -u mrtg /usr/local/bin/mrtg --debug=snpo 
/usr/local/etc/mrtg/mrtg-br0-ng.conf 2>&1 |grep -i undef |wc -l
       10


Example:

--snpo: SNMPGet from COMMUNITY at 10.0.0.3:::::2 -- 
carpNoMemory.0,carpNoMemory.0,sysUptime,sysName --snpo: SNMPfound -- 
'undef', 'undef', '4 hours, 05:12.39', 'br0'

One would think that failing "snmpget" calls would result in warn/error -- 
but nope, instead I get dead graphs and nothing to stdout/stderr

$ pkg_info |grep -i mrtg
mrtg-2.15.2,1       The multi-router traffic grapher

On that note, I'm gonna go drink myself unconscious...

~BAS



More information about the mrtg mailing list