Switch monitoring wizard no bandwidth data for ports

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Switch monitoring wizard no bandwidth data for ports

Post by lmiltchev »

Do you have any errors or there is no output, when you run the following command in the CLI?

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg -check
Be sure to check out our Knowledgebase for helpful articles and solutions!
ctmoney
Posts: 18
Joined: Thu Jan 30, 2014 4:13 pm

Re: Switch monitoring wizard no bandwidth data for ports

Post by ctmoney »

There is not any output when I run that command.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Switch monitoring wizard no bandwidth data for ports

Post by lmiltchev »

Go to Admin->Manage Config Wizards->and click on "Check for updates". Check to see what is your current version of the Network Switch/Router Wizard. I believe it should be 1.6, but there should be a 1.7 available for download. Install the latest version of the wizard, and re-run it, following this document:
http://assets.nagios.com/downloads/nagi ... Router.pdf
Let me know if this fixed your issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ctmoney
Posts: 18
Joined: Thu Jan 30, 2014 4:13 pm

Re: Switch monitoring wizard no bandwidth data for ports

Post by ctmoney »

ctmoney wrote:I am on Version 2.0 of the switch configuration wizard.

Here is the config for an interface in the mrtg.cfg file

### Interface 1 >> Descr: 'GigabitEthernet1/0/1' | Name: 'GigabitEthernet1/0/1' | Ip: '' | Eth: '30-78-32-30-66-64-66-31-39-66-34-33-66-62' ###
I am on version 2.0
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Switch monitoring wizard no bandwidth data for ports

Post by lmiltchev »

I am on Version 2.0 of the switch configuration wizard.
Can you go to Admin->Manage Config Wizards, and show us a screenshot, showing the wizard's version? See below:
example.PNG
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ctmoney
Posts: 18
Joined: Thu Jan 30, 2014 4:13 pm

Re: Switch monitoring wizard no bandwidth data for ports

Post by ctmoney »

Here you go.
switch.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Switch monitoring wizard no bandwidth data for ports

Post by lmiltchev »

I see what happened... The version 2.0 accidentally got uploaded, which is meant to be used with Nagios XI 2014... It will not work properly with your current version of XI. The latest "supported" version is 1.7, therefore you will need to downgrade the wizard.

Download the wizard from the Nagios Exchage:

http://exchange.nagios.org/directory/Ad ... rd/details

and install it by going to Admin->Manage Config Wizards->Browse->...->Upload Wizard.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ctmoney
Posts: 18
Joined: Thu Jan 30, 2014 4:13 pm

Re: Switch monitoring wizard no bandwidth data for ports

Post by ctmoney »

I successfully installed the 1.7 wizard
followed the instructions in this doc http://assets.nagios.com/downloads/nagi ... Router.pdf
Re-added my switches
The ports were all found without a problem, but the bandwidth is still reporting at 0 on ports where I know a considerable amount of data is traversing.
The file in /etc/mrtg/mrtg.cfg has the following

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
I have an mrtgscan-172.10.10.207 file in /usr/local/nagiosxi/tmp with the following first few lines

Code: Select all

# Created by
# /usr/bin/cfgmaker --show-op-down --zero-speed=100000000 --snmp-options=:::::1 --noreversedns [email protected]


### Global Config Options

#  for UNIX
# WorkDir: /home/http/mrtg

#  or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

#  to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits

EnableIPv6: no

######################################################################
# System: CorpSwitch-D01
# Description: 3Com Baseline Switch 2952-SFP Plus Software Version 5.20 Release 1101P10
#          Copyright (c) 2004-2010 3Com Corporation. All rights reserved.
# Contact: [email protected]
# Location: Server Room
######################################################################


### Interface 1 >> Descr: 'GigabitEthernet1/0/1' | Name: 'GigabitEthernet1/0/1' | Ip: '' | Eth: '30-78-32-30-66-64-66-31-39-66-34-33-66-62' ###

Target[172.10.10.207_1]: 1:[email protected]:::::1
SetEnv[172.10.10.207_1]: MRTG_INT_IP="" MRTG_INT_DESCR="GigabitEthernet1/0/1"
MaxBytes[172.10.10.207_1]: 1250000
Title[172.10.10.207_1]: Traffic Analysis for 1 -- CorpSwitch-D01
PageTop[172.10.10.207_1]: <h1>Traffic Analysis for 1 -- CorpSwitch-D01</h1>
                <div id="sysdetails">
                        <table>
                                <tr>
                                        <td>System:</td>
                                        <td>CorpSwitch-D01 in Server Room</td>
                                </tr>
                                <tr>
                                        <td>Maintainer:</td>
                                        <td>[email protected]</td>
                                </tr>
                                <tr>
                                        <td>Description:</td>
                                        <td>GigabitEthernet1/0/1 GigabitEthernet1/0/1 Interface </td>
                                </tr>
                                <tr>
                                        <td>ifType:</td>
                                        <td>Gigabit Ethernet (117)</td>
There is not any output when I run the following:

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg –check
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

Post by slansing »

What is the current output of the following:

Code: Select all

ls -la /var/lib/mrtg
ls -ld /var/lib/mrtg
ls -la /etc/mrtg/mrtg.cfg
ls -ld /etc/mrtg
ctmoney
Posts: 18
Joined: Thu Jan 30, 2014 4:13 pm

Re: Switch monitoring wizard no bandwidth data for ports

Post by ctmoney »

Here you go

[root@localhost ~]# ls -la /var/lib/mrtg

Code: Select all

total 8744
drwxr-xr-x   2 root root   4096 Feb 10 13:15 .
drwxr-xr-x. 23 root root   4096 Jan 17 14:13 ..
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_10.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_11.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_12.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_13.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_14.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_15.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_16.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_17.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_18.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_19.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_1.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_20.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_21.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_22.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_23.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_24.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_25.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_26.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_27.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_28.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_29.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_2.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_30.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_31.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_32.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_33.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_34.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_35.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_36.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_37.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_38.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_39.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_3.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_40.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_41.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_42.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_43.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_44.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_45.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_46.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_47.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_48.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_49.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_4.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_50.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_51.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_52.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_53.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_54.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_5.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_6.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_7.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_8.rrd
-rw-r--r--   1 root root 105312 Feb 14 11:00 172.10.10.207_9.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_10.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_11.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_12.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_13.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_14.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_15.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_16.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_17.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_18.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_19.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_1.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_20.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_21.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_22.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_23.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_24.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_25.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_26.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_27.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_28.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_29.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_2.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_30.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_3.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_4.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_5.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_6.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_7.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_8.rrd
-rw-r--r--   1 root root 105312 Feb 10 13:10 172.10.10.208_9.rrd
-rw-r--r--   1 root root      0 Feb 20 10:15 mrtg.ok
ls -ld /var/lib/mrtg

Code: Select all

drwxr-xr-x 2 root root 4096 Feb 10 13:15 /var/lib/mrtg
ls -la /etc/mrtg/mrtg.cfg

Code: Select all

-rw-r--r-- 1 root root 282 Feb 14 11:04 /etc/mrtg/mrtg.cfg
ls -ld /etc/mrtg

Code: Select all

drwxr-xr-x 2 root root 4096 Feb 14 14:16 /etc/mrtg
Locked