naf: Make "environment" check work again
Signed-off-by: Sven Velt <sven@velt.de>
This commit is contained in:
parent
a9d071bdfa
commit
821dc61ba1
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue