2 # -*- encoding: utf-8; py-indent-offset: 4 -*-
3 # +------------------------------------------------------------------+
4 # | ____ _ _ __ __ _ __ |
5 # | / ___| |__ ___ ___| | __ | \/ | |/ / |
6 # | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
7 # | | |___| | | | __/ (__| < | | | | . \ |
8 # | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
10 # | Copyright Mathias Kettner 2013 mk@mathias-kettner.de |
11 # +------------------------------------------------------------------+
13 # This file is part of Check_MK.
14 # The official homepage is at http://mathias-kettner.de/check_mk.
16 # check_mk is free software; you can redistribute it and/or modify it
17 # under the terms of the GNU General Public License as published by
18 # the Free Software Foundation in version 2. check_mk is distributed
19 # in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
20 # out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
21 # PARTICULAR PURPOSE. See the GNU General Public License for more de-
22 # tails. You should have received a copy of the GNU General Public
23 # License along with GNU Make; see the file COPYING. If not, write
24 # to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
25 # Boston, MA 02110-1301 USA.
27 climaveneta_alarms
= {
28 #20 : "Global (general)",
29 21: "Maintenance Status",
31 23: "High water 1erature",
32 24: "High water 2erature",
33 25: "Low room humidity",
34 26: "High room humidity",
35 27: "Low Roomerature",
36 28: "High roomerature",
37 29: "High air inleterature",
38 30: "High air outleterature",
39 31: "Room humid probe",
49 41: "Water 1erature probe",
50 42: "Water 2erature probe",
53 45: "Fan 1 disconnected",
54 46: "Fan 2 disconnected",
55 47: "Fan 3 disconnected",
56 48: "Fan 4 disconnected",
61 53: "Electronic thermostatic valve",
69 61: "Polygon inconsistent",
70 62: "Delta pressure for inverter compressor",
71 63: "Primary power supply",
72 64: "Energy managment",
73 65: "Low current humidif",
74 66: "No water humidif",
75 67: "High current humidif",
76 68: "Humidifier Board Offline",
77 69: "Life timer expired Reset/Clean cylinder",
78 70: "Humidifier Drain",
79 71: "Generic Humidifier",
80 72: "Electric heater",
84 def inventory_climaveneta_alarm(info
):
88 def check_climaveneta_alarm(item
, params
, info
):
90 for oid_id
, status
in info
:
91 alarm_id
= int(oid_id
.split('.')[0])
92 if alarm_id
in climaveneta_alarms
.keys():
95 yield 2, "Alarm: %s" % climaveneta_alarms
[alarm_id
]
97 yield 0, "No alarm state"
100 check_info
["climaveneta_alarm"] = {
101 "check_function": check_climaveneta_alarm
,
102 "inventory_function": inventory_climaveneta_alarm
,
103 "service_description": "Alarm Status",
104 "snmp_scan_function": lambda oid
: oid(".1.3.6.1.2.1.1.1.0") == "pCO Gateway",
105 "snmp_info": (".1.3.6.1.4.1.9839.2.1", [OID_END
, 1]),