Page 4 of 4

Re: Cisco Switch Monitor Gig interface

Posted: Thu Sep 26, 2013 4:59 pm
by scottwilkerson
For Gigabit interfaces you usually should use SNMP v2c looking at the logs it appears these are setup for SNMP v1

Re: Cisco Switch Monitor Gig interface

Posted: Thu Sep 26, 2013 7:26 pm
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

Re: Cisco Switch Monitor Gig interface

Posted: Fri Sep 27, 2013 9:30 am
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.

Re: Cisco Switch Monitor Gig interface

Posted: Fri Sep 27, 2013 9:42 am
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?

Re: Cisco Switch Monitor Gig interface

Posted: Fri Sep 27, 2013 9:44 am
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.

Re: Cisco Switch Monitor Gig interface

Posted: Fri Sep 27, 2013 11:08 am
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

Re: Cisco Switch Monitor Gig interface

Posted: Fri Sep 27, 2013 11:46 am
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

Re: Cisco Switch Monitor Gig interface

Posted: Sun Nov 03, 2013 8:55 pm
by ddbrooks
I finally got around to this and it worked!!!


Thanks,


Dave