naf: Make "environment" check work again

Signed-off-by: Sven Velt <sven@velt.de>
This commit is contained in:
Sven Velt 2011-01-17 15:54:01 +01:00
parent a9d071bdfa
commit 821dc61ba1

View file

@ -405,7 +405,7 @@ def main():
for quad in checks:
(check, target, warn, crit) = tuple(quad)
if check == 'global':
if check == 'global' or check == 'environment':
result = plugin.check_global()
elif check == 'cpu':
result = plugin.check_cpu(warn=warn, crit=crit)