Wizard "Network Switch / Router" - check_xi_service_mrtgtraf

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Wizard "Network Switch / Router" - check_xi_service_mrtg

Post by nscott »

Great news Aurelien :D, 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
mccollege
Posts: 45
Joined: Fri Jan 14, 2011 10:06 am

Re: Wizard "Network Switch / Router" - check_xi_service_mrtg

Post 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?
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Wizard "Network Switch / Router" - check_xi_service_mrtg

Post by nscott »

After re-running the switch wizard it is not adding them to mrtg.cfg?
Nicholas Scott
Former Nagios employee
mccollege
Posts: 45
Joined: Fri Jan 14, 2011 10:06 am

Re: Wizard "Network Switch / Router" - check_xi_service_mrtg

Post by mccollege »

Correct.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Wizard "Network Switch / Router" - check_xi_service_mrtg

Post by mguthrie »

We'll do some more digging on this and see what we can find out...
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Wizard "Network Switch / Router" - check_xi_service_mrtg

Post 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.).
Nicholas Scott
Former Nagios employee
mccollege
Posts: 45
Joined: Fri Jan 14, 2011 10:06 am

Re: Wizard "Network Switch / Router" - check_xi_service_mrtg

Post 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>
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Wizard "Network Switch / Router" - check_xi_service_mrtg

Post 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 ?
Nicholas Scott
Former Nagios employee
mccollege
Posts: 45
Joined: Fri Jan 14, 2011 10:06 am

Re: Wizard "Network Switch / Router" - check_xi_service_mrtg

Post by mccollege »

The only file in /var/lib/mrtg is mrtg.ok.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Wizard "Network Switch / Router" - check_xi_service_mrtg

Post 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?
Nicholas Scott
Former Nagios employee
Locked