Calculating Bandwidth with snmp on cisco router

Cook, Garry GWCOOK at mactec.com
Wed May 19 17:43:04 CEST 2004


Matthew Wilson wrote:
> I would be very interested to see this please...
> 
> 
> ----- Original Message -----
> From: "Cook, Garry" <GWCOOK at mactec.com>
> To: "Slade Edmonds" <slade at cryptoflow.net>; "Jennifer Fountain"
> <jfountain at rbinc.com> Cc: <nagios-users at lists.sourceforge.net>
> Sent: Wednesday, May 19, 2004 4:12 PM
> Subject: RE: [Nagios-users] Calculating Bandwidth with snmp
> on cisco router
> I then wrote a shell script  plugin for Nagios to check the RRD files
> and notify on bandwidth spikes. I haven't contributed this yet, as I
> have not had time to clean it up and make it more efficient. If
> interested, let me know and I'll post it.

OK, I've attached it. Please keep in mind a few things:

1) There is already a check_rrd plugin in the plugins distro. I don't
remember if this is a standard plugin or part of the contrib directory,
but I believe it is the former. This one did not do exactly what I
wanted, which is why I wrote my own which ONLY checks bandwidth rrds.
However, the original may work just fine for you.

2) I haven't touched this code in a few months, so I'm a little foggy
about what issues still need to be worked out. However, I have been
using it in a production environment and it has been working well. When
I finished coding and put it into production, I still didn't feel that
it was ready to be contributed to the distro.

3) I'm sure that there are others out there who can script much better
than myself. I welcome any suggestions. If someone wants to clean it up
and contribute it, please feel free, otherwise I will most likely get
back to it sometime before year-end.

Garry W. Cook, CCNA
Network Infrastructure Manager
MACTEC, Inc. - http://www.mactec.com/
303.308.6228 (Office) - 720.220.1862 (Mobile)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_rrd_bw.sh
Type: application/octet-stream
Size: 3703 bytes
Desc: check_rrd_bw.sh
URL: <https://www.monitoring-lists.org/archive/users/attachments/20040519/eb5734b0/attachment.obj>


More information about the Users mailing list