Skip to content

Commit

Permalink
Some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Johann Schmitz committed Jan 10, 2014
1 parent 2fff9d6 commit ee0d7b3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions plugins/snmp/snmp__juniper
Expand Up @@ -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))
Expand Down Expand Up @@ -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)
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit ee0d7b3

Please sign in to comment.