Skip to content
Permalink
Browse files

checkpoint_connections: Code cleanup

  • Loading branch information
Bastian-Kuhn committed Feb 16, 2015
1 parent 5f73f99 commit 91a009428cb84873ca6f5e31ff3bb2bc771f958e
Showing with 4 additions and 1 deletion.
  1. +4 −1 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",

0 comments on commit 91a0094

Please sign in to comment.
You can’t perform that action at this time.