[mrtg] Re: MRTG debug mode

Jerry Heidtke jheidtke at fmlh.edu
Fri Jan 10 15:08:33 MET 2003


Just edit the line that says:

@main::DEBUG=qw();

to put whatever debug option you want between the (). For example,

@main::DEBUG=qw(snpo);

You might also need to use logging if you aren't already. Where you call
mrtg, add the command line option

--logging /path/to/log.file or --logging d:\path\to\log.file (depending on
platform)

Jerry

-----Original Message-----
From: etakay at ykb.com [mailto:etakay at ykb.com]
Sent: Friday, January 10, 2003 2:02 AM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] MRTG debug mode


Hi,
What is the way of debugging on MRTG. I have just read an old mail about 
this which recomends to do debug=1 or more instead of debug=0 in the mrtg 
source, but there is no such a line. At the beginning of the source the 
following lines exist.

@main::DEBUG=qw();
# DEBUG TARGETS
# cfg  - watch the config file reading
# dir  - directory mangeling
# base - basic program flow
# tarp - target parser
# snpo - snmp polling
# fork - forking view
# time - some timing info
# log  - logging of data via rateup or rrdtool

But I couln't figure out how Im going to enable them
Regards

Tolga

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


Confidentiality Notice: This e-mail message, including any attachments, is 
for the sole use of the intended recipient(s) and may contain confidential 
and privileged information.  Any unauthorized review, use, disclosure or 
distribution is prohibited.  If you are not the intended recipient, please 
contact the sender by reply e-mail and destroy all copies of the original 
message.


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



More information about the mrtg mailing list