[mrtg] query - regards mrtg, is it possible to disable (i) snmp d ata collection and (ii) generation of the .log file yet (iii) have mrtg generate graphs from my own .log file data ?

dhazell at aap.com.au dhazell at aap.com.au
Thu Oct 9 07:41:17 MEST 2003

Hi all
As I understand it, mrtg (i) gathers stats from a target router/interface
(ii) crunches the data and saves the results into a .log file and (iii)
makes pretty sets of graphs from that .log file data.

I have an mrtg config file that graphs the cumulative stats of traffic
through an interface (this works fine except it wraps too often because the
counters are only 32-bit. :(   ).

So to get around this wrapping problem, I have written a perl script to
crunch some data I already have to simulate the cumulative data I want for
the interface and put this data into a new .log file. I have made a similar
config file to the one mentioned above for this new set of graphs.

What I don't understand is how to set up the new config file / mrtg so that
I can disable steps (i) and (ii) above, but still have mrtg make sets of
graphs (step iii above)from the .log file I have built instead of going to
the target for the stats. (I tried disabling the Target[] reference but then
both indexmaker and mrtg complain about an invalid config file.) 

Any help will be appreciated

APPENDIX 1 - My config file is roughly like the following ...
### Interface 1xx >> Descr: 'Ethernet0/0' | Name: 'Et0/0' | Ip: 'ipaddress'
| Eth: 'macaddress' ###

YLegend[routername_Et0_0xx]: MegaBytes
ShortLegend[routername_Et0_0xx]: Bytes
Factor[routername_Et0_0xx]: 1048576
WithPeak[routername_Et0_0xx]: ymw
Options[routername_Et0_0xx]: growright, gauge, nopercent
. at routername: /
Directory[routername_Et0_0xx]: routername
SetEnv[routername_Et0_0xx]: MRTG_INT_IP="ipaddress" MRTG_INT_DESCR=""
MaxBytes[routername_Et0_0xx]: 10000000000000000
Title[routername_Et0_0xx]: Ethernet0/0 -- routername - cumulative
Legend1[routername_Et0_0xx]: Incoming Traffic in MegaBytes
Legend2[routername_Et0_0xx]: Outgoing Traffic in MegaBytes
LegendI[routername_Et0_0xx]:  In:
LegendO[routername_Et0_0xx]:  Out:
PageTop[routername_Et0_0xx]: <H1>Ethernet0/0 -- routername - cumulative</H1>
   <TR><TD>Description:</TD><TD>Ethernet0/0 Pub/Ext Int to Internet -
cumulative </TD></TR>
   <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
   <TR><TD>ifName:</TD>     <TD></TD></TR>
   <TR><TD>Ip:</TD>         <TD>ipaddress</TD></TR>

This email is intended for the use of the addressee only.  If you receive this email in error, please delete it immediately.  This email may contain information which is confidential and/or legally privileged.  You must not use or disclose the contents of this email, or add the sender's email address to any database, list or mailing list unless you are expressly authorised to do so.
The statements or views expressed in this email are those of the individual sender and are not those of Australian Associated Press Pty Ltd (AAP).  These statements are not binding on AAP, except where the sender expressly and with authority, states them to be.
AAP is unable to review the contents of all the email on its system.  To the extent permitted by law, AAP disclaims all liability for any loss or damage caused by the contents of this email.

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