mrtg−faq − How to get help if you have problems with MRTG
MRTG seems to raise a lot of questions. There are a number of resources apart from the documentation where you can find help for mrtg.
In the following sections you’ll find some additonal Frequently Asked Questions, with Answers.
Why is there
no "@#$%" (my native language) version of
MRTG ?
Nobody has contributed a @#$%.pmd file yet. Go into
the mrtg−2.17.4/translate directory and create
your own translation file. When you are happy with it send
it to me for inclusion with the next mrtg release.
I need a
script to make mrtg work with my xyz device.
Probably this has already been done. Check the stuff in the
mrtg−2.17.4/contrib directory. There is a file
called 00INDEX in that directory which tells what you
can find in there.
How does
this SNMP thing work
There are many resources on the net that explain
SNMP . Take a look at this article from the
Linux Journal by David Guerrero
http://www.david−guerrero.com/papers/snmp/
And at this rather long document from CISCO .
http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/snmp.htm
The images
created by MRTG look very strange.
Remove the *−{week,day,month,year}.png files and start
MRTG again. Using MRTG for the
first time, you might have to do this twice. This will also
help when you introduce new routers into the cfg file.
What is my
Community Name?
Ask the person in charge of your Router or try
’public’, as this is the default Community
Name.
My graphs
show a flat line during an outage. Why ?
Well, the short answer is that when an SNMP
query goes out and a response doesn’t come back,
MRTG has to assume something to put in the
graph, and by default it assumes that the last answer we got
back is probably closer to the truth than zero. This
assumption is not perfect (as you have noticed). It’s
a trade-off that happens to fail during a total outage.
If this is an unacceptable trade-off, use the unknaszero option.
You may want to know what you’re trading off, so in the spirit of trade-offs, here’s the long answer:
The problem is that MRTG doesn’t know *why* the data didn’t come back, all it knows is that it didn’t come back. It has to do something, and it assumes it’s a stray lost packet rather than an outage.
Why don’t we always assume the circuit is down and use zero, which will (we think) be more nearly right? Well, it turns out that you may be taking advantage of MRTG ’s "assume last" behaviour without being aware of it.
MRTG uses SNMP (Simple Network Management Protocol) to collect data, and SNMP uses UDP (User Datagram Protocol) to ship packets around. UDP is connectionless (not guaranteed) unlike TCP where packets are tracked and acknowledged and, if needed, retransmitted. UDP just throws packets at the network and hopes they arrive. Sometimes they don’t.
One likely cause of lost SNMP data is congestion; another is busy routers. Other possibilities include transient telecommunications problems, router buffer overflows (which may or may not be congestion-related), "dirty lines" (links with high error rates), and acts of God. These things happen all the time; we just don’t notice because many interactive services are TCP-based and the lost packets get retransmitted automatically.
In the above cases where some SNMP packets are lost but traffic is flowing, assuming zero is the wrong thing to do − you end up with a graph that looks like it’s missing teeth whenever the link fills up. MRTG interpolates the lost data to produce a smoother graph which is more accurate in cases of intermittent packet loss. But with V2.8.4 and above, you can use the "unknaszero" option to produce whichever graph is best under the conditions typical for your network.
Tobias Oetiker <tobi@oetiker.ch>
Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.
Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.
Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.
Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.
The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.
Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.
Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.
Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.