Page 1 of 1

Switch Bandwidth - Peformance Data empty.

Posted: Wed Jun 01, 2011 10:20 am
by mccollege
Hi,

My issue is similar to this: http://support.nagios.com/forum/viewtop ... data#p9847

We've added a few Cisco switches via the wizard only monitoring bandwidth.
On one model ( a 6509 ) reports bandwidth usage on all ports.
Adding similar models also seem to result in it reporting bandwidth usage.

Adding other models ( 3560 & 6513 ) results in all of the bandwidth monitoring to be zero'd out.

Now, I've noticed when I added the 6509 model via the wizard, I ended up with a bunch of ports that reported an 'Unknown' state due to the .rrd file not getting created becuase there was no activity on the port at the time the wizard was run.I resolved this by touching the relevent .rrd files. The other models add the ports regardless of port activity, though I'm not sure these two events are related.

Any ideas?

Re: Switch Bandwidth - Peformance Data empty.

Posted: Wed Jun 01, 2011 1:02 pm
by nscott
In regards to the zero bandwidth situation, have you tried using private write community string? I was running into a similar situation and created a private string with write access on the switch and that fixed the problem immediately.

Also thanks for the tip on touching the rrd files.

Re: Switch Bandwidth - Peformance Data empty.

Posted: Thu Jun 09, 2011 4:23 pm
by mccollege
Ok,

I tried the private write string, the switch still isn't reporting the performance data.
Is the private read/write string saved somewhere, or is it only being using in the initial mrtg/cfgmaker scan?

I checked, and the switches are both running the same IOS.

Re: Switch Bandwidth - Peformance Data empty.

Posted: Fri Jun 10, 2011 10:26 am
by nscott
I believe the string is store in the service config of the device or service you set up to monitor with that community string. Its not explicitly stated, but it is in the check_command of some of the services in the services/<hostname>.cfg

Can you try executing the check_snmp_int from the command line? If you're unsure how to do that (default location) go to /usr/local/nagios/libexec/ . From here just ./check_snmp_int -H <hostname> -n <InterfaceName> -C <string> -k -w 0,0 -c 0,0

Does that return anything?

Re: Switch Bandwidth - Peformance Data empty.

Posted: Mon Jun 13, 2011 12:20 pm
by mccollege
I'm getting

"port:UP No usable data on file (3 rows) :(1 UP): UNKNOWN"

even on ports that are getting performance data.

Re: Switch Bandwidth - Peformance Data empty.

Posted: Mon Jun 13, 2011 5:15 pm
by nscott
mccollege,

I haven't found a fix for your problem yet, but I have managed to duplicate it, I'll keep you up to date on what I find.

Re: Switch Bandwidth - Peformance Data empty.

Posted: Fri Jun 17, 2011 11:35 am
by nscott
mccollege,

There is another post on this topic here, that we will continue the troubleshoot on, I would very much like your input there to see if we can get a resolution for this issue.

http://support.nagios.com/forum/viewtop ... 931#p10931