Module: check_mk
Branch: master
Commit: a49579be30f8db582415872e36d73c52bb66b14f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a49579be30f8db…
Author: Florian Kromer <fk(a)mathias-kettner.de>
Date: Mon Dec 10 11:54:23 2018 +0100
6899 alcatel_fans_aos7: Add support for new switches
This werk adds fan monitoring (alcatel_fans) support for the new switch
devices running at least AOS7. The check alcatel_fans_aos7 reuses the
default values of check alcatel_fans for consistent check behaviour.
CMK-1188
Change-Id: I112cdc854fd9fa30237a317647de78ecd5c9ead4
---
.werks/6899 | 12 ++++++++++++
checkman/alcatel_fans_aos7 | 13 +++++++++++++
checks/alcatel_fans_aos7 | 36 ++++++++++++++++++++++++++++++++++++
3 files changed, 61 insertions(+)
diff --git a/.werks/6899 b/.werks/6899
new file mode 100644
index 0000000..908bf4f
--- /dev/null
+++ b/.werks/6899
@@ -0,0 +1,12 @@
+Title: alcatel_fans_aos7: Add support for new switches
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1544439136
+Class: feature
+
+This werk adds fan monitoring (alcatel_fans) support for the new switch
+devices running at least AOS7. The check alcatel_fans_aos7 reuses the
+default values of check alcatel_fans for consistent check behaviour.
diff --git a/checkman/alcatel_fans_aos7 b/checkman/alcatel_fans_aos7
new file mode 100644
index 0000000..e9ee994
--- /dev/null
+++ b/checkman/alcatel_fans_aos7
@@ -0,0 +1,13 @@
+title: Alcatel switches (>=AOS7): Fan Status
+agents: snmp
+catalog: hw/network/alcatel
+license: GPL
+distribution: check_mk
+description:
+
+ This Check Monitors all Fans on new Alcatel switches running at least AOS7 supporting
+ the ALCATEL-IND1-CHASSIS-MIB (version for >=AOS7). The status is automaticly
reported
+ by the device, so no configuration is needed.
+
+inventory:
+ One check is created
diff --git a/checks/alcatel_fans_aos7 b/checks/alcatel_fans_aos7
new file mode 100644
index 0000000..1948174
--- /dev/null
+++ b/checks/alcatel_fans_aos7
@@ -0,0 +1,36 @@
+#!/usr/bin/python
+# -*- encoding: utf-8; py-indent-offset: 4 -*-
+# +------------------------------------------------------------------+
+# | ____ _ _ __ __ _ __ |
+# | / ___| |__ ___ ___| | __ | \/ | |/ / |
+# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
+# | | |___| | | | __/ (__| < | | | | . \ |
+# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
+# | |
+# | Copyright Mathias Kettner 2018 mk(a)mathias-kettner.de |
+# +------------------------------------------------------------------+
+#
+# This file is part of Check_MK.
+# The official homepage is at
http://mathias-kettner.de/check_mk.
+#
+# check_mk is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation in version 2. check_mk is distributed
+# in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
+# out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE. See the GNU General Public License for more de-
+# tails. You should have received a copy of the GNU General Public
+# License along with GNU Make; see the file COPYING. If not, write
+# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+# Boston, MA 02110-1301 USA.
+
+check_info["alcatel_fans_aos7"] = {
+ "check_function": check_alcatel_fans,
+ "inventory_function": inventory_alcatel_fans,
+ "service_description": "Fan %s",
+ "snmp_scan_function": alcatel_new_networking_products_scan_function,
+ "snmp_info": (
+ ".1.3.6.1.4.1.6486.801.1.1.1.3.1.1.11.1", # MIB object
"alaChasEntPhysFanEntry"
+ [2]), # MIB object "alaChasEntPhysFanStatus"
+ "includes": ["alcatel.include"],
+}