Cisco Switch Monitor Gig interface

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Cisco Switch Monitor Gig interface

Post by scottwilkerson »

For Gigabit interfaces you usually should use SNMP v2c looking at the logs it appears these are setup for SNMP v1
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ddbrooks
Posts: 22
Joined: Fri Nov 09, 2012 1:16 pm

Re: Cisco Switch Monitor Gig interface

Post by ddbrooks »

abrist - no changes today just ran the mrtg export to the log. MRTG should be running all the time. other graphs are generating.

Scott - Where do I need to change this? In config manager I don't see where to change this.

Thanks,


Dave
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Cisco Switch Monitor Gig interface

Post by sreinhardt »

That would be changed in the network switch and router wizard when running it. It should ask if you wish to use v1 or v2c. If you rerun the wizard, you may have to follow the documentation to manually remove the ports from the mrtg config too.
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.
ddbrooks
Posts: 22
Joined: Fri Nov 09, 2012 1:16 pm

Re: Cisco Switch Monitor Gig interface

Post by ddbrooks »

I want to be sure I am understanding this. I need to remove the switch and re-add selecting SNMP 2c, is this correct? there is no way to change it on the fly?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Cisco Switch Monitor Gig interface

Post by sreinhardt »

No I merely mentioned that it might be needed. Ideally like in any other nagios wizard, you should be able to just run through the wizard again and it will overwrite the changes needed. Otherwise if that does not happen, then yes you would need to manually remove them from the mrtg configuration, which is separate from the nagios configs.
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.
ddbrooks
Posts: 22
Joined: Fri Nov 09, 2012 1:16 pm

Re: Cisco Switch Monitor Gig interface

Post by ddbrooks »

OK, I set up a brand new check for this through the wizard, I did not overwrite the old one so we could have a comparison. It's been 20min we don't have any graph yet on that port but others are graphing now problem

DAve
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Cisco Switch Monitor Gig interface

Post by slansing »

At this point I think the best solution would be to do this:

1. Remove the host and it's services from the CCM in XI and apply configuration.

2. Edit the mrtg.cfg file and remove all lines connected to the interfaces, they will look similar to this "be sure to remove everything from the interface name that is preceded by #'s to the closing </div>:

Code: Select all

### Interface 1 >> Descr: 'Port:-1-Gigabit---Level' | Name: '' | Ip: '' | Eth: '' ###

Target[192.168.5.41_1]: 1:[email protected]:::::2
noHC[192.168.5.41_1]: yes
SetEnv[192.168.5.41_1]: MRTG_INT_IP="" MRTG_INT_DESCR="Port:-1-Gigabit---Level"
MaxBytes[192.168.5.41_1]: 12500000
Title[192.168.5.41_1]: Traffic Analysis for 1 -- PROCURVE J9450A
PageTop[192.168.5.41_1]: <h1>Traffic Analysis for 1 -- PROCURVE J9450A</h1>
                <div id="sysdetails">
                        <table>
                                <tr>
                                        <td>System:</td>
                                        <td>PROCURVE J9450A in </td>
                                </tr>
                                <tr>
                                        <td>Maintainer:</td>
                                        <td></td>
                                </tr>
                                <tr>
                                        <td>Description:</td>
                                        <td>Port:-1-Gigabit---Level  </td>
                                </tr>
                                <tr>
                                        <td>ifType:</td>
                                        <td>Gigabit Ethernet (117)</td>
                                </tr>
                                <tr>
                                        <td>ifName:</td>
                                        <td></td>
                                </tr>
                                <tr>
                                        <td>Max Speed:</td>
                                        <td>12.5 MBytes/s</td>
                                </tr>
                        </table>
                </div>
3. Once you have removed all traces in the config file, save it and remove the RRD's associated with these interfaces, they will be located in:

Code: Select all

/var/lib/mrtg/

Code: Select all

/usr/local/nagios/share/perfdata/
4. Once this has all been done, re-run the switch / router monitoring wizard with the correct SNMP version, community string, IP, etc. Then once the walk is done and it returns your interfaces continue with the configuration through the wizard.

5. Once the configuration is complete you should start receiving performance data and graphing this data for the interfaces.

This is quite a process but is "currently" the only way to completely re-configure switch / router configurations with MRTG
ddbrooks
Posts: 22
Joined: Fri Nov 09, 2012 1:16 pm

Re: Cisco Switch Monitor Gig interface

Post by ddbrooks »

I finally got around to this and it worked!!!


Thanks,


Dave
You do not have the required permissions to view the files attached to this post.
Locked