From ee0d7b38264b3dfd34b118ee755ccd8c22d95a69 Mon Sep 17 00:00:00 2001 From: Johann Schmitz Date: Fri, 10 Jan 2014 14:53:47 +0100 Subject: [PATCH] Some fixes --- plugins/snmp/snmp__juniper | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/snmp/snmp__juniper b/plugins/snmp/snmp__juniper index f7b7523f..8f332f22 100755 --- a/plugins/snmp/snmp__juniper +++ b/plugins/snmp/snmp__juniper @@ -93,8 +93,8 @@ class JunOSSnmpClient(object): self.auth, self.transport, 0, 20, - jnxOperatingTable, - ignoreNonIncreasingOids=True) + jnxOperatingTable) +# ignoreNonIncreasingOids=True) if errorIndication: logging.error("SNMP bulkCmd for devices failed: %s, %s, %s" % (errorIndication, errorStatus, errorIndex)) @@ -147,10 +147,10 @@ graph_info System temperature for ${host} s = "" for suffix, node in devices.iteritems(): - ident = "%s_temp" % node + ident = "temp_%s" % node s += """{label}.info System temperature on {node} {label}.label {label} -{label}.type GAUGE32 +{label}.type GAUGE {label}.min 0 """.format(label=ident, node=node) @@ -173,7 +173,7 @@ graph_info CPU usage for ${host} ident = "cpu_%s" % node s += """{label}.info CPU usage on {node} {label}.label {label} -{label}.type GAUGE32 +{label}.type GAUGE {label}.min 0 {label}.max 100 @@ -196,7 +196,7 @@ graph_info Buffer usage for ${host} ident = "buffer_%s" % node s += """{label}.info Buffer usage on {node} {label}.label {label} -{label}.type GAUGE32 +{label}.type GAUGE {label}.min 0 {label}.max 100