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

Adding 'warning' environment variable use

This commit is contained in:
iborodikhin 2012-09-10 12:36:15 +06:00
parent b3beac1cd7
commit 61de47ebd2

View File

@ -40,9 +40,12 @@ indexName = progName[progName.find("_")+1:]
if len(sys.argv) == 2 and sys.argv[1] == "autoconf":
print "yes"
elif len(sys.argv) == 2 and sys.argv[1] == "config":
warning = "0:"
critical = "0:"
if "warning" in os.environ and os.environ["warning"] != None:
warning = os.environ["warning"]
if "critical" in os.environ and os.environ["critical"] != None:
warning = os.environ["critical"]
critical = os.environ["critical"]
print "graph_title Sphinx index %s stats" % indexName
print "graph_vlabel docs count"