[mrtg] Using symbolic names in Target[] definitions
Freddie Cash
fjwcash at gmail.com
Wed May 20 00:29:16 CEST 2009
For network interfaces, it's possible to use symbolic names like eth0,
em3, lagg0, bond3 and so on in the Target[] definition. This way, no
matter how the devices are enumerated at each boot, the data is polled
correctly. These names are listed in the ifDescr.* variables that
have the same index value as the if*Octets.* variables.
Is it possible to do the same for any other OIDs that provide *Descr
variables? For example, hrStorage* includes hrStorageDescr that links
the symbolic names (/, /var, /tmp, and so on) to the specific OID
index. Is there anyway to use this symbolic name (as shown in the
*Descr output) instead of the OID numbers?
It's really annoying to have to double-check everything in the config
file(s) after a server is rebooted, and to manually update the
Target[] lines to match how things got enumerated this time. :(
If it's not currently possible to do this, are there any plans to add
this? Or is there some way this can be tacked/hacked onto the system?
--
Freddie Cash
fjwcash at gmail.com
More information about the mrtg
mailing list