Page 1 of 4

Switch monitoring wizard no bandwidth data for ports

Posted: Wed Feb 05, 2014 6:00 pm
by ctmoney
I have a new install, and when I run the switch monitoring wizard to monitor a switch the status for the link on the switch is fine but I get the following error for bandwidth usage:

/var/lib/mrtg/172.10.10.207_1.rrd does not exist.

I have read in several places this error will occur if adding ports to an existing switch, but I get this error when adding the switch for the first time.

Installed Version: 2012R2.8b
Installed from VM Image
64 bit

Re: Switch monitoring wizard no bandwidth data for ports

Posted: Thu Feb 06, 2014 10:09 am
by tmcdonald
We released 2012R2.8c as a fix for the Switch and Router Wizard which was released prematurely. An update should help with this.

http://assets.nagios.com/downloads/nagi ... .8c.tar.gz

Re: Switch monitoring wizard no bandwidth data for ports

Posted: Thu Feb 06, 2014 5:14 pm
by ctmoney
I applied the update 2012R2.8c, cleared MRTG config, deleted switches, re-ran switch wizard and I receive the following error and the switch wizard does not complete.

Configuration submitted for processing...
Waiting for configuration verification....
Backend login to the Core Config Manager failed.

I verified that I can still login to the core config manager with the default password and this works fine. I cannot add any other services or devices to monitor either. I receive the same error.

I re-installed from scratch on a VM in my dev environment and the add device wizards work with the original install of 2012R2.8b, but once I upgrade to 2012R2.8c the wizard fails.

Re: Switch monitoring wizard no bandwidth data for ports

Posted: Thu Feb 06, 2014 5:22 pm
by slansing
Please run:

Code: Select all

cd /usr/local/nagiosxi/scripts
chown nagios:nagios nagiosql*
If it still does not function properly run the following and attach the out file here, thanks!:

Code: Select all

 cd /usr/local/nagiosxi/scripts
 ./reconfigure_nagios.sh &> reconfig.txt

Re: Switch monitoring wizard no bandwidth data for ports

Posted: Thu Feb 06, 2014 6:20 pm
by ctmoney
Great, this fixed the backend login failure but the bandwidth monitoring is still not working. Same error as before.

/var/lib/mrtg/172.10.10.207_1.rrd does not exist.

Re: Switch monitoring wizard no bandwidth data for ports

Posted: Fri Feb 07, 2014 11:40 am
by sreinhardt
OK, what permissions do you have on these locations: (please respond with the output from all commands)

Code: Select all

ls -lvad /etc/mrtg/
ls -lva /etc/mrtg/
ls -lvad /var/lib/mrtg/
ls -lva /var/lib/mrtg/

Re: Switch monitoring wizard no bandwidth data for ports

Posted: Fri Feb 07, 2014 12:31 pm
by ctmoney
Here you go.

[root@localhost scripts]# ls -lvad /etc/mrtg/
drwxr-xr-x 2 root root 4096 Jan 17 14:09 /etc/mrtg/


[root@localhost scripts]# ls -lva /etc/mrtg/
total 40
drwxr-xr-x 2 root root 4096 Jan 17 14:09 .
drwxr-xr-x. 82 root root 4096 Feb 6 15:00 ..
-rw-r--r-- 1 apache nagios 31339 Feb 6 16:16 mrtg.cfg


[root@localhost scripts]# ls -lvad /var/lib/mrtg/
drwxr-xr-x 2 root root 4096 Jan 17 14:10 /var/lib/mrtg/


[root@localhost scripts]# ls -lva /var/lib/mrtg/
total 8
drwxr-xr-x 2 root root 4096 Jan 17 14:10 .
drwxr-xr-x. 23 root root 4096 Jan 17 14:13 ..
-rw-r--r-- 1 root root 0 Feb 6 15:00 mrtg.ok

Re: Switch monitoring wizard no bandwidth data for ports

Posted: Fri Feb 07, 2014 3:56 pm
by sreinhardt
Well, those all look like the correct permissions, if you run the switch and router wizard, does the the filetime update on the mrtg.cfg file?

Re: Switch monitoring wizard no bandwidth data for ports

Posted: Mon Feb 10, 2014 9:57 am
by ctmoney
Yes, the mrtg.cfg files updates. Below is the start of the config for the file. The port status monitors just fine, it's the bandwidth that is reporting unknown with the "/var/lib/mrtg/172.10.10.208_10.rrd does not exist." error



######################################################################
# System: CorpSwitch-D02
# Description: HP V1910-24G Switch Software Version 5.20 Release 1108P01
# Copyright (c) 2004-2011 Hewlett-Packard Development Company, L.P.
######################################################################


### Interface 1 >> Descr: 'GigabitEthernet1/0/1' | Name: 'GigabitEthernet1/0/1' | Ip: '' | Eth: '30-78-62-38-61-66-36-37-31-37-36-61-37-65' ###

Target[172.10.10.208_1]: 1:[email protected]:::::2c
SetEnv[172.10.10.208_1]: MRTG_INT_IP="" MRTG_INT_DESCR="GigabitEthernet1/0/1"
MaxBytes[172.10.10.208_1]: 125000000
Title[172.10.10.208_1]: Traffic Analysis for 1 -- CorpSwitch-D02
PageTop[172.10.10.208_1]: <h1>Traffic Analysis for 1 -- CorpSwitch-D02</h1>
<div id="sysdetails">
<table>
<tr>
<td>System:</td>
<td>CorpSwitch-D02 in Corporate north office switch closet</td>
</tr>
<tr>
<td>Maintainer:</td>
<td>[email protected]</td>
</tr>
<tr>
<td>Description:</td>
<td>GigabitEthernet1/0/1 </td>
</tr>
<tr>
<td>ifType:</td>
<td>Gigabit Ethernet (117)</td>
</tr>
<tr>
<td>ifName:</td>
<td>GigabitEthernet1/0/1</td>

Re: Switch monitoring wizard no bandwidth data for ports

Posted: Mon Feb 10, 2014 1:43 pm
by scottwilkerson
It looks like you are missing a chunk of data from the top of your mrtg.cfg, the file should start with these directives

Code: Select all

HtmlDir: /var/www/mrtg
ImageDir: /var/www/mrtg
LogFormat: rrdtool
LogDir: /var/lib/mrtg
ThreshDir: /var/lib/mrtg

#Target[r1]: 2:[email protected]
#MaxBytes[r1]: 1250000
#Title[r1]: Traffic Analysis
#PageTop[r1]: <H1>Stats for our Ethernet</H1>

WorkDir: /var/lib/mrtg