Module: check_mk
Branch: master
Commit: 91a009428cb84873ca6f5e31ff3bb2bc771f958e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=91a009428cb848…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Mon Feb 16 11:16:56 2015 +0100
checkpoint_connections: Code cleanup
---
checks/checkpoint_connections | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/checks/checkpoint_connections b/checks/checkpoint_connections
index dba029e..e90ceb0 100644
--- a/checks/checkpoint_connections
+++ b/checks/checkpoint_connections
@@ -29,6 +29,9 @@
checkpoint_connections_default_levels = (40000, 50000)
+def inventory_checkpoint_connections(info):
+ return [(None, "checkpoint_connections_default_levels")]
+
def check_checkpoint_connections(item, params, info):
warn, crit = params
current = saveint(info[0][0])
@@ -45,7 +48,7 @@ def check_checkpoint_connections(item, params, info):
check_info["checkpoint_connections"] = {
"check_function" : check_checkpoint_connections,
- "inventory_function" : lambda info: [(None,
"checkpoint_connections_default_levels")],
+ "inventory_function" : inventory_checkpoint_connections,
"service_description" : "Connections",
"has_perfdata" : True,
"group" : "checkpoint_connections",