Nagios MRTG does not deliver data from switch

Rainhard rainhard.schwarzinger at gmx.at
Wed Feb 24 20:39:31 CET 2010


Hey,

I want to get informations about the traffic of the port 1 from my cisco switch which understands SNMP. So I installed Nagios, the nagios plugins, snmpd, snmp and mrtg. I use the check_mrtgtraf command in my switch.cfg to do this.
After installing mrtg like described at http://oss.oetiker.ch/mrtg/doc/mrtg-unix-guide.en.html I also used cfgmaker to get my mrtg.cfg file.
This file looks like this:

# Created by
# ./cfgmaker --global "WorkDir: /etc/mrtg" --global "Options[_]: bits,growright" --output /etc/mrtg/cfg/mrtg.cfg 172.17.1.2


### Global Config Options

# for UNIX
# WorkDir: /home/http/mrtg

# or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

# to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits

EnableIPv6: no
WorkDir: /etc/mrtg
Options[_]: bits,growright

######################################################################
# System:
# Description:
# Contact:
# Location:
######################################################################

As the WorkDir says, the log-Files created from mrtg should be in the directory /etc/mrtg but the only files I find there are three pictures from mrtg.

My Nagios verion is 3.2.0, my nagios plugins version is 1.4.14 and my mrtg version is 2.16.3.

So what did I do wrong??

Thanks & Regards
Rainhard Schwarzinger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100224/46d6056e/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list