1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-28 11:54:52 +00:00

Reduce number of categories, use more generic terms

This commit is contained in:
Gabriele Pohl 2014-09-06 22:28:53 +02:00
parent 0743e6e5fb
commit e3899a30d8
44 changed files with 66 additions and 66 deletions

6
plugins/streaming/icecast2_ Executable file → Normal file
View file

@ -49,7 +49,7 @@ def hent_XML():
total_lyttere = xmldoc.getElementsByTagName("clients")[0].firstChild.nodeValue
#Totalt antall kilder
total_kilder = xmldoc.getElementsByTagName("sources")[0].firstChild.nodeValue
#Status for enkelt strøm
#Status for enkelt strøm
sources = xmldoc.getElementsByTagName("source")
sourcelist = {}
for source in sources:
@ -68,7 +68,7 @@ def hent_XML():
if sourcename == "total":
print "graph_title Totalt antall lyttere"
print "graph_vlabel lyttere"
print "graph_category Icecast"
print "graph_category streaming"
print "totallyttere.label Totalt antall lyttere"
print "totalkilder.label Totalt antall kilder"
chanlist = {}
@ -101,7 +101,7 @@ def hent_XML():
graphtitle = sourcename
print "graph_title %s" % graphtitle
print "graph_vlabel lyttere"
print "graph_category Icecast"
print "graph_category streaming"
for bitrate in mp3bitrates:
print "%s_%s.label %s-%s" % (sourcename, bitrate, "/" + sourcename.replace("_", "-"), bitrate)
sumstring += "%s_%s " % (sourcename, bitrate)