Posted: 2004-03-11 11:03 Posted: MRTG uses experience
Author: loleeveE-Mail: loleeve_at_hotmail.com loleeve_at_creawor.com Issue Date: 2004-3-10 These are some notes when using MRTG, fragmented, out incompetence. The MRTG version used is 2.10.13 [1] how to interchange the graphic interchange of input and output? (Input blue line, output green line) Target [myrouter_1]: 1: public@192.168. 0.1 Change to Target [MyRouter_1]: -1: Public@192.168.0.1 That is to add a "-" in front of the object, then turn Legendi and Legendo: Legendi [MyRouter_1]: Flow: # default is inflow: Legendo [ Myrouter_1]: Iruse: # defaults to outflow: [2] If you want to use the OID object directly, you should be as follows Target [myrouter_1]: .1.3.6.1.3.6.1.2.1.2.1.20.1 : public@192.168.36.1 Be sure to add one in front of the OID. " (Without "in the example of MRTG". ", Don't know why ???) and you must use" & "to connect two OID, if you want to display a variable, let these two OIDs. You can also add NOI or NOO to the input or output by adding NOI or NOO. [3] Output HTML support Chinese, add the default settings in .cfg file: Chinese [4] Add default setting: ysize [_]: 150withpeak [_]: YMWSUPPRESS [_]: Ymaxbytes [_]: 1250000 in [] Plus "_" represents the default setting [5] MRTG's default settings are used as traffic statistics, and the "byte counter" of the router is sampled every 5 minutes, and then the value of the counter is reduced by time interval (300) Seconds) get the speed. But for the CPU load, the parameters are not allowed to calculate, must be added: options [_]: gaugegauge means only the current sample value is displayed, and the speed calculation is not performed [6] is sometimes the current speed of the web display. It's a bit wrong, always follow the speed of the .log file, the younger brother studied, don't know the speed algorithm for the MRTG * .log file: Due to the MRTG startup time (that is, sampling moment) is not just right 300 seconds of integer times, and MRTG's .log file record must be 300 seconds integral data, so you must convert the sampling time speed into a speed of 300 seconds.