From ea7bacc9668e7a9342ebc1ced6fe71a12984ab46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Thu, 9 Aug 2012 13:57:53 -0700 Subject: [PATCH] Remove snmp_hp_. This plugin is doing the same thing that snmp__if_ is doing, but it doesn't have a clear license and does not support 64-bit counters. --- plugins/snmp/snmp_hp_ | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100755 plugins/snmp/snmp_hp_ diff --git a/plugins/snmp/snmp_hp_ b/plugins/snmp/snmp_hp_ deleted file mode 100755 index 81adbc8d..00000000 --- a/plugins/snmp/snmp_hp_ +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh - -HOST=`echo $0 | perl -pe "s/^.+snmp_hp_(.*?)_[0-9]+/\\$1/;"` -PORT=`echo $0 | perl -pe "s/^.+snmp_hp_.*?_([0-9]+)/\\$1/;"` - -if [ "$1" = "autoconf" ]; then - if [ -x /usr/bin/snmpget ]; then - echo yes - exit 0 - else - echo "no (/usr/bin/snmpget not found)" - exit 1 - fi -fi - -if [ "$1" = "config" ]; then - - echo "graph_order down up" - echo "graph_title Switch $HOST Port $PORT Traffic" - echo 'graph_args --base 1000' - echo 'graph_vlabel bits out (-) / in (+) per ${graph_period}' - echo 'graph_category Snmp' -# echo "graph_info This graph shows the traffic of the $INTERFACE network interface. Please note that the traffic is shown in bits per second, not bytes. IMPORTANT: Since the data source for this plugin use 32bit counters, this plugin is really unreliable and unsuitable for most 100Mb (or faster) interfaces, where bursts are expected to exceed 50Mbps. This means that this plugin is usuitable for most production environments. To avoid this problem, use the ip_ plugin instead." - echo 'down.label received' - echo 'down.type COUNTER' - echo 'down.graph no' - echo 'down.cdef down,8,*' - echo 'up.label bps' - echo 'up.type COUNTER' - echo 'up.negative down' - echo 'up.cdef up,8,*' - exit 0 -fi; - -snmpget -v1 -c public $HOST .1.3.6.1.2.1.2.2.1.10.$PORT .1.3.6.1.2.1.2.2.1.16.$PORT | sed -e 's/^.*ifIn.*Counter32:/down.value/' -e 's/^.*ifOut.*Counter32:/up.value/'