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
Monitroing Bandwidth Cisco Switch
Re: Monitroing Bandwidth Cisco Switch
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.
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Monitroing Bandwidth Cisco Switch
Thanks for the reply. Sorry it has taken me so long to reply, I forgot my password
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.
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
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.
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.
Nicholas Scott
Former Nagios employee
Former Nagios employee
Re: Monitroing Bandwidth Cisco Switch
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!
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!
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Monitroing Bandwidth Cisco Switch
Yes. You can add them through the Network Router/Switch Wizard