# Copyright 2009 - Jurie Botha -->

####################################################################################### 
# This plugin comes with no warranty, use it at your own risk. Although I obviously did
# my best in making sure it works properly, I accept no responsibility
# for any damage caused by it. So, USE AT OWN RISK! (Don't worry too much - it DOES 
# work! :)  
#
# This software is licenced under the GNU GPL, and you may modify it to suit your needs!
# 
#######################################################################################
#
# Copyright: 2009
#
# This file is part of check_bandwidth.sh.
#
#    check_bandwidth.sh is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    check_bandwidth.sh is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with check_bandwidth.sh.  If not, see <http://www.gnu.org/licenses/>.
# 
######################################################################################

Hi there all,

Just a simple plugin to monitor bandwidth usage on a IPCOP Firewall using the Nagios check_by_ssh plugin.

Prerequisites:

1. IPCOP (DUH)
2. vnstat plugin for IPCOP. (see http://www.ipadd.de/binary.html)

Installation:

1. Setup SSH Private/Public Key Authentication between your Nagios Server and the IPCOP Box.
2. Copy plugin to your ipcop box. (scp -P 222 check_bandwidth.sh ipcop_ip_address:/home/hagios/check_bandwidth.sh)
3. Setup Check Command in nagios.
4. Add the service to your IPCOP Host in nagios.

Usage:

I,ve added 4 slots for specifying paramaters to vnstat. 

Example: ./check_bandwidth.sh -d -i eth0

See vnstat documentation for details on available parameters.

Enjoy!

Monkinsane



