#!/bin/bash
# This program 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.
# This program 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 this program. If not, see .
##########################################################################
# Title : check_cisco_ports_bandwidth
# Author : Simon Blandford
# Date : 2012-12-08 - 2016-11-03
# Requires : snmpget, snmpwalk
# Category : Monitoring
# Version : 0.5.0
# Copyright : Simon Blandford, Onepoint Consulting Limited
# License : GPLv3 (see above)
##########################################################################
# Description
# Check Cisco device ports bandwidth average
##########################################################################
#******************************************************************************
#********************** Constants *********************************************
#******************************************************************************
TMPDIR="/tmp/check_snmp_cisco_ports_bandwidth"
SNMPWALK="1.3.6.1.2.1.31.1.1.1.1"
SNMPINCOUNTER="1.3.6.1.2.1.31.1.1.1.6."
SNMPOUTCOUNTER="1.3.6.1.2.1.31.1.1.1.10."
SHORTNAME="Bandwidth"
OUTPUTDECIMALPLACES=2
usage () {
echo
echo "Usage: check_snmp_cisco_ports_bandwidth -h -s -o