mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 18:38:30 +00:00
Some fixes
This commit is contained in:
parent
2fff9d6bac
commit
ee0d7b3826
1 changed files with 6 additions and 6 deletions
|
@ -93,8 +93,8 @@ class JunOSSnmpClient(object):
|
||||||
self.auth,
|
self.auth,
|
||||||
self.transport,
|
self.transport,
|
||||||
0, 20,
|
0, 20,
|
||||||
jnxOperatingTable,
|
jnxOperatingTable)
|
||||||
ignoreNonIncreasingOids=True)
|
# ignoreNonIncreasingOids=True)
|
||||||
|
|
||||||
if errorIndication:
|
if errorIndication:
|
||||||
logging.error("SNMP bulkCmd for devices failed: %s, %s, %s" % (errorIndication, errorStatus, errorIndex))
|
logging.error("SNMP bulkCmd for devices failed: %s, %s, %s" % (errorIndication, errorStatus, errorIndex))
|
||||||
|
@ -147,10 +147,10 @@ graph_info System temperature for ${host}
|
||||||
|
|
||||||
s = ""
|
s = ""
|
||||||
for suffix, node in devices.iteritems():
|
for suffix, node in devices.iteritems():
|
||||||
ident = "%s_temp" % node
|
ident = "temp_%s" % node
|
||||||
s += """{label}.info System temperature on {node}
|
s += """{label}.info System temperature on {node}
|
||||||
{label}.label {label}
|
{label}.label {label}
|
||||||
{label}.type GAUGE32
|
{label}.type GAUGE
|
||||||
{label}.min 0
|
{label}.min 0
|
||||||
|
|
||||||
""".format(label=ident, node=node)
|
""".format(label=ident, node=node)
|
||||||
|
@ -173,7 +173,7 @@ graph_info CPU usage for ${host}
|
||||||
ident = "cpu_%s" % node
|
ident = "cpu_%s" % node
|
||||||
s += """{label}.info CPU usage on {node}
|
s += """{label}.info CPU usage on {node}
|
||||||
{label}.label {label}
|
{label}.label {label}
|
||||||
{label}.type GAUGE32
|
{label}.type GAUGE
|
||||||
{label}.min 0
|
{label}.min 0
|
||||||
{label}.max 100
|
{label}.max 100
|
||||||
|
|
||||||
|
@ -196,7 +196,7 @@ graph_info Buffer usage for ${host}
|
||||||
ident = "buffer_%s" % node
|
ident = "buffer_%s" % node
|
||||||
s += """{label}.info Buffer usage on {node}
|
s += """{label}.info Buffer usage on {node}
|
||||||
{label}.label {label}
|
{label}.label {label}
|
||||||
{label}.type GAUGE32
|
{label}.type GAUGE
|
||||||
{label}.min 0
|
{label}.min 0
|
||||||
{label}.max 100
|
{label}.max 100
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue