Module: check_mk
Branch: master
Commit: 0c17370435c388d3f980c9264e366f92cdb3fb37
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0c17370435c388…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Fri Sep 28 16:59:59 2012 +0200
Created Inventory function for blade_bx_load
---
checks/blade_bx_load | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/checks/blade_bx_load b/checks/blade_bx_load
index fef32b5..4f800ee 100644
--- a/checks/blade_bx_load
+++ b/checks/blade_bx_load
@@ -26,6 +26,10 @@
blade_bx_cpuload_default_levels = ( 5, 20 )
+def inventory_blade_bx_load(info):
+ if len(info) > 0:
+ return [ (None, "blade_bx_cpuload_default_levels")]
+
def check_blade_bx_load(item, params, info):
try:
load = []
@@ -47,7 +51,7 @@ def check_blade_bx_load(item, params, info):
check_info['blade_bx_load'] = {
"check_function" : check_blade_bx_load,
- "inventory_function" : lambda info: [ (None,
"blade_bx_cpuload_default_levels")] ,
+ "inventory_function" : inventory_blade_bx_load ,
"service_description" : "Load",
"has_perfdata" : True,
"snmp_info" : (".1.3.6.1.4.1.2021.10.1", [ 1, 2, 6 ]),