Module: check_mk
Branch: master
Commit: ece27fbb532bafc92653cd22393136e487009903
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ece27fbb532baf…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Sep 27 14:56:51 2018 +0200
genua_fan: Do not fetch unused OIDs anymore
Change-Id: Ib06ad6921ca29bb1f11241fffa61e0d321b86b6b
---
checks/genua_fan | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/checks/genua_fan b/checks/genua_fan
index f70cf00..963333e 100644
--- a/checks/genua_fan
+++ b/checks/genua_fan
@@ -39,7 +39,7 @@ def inventory_genua_fan(info):
return
inventory = []
- for _fanNo, fanName, _fanRPM, _fanState in info[0]:
+ for fanName, _fanRPM, _fanState in info[0]:
inventory.append( (fanName, {}) )
return inventory
@@ -57,7 +57,7 @@ def check_genua_fan(item, params, info):
"6" : (2, "unknown"), }
for line in info[0]:
- _fanNo, fanName, fanRPM, fanState = line
+ fanName, fanRPM, fanState = line
if fanName != item:
continue
@@ -74,13 +74,11 @@ check_info['genua_fan'] = {
"service_description" : "FAN %s",
"has_perfdata" : True,
"snmp_info" : [( ".1.3.6.1.4.1.3717.2.1.1.1.1",[
- "1", # "fanNo"
"2", # "fanName"
"3", # "fanRPM"
"4" # "fanState"
]),
( ".1.3.6.1.4.1.3137.2.1.1.1.1",[
- "1", # "fanNo"
"2", # "fanName"
"3", # "fanRPM"
"4" # "fanState"