Module: check_mk
Branch: master
Commit: 1fda0e588d51f308d99439a4509a7b188d08a3fa
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1fda0e588d51f3…
Author: Lutz Helwing <lh(a)mathias-kettner.de>
Date: Fri Jan 30 17:07:28 2015 +0100
akcp_daisy_smoke is restricted to sensors which are connected to expansion boards
---
checks/akcp_daisy_smoke | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/checks/akcp_daisy_smoke b/checks/akcp_daisy_smoke
index 999f3da..9779b1e 100644
--- a/checks/akcp_daisy_smoke
+++ b/checks/akcp_daisy_smoke
@@ -60,10 +60,7 @@ check_info['akcp_daisy_smoke'] = {
'check_function' : check_akcp_daisy_smoke,
'inventory_function' : inventory_akcp_daisy_smoke,
'service_description' : 'Smoke %s',
- 'snmp_scan_function' : lambda oid: oid('.1.3.6.1.2.1.1.2.0') in [
- '.1.3.6.1.4.1.3854.1.2.2.1.1',
- '.1.3.6.1.4.1.3854.1'
- ],
+ 'snmp_scan_function' : lambda oid:
oid('.1.3.6.1.2.1.1.2.0').startswith('.1.3.6.1.4.1.3854.1') and
oid('.1.3.6.1.4.1.3854.2.*'),
'snmp_info' : ( '.1.3.6.1.4.1.3854.2.3.14.1', [
2, # SPAGENT-MIB:sensorSmokeDescription
6, # SPAGENT-MIB:sensorSmokeStatus