Switch monitoring wizard no bandwidth data for ports
Switch monitoring wizard no bandwidth data for ports
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
/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
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
http://assets.nagios.com/downloads/nagi ... .8c.tar.gz
Former Nagios employee
Re: Switch monitoring wizard no bandwidth data for ports
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.
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.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Switch monitoring wizard no bandwidth data for ports
Please run:
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
chown nagios:nagios nagiosql*Code: Select all
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh &> reconfig.txtRe: Switch monitoring wizard no bandwidth data for ports
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.
/var/lib/mrtg/172.10.10.207_1.rrd does not exist.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Switch monitoring wizard no bandwidth data for ports
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/Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: Switch monitoring wizard no bandwidth data for ports
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
[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
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Switch monitoring wizard no bandwidth data for ports
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?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: Switch monitoring wizard no bandwidth data for ports
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>
######################################################################
# 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>
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Switch monitoring wizard no bandwidth data for ports
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