[Nagiosplug-help] MRTG

Thomas Guyot-Sionnest dermoth at aei.ca
Thu Feb 7 01:34:46 CET 2008

Hash: SHA1

On 06/02/08 11:57 AM, Chris New wrote:
> Hi list
> I am having difficulties getting MRTG's banwidth reading to import into my Nagios.  I do not fully understand the Check MRTG, and need some assistance.  Could you please help me?
> Here is what is happening in Nagios:
> THIS IS WHAT ERROR I GET:  check_mrtgtraf: Unable to open MRTG log file 
> Here is what my last line of my MRTG check looks like:
> "check_local_mrtgtraf!/var/lib/mrtg/ .log!AVG! 1000000, 2000000! 5000000, 5000000!5"

There's an extra space in the file name, but if the file doesn't exists
it doesn't matter anyways.

> I am not sure if I need to change anything, and if I do what? Would you mind telling me what is each section for, and which ones need changes, if at all.  
> I know UBUNTU puts things in different folders, since it is UNIX based. When I went to the /var/lib/mrtg folder there was nothing in there but a file named:

Ubuntu isn't any more "UNIX" than any other Linux distribution and is
far from having a "UNIX philosophy" compared to distributions like

OTOH Ubuntu is Debian-based and share many aspects of the Debian
distribution which are quite different than most other mainstream
distributions which are RedHat-based (RHEL, Suse, Centos, Fedora,

> _etc_mrtg.cfg
> And I have looked and looked and only found /var/log/mrtg/mrtg.log.  Needless to say I can not locate a log file.

Did you (or somebody else) set up MRTG? You should have one or more
config files for it. You should have a cronjob calling mrtg with your
config files as arguments... And finally the config files should specify
the log location.

There really aren't any "standard" place for mrtg logs. There's
obviously an example in the official MRTG sample config, most
distributions probably use their own sample configs with different paths
and whoever set it up is free to change it.

Another place you can look at is the http daemon config as the logs are
stored in the same place as the html pages and graphs.

Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


More information about the Help mailing list