1MRTG-FAQ(1) mrtg MRTG-FAQ(1)
2
3
4
6 mrtg-faq - How to get help if you have problems with MRTG
7
9 MRTG seems to raise a lot of questions. There are a number of resources
10 apart from the documentation where you can find help for mrtg.
11
13 In the following sections you'll find some additonal Frequently Asked
14 Questions, with Answers.
15
16 Why is there no "@#$%" (my native language) version of MRTG?
17
18 Nobody has contributed a @#$%.pmd file yet. Go into the
19 mrtg-2.15.1/translate directory and create your own translation file.
20 When you are happy with it send it to me for inclusion with the next
21 mrtg release.
22
23 I need a script to make mrtg work with my xyz device.
24
25 Probably this has already been done. Check the stuff in the
26 mrtg-2.15.1/contrib directory. There is a file called 00INDEX in that
27 directory which tells what you can find in there.
28
29 How does this SNMP thing work
30
31 There are many resources on the net that explain SNMP. Take a look at
32 this article from the Linux Journal by David Guerrero
33
34 http://www.david-guerrero.com/papers/snmp/
35
36 And at this rather long document from CISCO.
37
38 http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/snmp.htm
39
40 The images created by MRTG look very strange.
41
42 Remove the *-{week,day,month,year}.png files and start MRTG again.
43 Using MRTG for the first time, you might have to do this twice. This
44 will also help when you introduce new routers into the cfg file.
45
46 What is my Community Name?
47
48 Ask the person in charge of your Router or try 'public', as this is the
49 default Community Name.
50
51 My graphs show a flat line during an outage. Why ?
52
53 Well, the short answer is that when an SNMP query goes out and a
54 response doesn't come back, MRTG has to assume something to put in the
55 graph, and by default it assumes that the last answer we got back is
56 probably closer to the truth than zero. This assumption is not perfect
57 (as you have noticed). It's a trade-off that happens to fail during a
58 total outage.
59
60 If this is an unacceptable trade-off, use the unknaszero option.
61
62 You may want to know what you're trading off, so in the spirit of
63 trade-offs, here's the long answer:
64
65 The problem is that MRTG doesn't know *why* the data didn't come back,
66 all it knows is that it didn't come back. It has to do something, and
67 it assumes it's a stray lost packet rather than an outage.
68
69 Why don't we always assume the circuit is down and use zero, which will
70 (we think) be more nearly right? Well, it turns out that you may be
71 taking advantage of MRTG's "assume last" behaviour without being aware
72 of it.
73
74 MRTG uses SNMP (Simple Network Management Protocol) to collect data,
75 and SNMP uses UDP (User Datagram Protocol) to ship packets around. UDP
76 is connectionless (not guaranteed) unlike TCP where packets are tracked
77 and acknowledged and, if needed, retransmitted. UDP just throws pack‐
78 ets at the network and hopes they arrive. Sometimes they don't.
79
80 One likely cause of lost SNMP data is congestion; another is busy
81 routers. Other possibilities include transient telecommunications
82 problems, router buffer overflows (which may or may not be conges‐
83 tion-related), "dirty lines" (links with high error rates), and acts of
84 God. These things happen all the time; we just don't notice because
85 many interactive services are TCP-based and the lost packets get
86 retransmitted automatically.
87
88 In the above cases where some SNMP packets are lost but traffic is
89 flowing, assuming zero is the wrong thing to do - you end up with a
90 graph that looks like it's missing teeth whenever the link fills up.
91 MRTG interpolates the lost data to produce a smoother graph which is
92 more accurate in cases of intermittent packet loss. But with V2.8.4
93 and above, you can use the "unknaszero" option to produce whichever
94 graph is best under the conditions typical for your network.
95
97 Tobias Oetiker <tobi@oetiker.ch>
98
99
100
1012.15.1 2007-02-01 MRTG-FAQ(1)