2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

plugin snmp__juniper: change category from "system" to "fw"

This commit is contained in:
Lars Kruse 2018-03-28 12:56:55 +02:00
parent f7158706a5
commit 6c59a8971b

View File

@ -141,19 +141,19 @@ class JunOSSnmpClient(object):
devices = self.get_devices()
data_def = [
('temp', self.hostname, 'System temperature', '--base 1000', 'System temperature in C', 'system'),
('cpu', self.hostname, 'CPU usage', '--base 1000 -l 0 --upper-limit 100', 'CPU usage in %', 'system'),
('buffer', self.hostname, 'Buffer usage', '--base 1000 -l 0 --upper-limit 100', 'Buffer usage in %', 'system'),
('temp', self.hostname, 'System temperature', '--base 1000', 'System temperature in C'),
('cpu', self.hostname, 'CPU usage', '--base 1000 -l 0 --upper-limit 100', 'CPU usage in %'),
('buffer', self.hostname, 'Buffer usage', '--base 1000 -l 0 --upper-limit 100', 'Buffer usage in %'),
]
for datarow, hostname, title, args, vlabel, category in data_def:
for datarow, hostname, title, args, vlabel in data_def:
print """multigraph juniper_{datarow}
host_name {hostname}
graph_title {title}
graph_vlabel {vlabel}
graph_args {args}
graph_category {category}
graph_info {title}""".format(datarow=datarow, hostname=hostname, title=title, args=args, vlabel=vlabel, category=category)
graph_category fw
graph_info {title}""".format(datarow=datarow, hostname=hostname, title=title, args=args, vlabel=vlabel)
for suffix, node in devices.iteritems():
ident = "%s_%s" % (datarow, node)
@ -184,7 +184,3 @@ else:
c.print_config()
else:
c.execute()
# for Munin Plugin Gallery
# graph_category network