bin/metrics-snmp-if.rb in sensu-plugins-snmp-0.0.3 vs bin/metrics-snmp-if.rb in sensu-plugins-snmp-0.0.4
- old
+ new
@@ -6,13 +6,16 @@
#
# This script uses the 64-bit "HC" (high capacity) metrics which I am assuming most
# modern devices probably support. If there is no HC support, use --low-capacity
# flag.
#
-# Example
-# -------
+# DEPENDENCIES:
+# gem: sensu-plugin
+# gem: snmp
#
+# USAGE:
+#
# snmp-if-metrics.rb -C community -h host
#
# Only in/out octets are displayed by default to keep the number of metrics low. Additional
# Metrics can be generated:
#
@@ -25,15 +28,15 @@
# - `--include-speed`: Output a metric for the interface's speed. Useful when constructing
# a view of an interfaces capacity in graphite.
# - `--version`: Set SNMP protocol version (SNMPv2c or SNMPv1)
# - `--low-capacity`: Use low capacity counters
#
+# LICENSE:
# Copyright (c) 2013 Joe Miller
#
# Released under the same terms as Sensu (the MIT license); see LICENSE
# for details.
-# #YELLOW
# rubocop:disable VariableName
require 'sensu-plugin/metric/cli'
require 'snmp'
def graphite_safe_name(name)