[mrtg] Re: MRTG Debug..

Lars Holmström lars.holmstrom at flysta.net
Thu Nov 22 22:33:29 MET 2001


Bruce,
Thanks. I've tried this and it works perfectly. It is rather intresting that your reply was the only and single reply  to my question. I admit I am not a programmer, and for sure not a perl programmer. I thing it would be good to have some better instructions HOW to enable debugging.

My real problem is that I am calling a shell script (Linux) that obviously produce the correct value, according to what I can see when I enable qw(base) in the mrtg program. But still there is not correct values printed in the graph. The script runs every 5 minte and always produce a value of

0
7-11

But nothing is put in to the graph. What is the method for debugging the problem  ?

The content of the logfile is ;
1006464319 0 7
1006464319 0 7 0 7
1006464020 0 7 0 7
1006464000 0 7 0 7
1006463700 0 7 0 7
1006463400 0 7 0 7
1006463100 0 7 0 8
1006462800 0 8 0 8
1006462500 0 8 0 8
1006462200 0 8 0 8
1006461900 0 8 0 9
1006461600 0 9 0 9
1006461300 0 9 0 10
1006461000 0 10 0 10
1006460700 0 10 0 11
1006460400 0 10 0 11
1006460100 0 10 0 10
1006459800 0 10 0 10
1006459500 0 10 0 11
1006459200 0 11 0 11

/Lars

Bruce Mitchell wrote:

> Dont know whether you got a reply...
>
> Lars,
>     Put the required option into :-
>
> @main::DEBUG=qw(base);
> # DEBUG TARGETS
> # cfg  - watch the config file reading
> # dir  - directory mangeling
> # base - basic program flow .. .etc
>
> and you get  the follwoing o/put in your --logging file...
> 2001-11-22 15:45:01 -- --base: Loading RRD support
> 2001-11-22 15:45:01 -- --base: Loading default Locale
> 2001-11-22 15:45:01 -- --base: Starting main Loop
> 2001-11-22 15:45:01 -- --base: Populate Target object by polling SNMP and
> external Datasources
> 2001-11-22 15:45:02 -- --base: Act on Router/Target sm023.srv.uk.deuba.com_1
> 2001-11-22 15:45:02 -- --base: Get Current values: (156759971, 1917084143, , ,
> 1006443902)
> 2001-11-22 15:45:02 -- --base: Create Graphics
> 2001-11-22 15:45:02 -- --base: start RRDtool section
> 2001-11-22 15:45:02 -- --base: maxi:1250000, maxo:1250000
> 2001-11-22 15:45:02 -- ERROR: Cannot tune logfile: invalid arguments for
> maximum ds value
>
> Tel:       +44(0) 207 547 4917
> Fax        +44(0)207 541-4705
> Mobile    +44(0) 7768 361-885
> email:    bruce.mitchell at db.com
> Group mail ADSM_ADMIN at db.com
>
> --
>
> This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.


--
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