Switch monitoring wizard no bandwidth data for ports
Re: Switch monitoring wizard no bandwidth data for ports
The file had these directives before I ran the switch wizard, but they appear to be overwritten by the switch wizard. I added these lines back to the config file and I am now getting bandwidth data. Bug in the switch wizard?
-
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
It's possible they were split, do you have multiple mrtg.cfg files? Possibly one named mrtg-main.cfg or something like that?
Re: Switch monitoring wizard no bandwidth data for ports
No, just one file in the /etc/mrtg folder. I did add a second switch with the same result. The wizard overwrites everything in the mrtg.cfg file to include the top entries listed below. If I add them back to the config file after the wizard runs, the errors go away and I get an "Ok" status for bandwidth.
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
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
Re: Switch monitoring wizard no bandwidth data for ports
The Bandwidth status is showing as "OK", but there is not any bandwidth data appearing in the monitor. All ports are saying "0 up" and "0 down". The monitor has been in place for over an hour and there is a considerable amount of traffic going over several ports.
-
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
I'd like to verify which version of the wizard you are actually using, Admin > Manage Config Wizards > Switch And Router Wizard. What is the version number here?
Also, can we see the full current output of one of your interfaces that is showing incorrect information in Nagios XI, we need you to grab a snippit of code between the lines starting in "Target[" and ending in "</div>" after that div you should see the next interface starting.
Also, can we see the full current output of one of your interfaces that is showing incorrect information in Nagios XI, we need you to grab a snippit of code between the lines starting in "Target[" and ending in "</div>" after that div you should see the next interface starting.
Re: Switch monitoring wizard no bandwidth data for ports
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' ###
Target[172.10.10.207_1]: 1:[email protected]:::::2c
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>
</tr>
<tr>
<td>ifName:</td>
<td>GigabitEthernet1/0/1</td>
</tr>
<tr>
<td>Max Speed:</td>
<td>1250.0 kBytes/s</td>
</tr>
</table>
</div>
Thanks for your help!
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' ###
Target[172.10.10.207_1]: 1:[email protected]:::::2c
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>
</tr>
<tr>
<td>ifName:</td>
<td>GigabitEthernet1/0/1</td>
</tr>
<tr>
<td>Max Speed:</td>
<td>1250.0 kBytes/s</td>
</tr>
</table>
</div>
Thanks for your help!
Re: Switch monitoring wizard no bandwidth data for ports
Just to clarify - you followed the steps, outlined in this document, correct?
Have you tried re-running the wizard, and using the SNMP ver.1 (for testing purposes)?
Do you have any mrtg-related errors in the "/var/log/messages"?
Have you tried re-running the wizard, and using the SNMP ver.1 (for testing purposes)?
Do you have any mrtg-related errors in the "/var/log/messages"?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Switch monitoring wizard no bandwidth data for ports
I did not follow the steps in the referred to document, this is for adding a whole new switch not adding ports to an existing switch.
Nothing in "/var/log/messages" referring to any error with the switch or monitoring bandwidth.
I have not tried version 1 of the switch wizard. I will have to stand up a test nagiosxi machine in my dev environment and give that a shot. I will let you know what I find.
Nothing in "/var/log/messages" referring to any error with the switch or monitoring bandwidth.
I have not tried version 1 of the switch wizard. I will have to stand up a test nagiosxi machine in my dev environment and give that a shot. I will let you know what I find.
Re: Switch monitoring wizard no bandwidth data for ports
Actually, this is not correct. Even if you are adding a couple of extra ports (because they were, for example, administratively down when you were running the wizard), you will still have to follow this document, and remove ALL of the old data for this switch... quoted from the doc:I did not follow the steps in the referred to document, this is for adding a whole new switch not adding ports to an existing switch.
When a switch or router is already being monitored by Nagios XI, but you need to add an additional service...
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Switch monitoring wizard no bandwidth data for ports
This is still all from a new install though. I have not added any additional ports, or re-ran the wizard for the switches. Each time has been for a new switch.