[mrtg] What do these lines in a .cfg file mean?
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=""
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
Any direction would be greatly appreciated!!!!
Illinois Century Network
Supervisor, Region VI
tsheets at illinois.net
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
More information about the mrtg