Problem with the network switch/router wizard
-
kgopiramesh
Problem with the network switch/router wizard
Hi,
We are experiencing issues with the network switch and router wizard, I have discovered one of the switches in our environment, the nagios is displaying the band width utilization for all the ports except one port. and I couldn't even find the related rrd file in /var/lib/mrtg. How to display the data for the problematic port.
I have checked the mrtg.conf in /etc/mrtg/mrtg.conf folder and for that port the description is commented out saying that port is administratively down but the port status is up and running fine.
I have uncommented the configuration still its not helping, do we need to restart any service after editing the configuration
Is it ok to edit the mrtg.conf by hand or is there any other way to do the same.
We are experiencing issues with the network switch and router wizard, I have discovered one of the switches in our environment, the nagios is displaying the band width utilization for all the ports except one port. and I couldn't even find the related rrd file in /var/lib/mrtg. How to display the data for the problematic port.
I have checked the mrtg.conf in /etc/mrtg/mrtg.conf folder and for that port the description is commented out saying that port is administratively down but the port status is up and running fine.
I have uncommented the configuration still its not helping, do we need to restart any service after editing the configuration
Is it ok to edit the mrtg.conf by hand or is there any other way to do the same.
Re: Problem with the network switch/router wizard
If the port was administratively down at the time you ran the wizard, it would not be added. In order to add the port later, you will need to remove all of the "old" entries, and re-run the wizard. Make sure the port is up before you run the wizard.
Please, follow the steps, outlined in this document.
Please, follow the steps, outlined in this document.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Problem with the network switch/router wizard
If you run a scan with the wizard against that switch again, does the port show in the list? You will want to remove the port's definition from the mrtg.cfg file following the steps here:
http://assets.nagios.com/downloads/nagi ... Router.pdf
http://assets.nagios.com/downloads/nagi ... Router.pdf
-
kgopiramesh
Re: Problem with the network switch/router wizard
Thanks for the reply, I have done the steps mentioned in the document and removed, add the device again through the configuration wizard still didn't help
Is there any command to create the rrd file because it is very difficult to delete and add the hosts every time.
Is there any command to create the rrd file because it is very difficult to delete and add the hosts every time.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Problem with the network switch/router wizard
You did not answer my last question... it is imperative that you do so we know whether or not this port is even being picked up:
If you run a scan with the wizard against that switch again, does the port show in the list?
-
kgopiramesh
Re: Problem with the network switch/router wizard
Yes the port is getting listed in the network switch / router monitoring wizard. but again same problem
is there any way to create rrd file by querying the switch port from the command line.
is there any way to create rrd file by querying the switch port from the command line.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Problem with the network switch/router wizard
Since you have hopefully correctly completed re-adding the device via the4 wizard, I would suggest you take a look at the mrtg configuration, and see if that port is listed but commented out. Otherwise you can post your mrtg.cfg, and the port\device that is having the issues and we can take a look.
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.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Problem with the network switch/router wizard
Monitoring additional ports later using the wizard does not work (if the switch was monitored using the wizard previously)
The wizard will NOT re-add the ports to the mrtg.cfg file
Wizard detects switch / router is already in the mrtg.cfg file
cfgmaker is how the Wizard configures mrtg.cfg
When monitoring a new switch, the wizard updates the existing mrtg.cfg using a php function (not available from the CLI).
Run cfgmaker @ CLI to generate a config file
Add the contents of the config file to the existing mrtg.cfg (specifically the port you are after).
The wizard will NOT re-add the ports to the mrtg.cfg file
Wizard detects switch / router is already in the mrtg.cfg file
cfgmaker is how the Wizard configures mrtg.cfg
When monitoring a new switch, the wizard updates the existing mrtg.cfg using a php function (not available from the CLI).
Run cfgmaker @ CLI to generate a config file
Add the contents of the config file to the existing mrtg.cfg (specifically the port you are after).
Code: Select all
cfgmaker --noreversedns “[email protected]" --output=output.txtAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
kgopiramesh
Re: Problem with the network switch/router wizard
Thank you so much, cfgmaker has done the trick. You can lock the thread
But one query, when I appended the output it has resolved the issue, what is the difference between appending and u un-ommenting here
But one query, when I appended the output it has resolved the issue, what is the difference between appending and u un-ommenting here
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Problem with the network switch/router wizard
Not sure what exactly you mean. Un-commenting requires that there already be lines in a file which you need or want to un-comment, appending means you are adding something which otherwise would not normally exist in a file. Those are just broad definitions.