0

MRTG defaults to titling each traffic graph as "Traffic Analysis for ${port_int}" I would like to instead have each graph titled by the description of the switchport. How could I do this?

2 Answers 2

2

This is absolutely possible. The text on and around the graphs is fully themeable. The documentation shows this pretty well. For example, to change the "Traffic Analysis for xyz" text use the key:

Title[GigE2/1]: Description of switch port GigE2/1

If you're generating your MRTG graphs by way of cfgmaker

cfgmaker --ifdesc=descr $OtherOptions

Should render you the same thing automatically. Your titles won't be Traffic analysis for 2/1 they will be Traffic analysis for Payments Server, which sounds like what you're looking for. If you need something more then that, then you need to start looking into the "--if-template" function of cfgmaker. It allows a much more detailed customization of the text fields, but does require some scripting.

2
0

In your .cfg file for the device, look for the Title[]: definitions and modify those to your heart's delight. See http://oss.oetiker.ch/mrtg/doc/mrtg-reference.en.html#Title_CONTENT.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .