Wizard "Network Switch / Router" - check_xi_service_mrtgtraf
Re: Wizard "Network Switch / Router" - check_xi_service_mrtg
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.
Nicholas Scott
Former Nagios employee
Former Nagios employee
Re: Wizard "Network Switch / Router" - check_xi_service_mrtg
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?
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
After re-running the switch wizard it is not adding them to mrtg.cfg?
Nicholas Scott
Former Nagios employee
Former Nagios employee
Re: Wizard "Network Switch / Router" - check_xi_service_mrtg
We'll do some more digging on this and see what we can find out...
Re: Wizard "Network Switch / Router" - check_xi_service_mrtg
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.).
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.).
Nicholas Scott
Former Nagios employee
Former Nagios employee
Re: Wizard "Network Switch / Router" - check_xi_service_mrtg
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:
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
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 ?
Nicholas Scott
Former Nagios employee
Former Nagios employee
Re: Wizard "Network Switch / Router" - check_xi_service_mrtg
The only file in /var/lib/mrtg is mrtg.ok.
Re: Wizard "Network Switch / Router" - check_xi_service_mrtg
We're going to have to revert to the logs here.
Does your nagios.log , var/spool/mail/root contain anything useful regarding MRTG?
Does your nagios.log , var/spool/mail/root contain anything useful regarding MRTG?
Nicholas Scott
Former Nagios employee
Former Nagios employee