mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Finished the plugin
This commit is contained in:
parent
f52a7ea9a7
commit
ae30c5979c
@ -158,7 +158,6 @@ graph_info {title}""".format(datarow=datarow, hostname=hostname, title=title, ar
|
|||||||
print """{label}.info {title} on {node}
|
print """{label}.info {title} on {node}
|
||||||
{label}.label {node}
|
{label}.label {node}
|
||||||
{label}.type GAUGE
|
{label}.type GAUGE
|
||||||
{label}.min 0
|
|
||||||
{label}.max {max}""".format(title=title, label=ident, node=node, max=data.get(max_prefix + suffix))
|
{label}.max {max}""".format(title=title, label=ident, node=node, max=data.get(max_prefix + suffix))
|
||||||
|
|
||||||
for suffix, node in devices.iteritems():
|
for suffix, node in devices.iteritems():
|
||||||
@ -196,6 +195,7 @@ graph_info {title}
|
|||||||
for suffix, node in devices.iteritems():
|
for suffix, node in devices.iteritems():
|
||||||
print "flow_%s.value %s" % (node, data.get(jnxJsSPUMonitoringCurrentFlowSession + suffix, 0))
|
print "flow_%s.value %s" % (node, data.get(jnxJsSPUMonitoringCurrentFlowSession + suffix, 0))
|
||||||
|
|
||||||
|
for suffix, node in devices.iteritems():
|
||||||
print "multigraph juniper_flow.%s" % node
|
print "multigraph juniper_flow.%s" % node
|
||||||
print "flowV4.value %s" % data.get(jnxJsSPUMonitoringFlowSessIPv4 + suffix, 0)
|
print "flowV4.value %s" % data.get(jnxJsSPUMonitoringFlowSessIPv4 + suffix, 0)
|
||||||
print "flowV6.value %s" % data.get(jnxJsSPUMonitoringFlowSessIPv6 + suffix, 0)
|
print "flowV6.value %s" % data.get(jnxJsSPUMonitoringFlowSessIPv6 + suffix, 0)
|
||||||
@ -206,6 +206,7 @@ graph_info {title}
|
|||||||
for suffix, node in devices.iteritems():
|
for suffix, node in devices.iteritems():
|
||||||
print "cp_%s.value %s" % (node, data.get(jnxJsSPUMonitoringCurrentCPSession + suffix, 0))
|
print "cp_%s.value %s" % (node, data.get(jnxJsSPUMonitoringCurrentCPSession + suffix, 0))
|
||||||
|
|
||||||
|
for suffix, node in devices.iteritems():
|
||||||
print "multigraph juniper_cp.%s" % node
|
print "multigraph juniper_cp.%s" % node
|
||||||
print "cpV4.value %s" % data.get(jnxJsSPUMonitoringCPSessIPv4 + suffix, 0)
|
print "cpV4.value %s" % data.get(jnxJsSPUMonitoringCPSessIPv4 + suffix, 0)
|
||||||
print "cpV6.value %s" % data.get(jnxJsSPUMonitoringCPSessIPv6 + suffix, 0)
|
print "cpV6.value %s" % data.get(jnxJsSPUMonitoringCPSessIPv6 + suffix, 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user