Page 1 of 1

Monitroing Bandwidth Cisco Switch

Posted: Wed Jul 18, 2012 10:32 am
by tweaver
Hi Guys,

I've recently started to use Nagios XI and have bought a licence to monitor our infrastructure across multiple sites.
I've already added our Cisco equipment using the wizards and have fine tuned some things in Core Manager.
The problem I am having is by default we shut our ports down on the switch if they aren't in use so the wizard only monitors port which were up at the time the wizard scanned them.

Is there an easy way to add a port through config manager or command line so the port is monitored for Bandwidth and all the performance data is gathered.
There are probably lots of different ways to do this but I want to keep the configuration similar to what the wizard has created.

Any help would be much appreciated

Re: Monitroing Bandwidth Cisco Switch

Posted: Wed Jul 18, 2012 12:26 pm
by lmiltchev
There is no an easy way of doing this. You cannot add a port through the CCM later. What you need to do is:
1. Remove ALL of the entries in the "/etc/mrtg/mrtg.cfg" file associated with this IP (below the line: "#### ADDED BY NAGIOSXI ...")
2. Remove ALL of the "mrtgscan" files from "/usr/local/nagiosxi/tmp" associated with this IP
3. Make sure ALL of the ports on this switch are UP.
4. Re-run the wizard.

Alternatively...
We have another wizard that you can try - "High Performance Network Switch / Router Wizard", which doesn't use MRTG and would be easier to modify your checks via the CCM . It is still in development (BETA), but you are welcome to try it if you wish. Just let me know and I will send you a PM with the wizard and instructions.

Hope this helps.

Re: Monitroing Bandwidth Cisco Switch

Posted: Tue Aug 07, 2012 6:37 am
by tweaver
Thanks for the reply. Sorry it has taken me so long to reply, I forgot my password :oops:
So I need to remove everything and start again?

I looked at the Wizard code and there is a commented out bit:

$cmd.=" --show-op-down --zero-speed=".$defaultspeed." --snmp-options=:::::".$snmpversion." --noreversedns ".$snmpcommunity."@".$address;

//$cmd.=" --ifref=descr --no-down";

This "--no-down" option will just add all interfaces on the switch won't it?
Can I not just uncomment this section add all interfaces both up and down and then just disable the monitors that I dont need in NagiosXI.
I know this will mean extra polling of the device but does mean I can enable the monitors if we then start to use that port.

I'd be happy to test out the new wizard.

Thanks.

Re: Monitroing Bandwidth Cisco Switch

Posted: Tue Aug 07, 2012 12:38 pm
by nscott
Yeah you should be able to uncomment that section and have the wizard scan it and get the new config.

However, you will still have to go through the MRTG config file and remove all traces of that host. If you try to add more services to the mrtg config file using cfgmaker it will simply not add them. So go through and do that, making sure to also remove all the mrtgscan items in the nagiosxi/tmp directory and you should be good to go.

Re: Monitroing Bandwidth Cisco Switch

Posted: Fri Aug 31, 2012 2:53 pm
by nagiosiws
Hello Friends of Nagios

We have a switch's Catalys and would like to monitor each of the ports, is this possible in nagios xi?
Can you tell me how I can add?

Thanks in advance!

Re: Monitroing Bandwidth Cisco Switch

Posted: Tue Sep 04, 2012 11:03 am
by scottwilkerson
Yes. You can add them through the Network Router/Switch Wizard