[Nagiosplug-devel] New Plugin: check_rrd_bw.sh
Cook, Garry
GWCOOK at mactec.com
Fri Mar 5 07:47:10 CET 2004
I recently had a need for a plugin that would check rrd files for large
spikes in bandwidth on switch uplinks being monitored by MRTG. This need
stemmed from attacks against/from shared hosting servers within a
datacenter, although it could also be used for simply monitoring when
links are becoming over utilized without having to check through MRTG
data every day. I looked at the check_rrd_file.pl script in the contrib
directory and found that the need to use perl expressions in the warning
and critical arguments would probably be too confusing to my users, so I
rolled my own shell script plugin, check_rrd_bw.sh.
Check_rrd_bw.sh currently does not support ranges for -w and -c args,
although I do plan to implement this in future versions. It does allow
checking and reporting based on 4 different BW styles; bps, Kbps, Mbps,
and Gbps in case we ever need to use it on 10Gbps links. Currently, I am
using this plugin in production to monitor the inbound and outbound BW
in Mbps on GB uplinks, as well as BW in Kbps on ATM IMA group rrds.
It needs work, although I've attempted to make it fit the plugin
standards so far. I'd like to have it added to the contrib directory of
the 1.4.0 distro, and move towards making this a standard plugin as
well. With that in mind, please let me know if there are any
suggestions, comments, or critique that could assist in this process. If
I am attempting to reinvent the wheel, please point me in the direction
of a plugin that already handles these tasks well and tell me to get
lost.
Thanks.
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: 3701 bytes
Desc: check_rrd_bw.sh
URL: <http://nagios-plugins.org/archive/devel/attachments/20040305/2a8c723c/attachment.obj>
More information about the Devel
mailing list