[mrtg] Debugging LoadMIBs

McDonald, Dan Dan.McDonald at austinenergy.com
Wed Nov 19 19:35:13 CET 2008


On Wed, 2008-11-19 at 10:27 -0800, Alex_M wrote:
> Hello,
> 
> is there a possibility to debug MIB loading?

I think so, but it's been a while since I've dug into it.

You need to change line 9 of the mrtg script, and include the debug
targets you are interested in:

@main::DEBUG=qw();
# DEBUG TARGETS
# cfg  - watch the config file reading
# dir  - directory mangeling
# base - basic program flow
# tarp - target parser
# snpo - snmp polling
# snpo2 - more snmp debug
# coca - confcache operations
# repo - track confcache repopulation
# fork - forking view
# time - some timing info
# log  - logging of data via rateup or rrdtool
# eval - trace eval experssions
# prof - add timeing info some interesting bits of code

I'd try snpo and snpo2 to start off.  A lot of that gets written into
confcache, so add coca if the first two don't help.


-- 
Daniel J McDonald, CCIE #2495, CISSP #78281, CNX
Austin Energy
http://www.austinenergy.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.oetiker.ch/pipermail/mrtg/attachments/20081119/e588cf57/attachment.bin 


More information about the mrtg mailing list