[mrtg] What do these lines in a .cfg file mean?

Tim Sheets TSheets at Illinois.net
Thu May 10 16:53:33 MEST 2001


Using the command line of:
# Created by 
# cfgmaker --global 'Options[_]: growright,Bits,Unscaled' --ifref=descr
--ifdesc=alias --output qbtc-i2.cfg public at 192.168.1.1

I get a .cfg file that has the following for each interface (some commented,
some not of course)

# Target[192.168.1.1_FastEthernet0_0]: \FastEthernet0/0:public at 192.168.1.1:
# SetEnv[192.168.1.1_FastEthernet0_0]: MRTG_INT_IP=""
MRTG_INT_DESCR="FastEthernet0/0"

This is a standard graph for line utilization.
My question is regarding the \FastEthernet0/0: part...my assumption is that
since it isn't specified otherwise, it is going to graph the line
utilization....is there a way to specify another OID that would use the
\FastEthernet0/0: as the instance?

If I am to explicitly specify the OID, then I have to supply the instance
right?  Well that's fine for a system OID like CPU Util, but what about each
instance like interfaces (that can change as int's are added or removed)?

Next question is what about the SetEnv line?  Where is the
MRTG_INT_DESCR="..." used?  what about the IP?

Like I said, I am looking for an easy way to tell it to graph something else
(ifInUcastPkts etc..) without having to explicitly type in the instance.

I am not much on scripting, but have been trying for days to come up with a
solution with SED and have gotten really close....but this is the one
stumper.

Any direction would be greatly appreciated!!!!

Thanks much!

Tim Sheets
Illinois Century Network
Supervisor, Region VI
309-999-5900 Phone
309-999-5808 Fax
tsheets at illinois.net

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