1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00:00

Category Tree: Reduce number of categories

Don't use variable to set category, plugin gallery build script needs the pure string..
This commit is contained in:
dipohl 2017-02-21 00:41:40 +01:00
parent 9841894599
commit 8af93fce06
17 changed files with 19 additions and 21 deletions

View file

@ -161,7 +161,7 @@ elif len(sys.argv) == 2 and sys.argv[1] == "config":
print "graph mysql_aggregate_%s" % table
print "graph_title %s" % label
print "graph_vlabel %s" % vlabel
print "graph_category mysql"
print "graph_category db"
print ""
if "only" in os.environ:
print "values_count.label %s" % (os.environ["only"], )
@ -171,7 +171,7 @@ elif len(sys.argv) == 2 and sys.argv[1] == "config":
print "multigraph mysql_aggregate_%s" % table
print "graph_title %s" % label
print "graph_vlabel %s" % vlabel
print "graph_category mysql"
print "graph_category db"
print ""
for key in values.keys():
@ -182,7 +182,7 @@ elif len(sys.argv) == 2 and sys.argv[1] == "config":
print "multigraph mysql_aggregate_%s.%s" % (table, key.replace(".", "_"))
print "graph_title %s, value %s" % (label, key.replace(".", "_"))
print "graph_vlabel %s" % vlabel
print "graph_category mysql"
print "graph_category db"
print ""
print "%s_count.label %s" % (key.replace(".", "_"), key)
print ""