Page 3 of 4
Re: Wizard "Network Switch / Router" - check_xi_service_mrtg
Posted: Tue Jun 28, 2011 10:05 am
by nscott
Great news Aurelien

, as for the reason I don't think I can give an absolute answer. According the MRTG tech docs, the WorkDir specifies where the RRDs will be created. Perhaps before it was attempting to create temporary RRDs in some mrtg temp directory that it didn't have permissions to access.
Re: Wizard "Network Switch / Router" - check_xi_service_mrtg
Posted: Thu Jun 30, 2011 10:00 am
by mccollege
Once I clear the switches out of my mrtg.cfg, the wizard isn't adding them back in.
By clear them out, I pretty much deleted everything below line 37 in the .cfg
Any ideas?
Re: Wizard "Network Switch / Router" - check_xi_service_mrtg
Posted: Thu Jun 30, 2011 1:27 pm
by nscott
After re-running the switch wizard it is not adding them to mrtg.cfg?
Re: Wizard "Network Switch / Router" - check_xi_service_mrtg
Posted: Thu Jun 30, 2011 3:16 pm
by mccollege
Correct.
Re: Wizard "Network Switch / Router" - check_xi_service_mrtg
Posted: Fri Jul 01, 2011 1:44 pm
by mguthrie
We'll do some more digging on this and see what we can find out...
Re: Wizard "Network Switch / Router" - check_xi_service_mrtg
Posted: Tue Jul 05, 2011 11:43 am
by nscott
mccollege,
MRTG is VERY picky about configs and will absolutely not add anything to the config if it thinks it already has something for that device. Are there any bits from that switch still left somewhere in the mrtg.cfg? You may need to get rid of the rrd from that switch as well (you can name them nameofrrd.rrd.bak if you want to backup your stored data.).
Re: Wizard "Network Switch / Router" - check_xi_service_mrtg
Posted: Wed Jul 13, 2011 4:48 pm
by mccollege
I cleared out the mrtg.cfg, /usr/local/nagios/share/perfdata, /usr/local/nagioxi/tmp/ of all traces of the switches.
Still won't add anything to my mrtg.cfg.
Here are the contents of my mrtg.cfg:
Code: Select all
######################################################################
# Multi Router Traffic Grapher -- Example Configuration File
######################################################################
# This file is for use with mrtg-2.0
#
# Note:
#
# * Keywords must start at the begin of a line.
#
# * Lines which follow a keyword line which do start
# with a blank are appended to the keyword line
#
# * Empty Lines are ignored
#
# * Lines starting with a # sign are comments.
# Where should the logfiles, and webpages be created?
# Minimal mrtg.cfg
#--------------------
HtmlDir: /var/www/mrtg
ImageDir: /var/www/mrtg
LogFormat: rrdtool
LogDir: /var/lib/mrtg
ThreshDir: /var/lib/mrtg
WorkDir: /var/lib/mrtg
#Target[r1]: 2:[email protected]
#MaxBytes[r1]: 1250000
#Title[r1]: Traffic Analysis
#PageTop[r1]: <H1>Stats for our Ethernet</H1>
Re: Wizard "Network Switch / Router" - check_xi_service_mrtg
Posted: Thu Jul 14, 2011 9:24 am
by nscott
Can you clean out your /var/lib/mrtg (leave the mrtg.ok file)? That may be an issue as well, but this is admittedly odd behavior. Is there any mail that has shown up in you /var/spool/mail/root ?
Re: Wizard "Network Switch / Router" - check_xi_service_mrtg
Posted: Thu Jul 14, 2011 10:55 am
by mccollege
The only file in /var/lib/mrtg is mrtg.ok.
Re: Wizard "Network Switch / Router" - check_xi_service_mrtg
Posted: Thu Jul 14, 2011 11:09 am
by nscott
We're going to have to revert to the logs here.
Does your nagios.log , var/spool/mail/root contain anything useful regarding MRTG?