Page 1 of 1

Problem with the network switch/router wizard

Posted: Thu May 08, 2014 6:21 am
by kgopiramesh
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.

Re: Problem with the network switch/router wizard

Posted: Thu May 08, 2014 12:42 pm
by lmiltchev
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.

Re: Problem with the network switch/router wizard

Posted: Thu May 08, 2014 12:43 pm
by slansing
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

Re: Problem with the network switch/router wizard

Posted: Fri May 09, 2014 6:47 am
by kgopiramesh
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.

Re: Problem with the network switch/router wizard

Posted: Fri May 09, 2014 9:54 am
by slansing
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?

Re: Problem with the network switch/router wizard

Posted: Mon May 12, 2014 4:39 am
by kgopiramesh
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.

Re: Problem with the network switch/router wizard

Posted: Mon May 12, 2014 11:57 am
by sreinhardt
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.

Re: Problem with the network switch/router wizard

Posted: Mon May 12, 2014 4:23 pm
by Box293
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).

Code: Select all

cfgmaker --noreversedns “[email protected]" --output=output.txt

Re: Problem with the network switch/router wizard

Posted: Tue May 13, 2014 8:36 am
by kgopiramesh
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

Re: Problem with the network switch/router wizard

Posted: Tue May 13, 2014 9:52 am
by slansing
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.