Module: check_mk
Branch: master
Commit: 48d54a18bf719a5661573ca670277ef411b2fba2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=48d54a18bf719a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Dec 9 08:34:29 2010 +0100
aironet_clients: Only counting clients which don't have empty values for strength
Thanks to Jasmin Beharic
---
ChangeLog | 1 +
checks/aironet_clients | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 4f591d5..f0a6421 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -116,6 +116,7 @@
configure the reported state on small remaining capacity.
* Windows agent: .vbs scripts in agents plugins/ directory are executed
automatically with "cscript.exe /Nologo" to prevent wrong file handlers
+ * aironet_clients: Only counting clients which don't have empty values for
strength
Multisite:
* The custom open/close states of custom links are now stored for each
diff --git a/checks/aironet_clients b/checks/aironet_clients
index 662ce5f..2929fa2 100644
--- a/checks/aironet_clients
+++ b/checks/aironet_clients
@@ -34,6 +34,8 @@ def inventory_aironet_clients(checkname, info):
("clients", "", None)]
def check_aironet_clients(item, params, info):
+ info = [ line for line in info if line[0] != '' ]
+
if len(info) == 0:
return (0, "OK - No clients currently logged in")