mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Adding 'warning' environment variable use
This commit is contained in:
parent
b3beac1cd7
commit
61de47ebd2
1 changed files with 4 additions and 1 deletions
|
@ -40,9 +40,12 @@ indexName = progName[progName.find("_")+1:]
|
||||||
if len(sys.argv) == 2 and sys.argv[1] == "autoconf":
|
if len(sys.argv) == 2 and sys.argv[1] == "autoconf":
|
||||||
print "yes"
|
print "yes"
|
||||||
elif len(sys.argv) == 2 and sys.argv[1] == "config":
|
elif len(sys.argv) == 2 and sys.argv[1] == "config":
|
||||||
|
warning = "0:"
|
||||||
critical = "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:
|
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_title Sphinx index %s stats" % indexName
|
||||||
print "graph_vlabel docs count"
|
print "graph_vlabel docs count"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue