mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
plugin categories: reorganize multiple plugins
This commit is contained in:
parent
5a45d49760
commit
34eeebbe37
19 changed files with 21 additions and 29 deletions
|
@ -148,7 +148,7 @@ if (sys.argv.__len__()>1) and (sys.argv[1]=="config"):
|
|||
gr_simple=graph.replace("-","_").replace(":","_")
|
||||
gr_pretty=graph.replace("_"," ").title()
|
||||
gr=graph.replace("-","_").replace(":","_")
|
||||
graphdefaults={"graph_title":gr_pretty,"graph_vlabel":gr_pretty,"graph_category":"osd"}
|
||||
graphdefaults={"graph_title":gr_pretty,"graph_vlabel":gr_pretty,"graph_category":"fs"}
|
||||
graphsettings=dict(graphdefaults.items()+graphsettings.items())
|
||||
print "multigraph %s" % (gr_simple)
|
||||
print "\n".join(["%s %s" % setting for setting in graphsettings.items()])
|
||||
|
@ -182,7 +182,3 @@ else:
|
|||
for osd in osds:
|
||||
print "multigraph %s.osd%s" % (gr,osd)
|
||||
print "osd%s_%s.value %s" % (osd,gr,data[osd][graph])
|
||||
|
||||
# for Munin Plugin Gallery
|
||||
# graph_category fs
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue