Customizing MRTG Once you have a working MRTG
Customizing MRTG Once you have a working MRTG setup, be careful testing new configurations. I generally test a new MRTG configuration in a separate WorkDir, so that any mis-configurations won’t damage existing log files or production status pages. The mrtg.cfg file contains a wide variety of options that allows you to customize almost every aspect of MRTG’s appearance and functionality. Here you’ll find some of the most useful MRTG configuration options, and how they can be used in production environments. WithPeak[label]: wmy MRTG’s log format condenses older entries into average values, which tends to decrease values over time. The WithPeak option forces MRTG to keep and graph the maximum values over time. While your graphs will be more complex as a result, they will contain more useful information. This option can be set for the weekly, monthly, and yearly graphs, or a combination. MaxBytes[label]: number This is the maximum value that a MIB can reach. (The label is misleading if the MIB doesn’t measure bytes.) MRTG uses this value to decide if it got a sensible answer from the device. Both MIBs being measured use MaxBytes, so be sure you’re measuring sensible pairs! If you’re doing something particularly weird and need different MaxBytes variables, use MaxBytes1 and MaxBytes2. YLegend[label]: text MRTG will put this text along the side of the graph. Put whatever you’re measuring here, such as “% CPU Time”. LegendI[label] & LegendO[label]: text MRTG always measures two MIBs. The first MIB is the traditional “In” value, and the second the Out. You can put short descriptions of what you’re measuring here to have them appear beneath the graph. Legend1[label] & Legend2[label]: text Legend1 is the label for the first MIB you measure; Legend2, the second. Both will appear at the bottom of your chart, in the key. Legend3[label] & Legend4[label]: text These labels will be used if you’re recording maximums (with the WithPeak option). If you’re not recording maximums, these labels will have no effect. Directory[label]: directoryname Large MRTG setups can generate a lot of files. The directory keyword allows you to put the files for a particular label in a subdirectory of the WorkDir. 447
Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Cheap Web Hosting services