Module: check_mk
Branch: master
Commit: acc3bf54f61f36116152248ccb6813d46611e9d8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=acc3bf54f61f36…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Mon Sep 7 16:05:06 2015 +0200
#1291 FIX alcatel_fans: The internal name of the Check changed
The internal name of the check was wrong. This is corrected now, but it is needed to make
a rediscovery after update.
You will not lost any history data since the service description remains.
---
.werks/1291 | 11 +++++++++++
ChangeLog | 2 ++
checks/alcatel_fans | 10 +++++-----
doc/missing-manpage | 1 -
4 files changed, 18 insertions(+), 6 deletions(-)
diff --git a/.werks/1291 b/.werks/1291
new file mode 100644
index 0000000..ab896b0
--- /dev/null
+++ b/.werks/1291
@@ -0,0 +1,11 @@
+Title: alcatel_fans: The internal name of the Check changed
+Level: 1
+Component: checks
+Compatible: incomp
+Version: 1.2.7i3
+Date: 1441634604
+Class: fix
+
+The internal name of the check was wrong. This is corrected now, but it is needed to make
a rediscovery after update.
+You will not lost any history data since the service description remains.
+
diff --git a/ChangeLog b/ChangeLog
index 8e27100..3c0dd72 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -170,6 +170,8 @@
* 2570 FIX: winperf_msx_queues: fixed crash when winperf data is missing...
* 2593 FIX: cisco_wlc, cisco_wlc_clients: Fix discovery so that Cisco Virtual
Wireless Controller are detected...
* 2571 FIX: local: improved reporting of bad local check output
+ * 1291 FIX: alcatel_fans: The internal name of the Check changed...
+ NOTE: Please refer to the migration notes!
Multisite:
* 2385 SEC: Fixed possible reflected XSS on all GUI pages where users can produce
unhandled exceptions...
diff --git a/checks/alcatel_fans b/checks/alcatel_fans
index 623f53b..4a3bb97 100644
--- a/checks/alcatel_fans
+++ b/checks/alcatel_fans
@@ -24,12 +24,12 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
-def inventory_alcatel_fan(info):
+def inventory_alcatel_fans(info):
# parameter start in enumerate only works since python 2.6
for nr, value in enumerate(info):
yield nr+1, None
-def check_alcatel_fan(item, _no_params, info):
+def check_alcatel_fans(item, _no_params, info):
fan_states = {
0 : "has no status",
1 : "not running",
@@ -43,9 +43,9 @@ def check_alcatel_fan(item, _no_params, info):
state = 2
return state, "Fan " + fan_states[fan_state]
-check_info["alcatel_fan"] = {
- "check_function" : check_alcatel_fan,
- "inventory_function" : inventory_alcatel_fan,
+check_info["alcatel_fans"] = {
+ "check_function" : check_alcatel_fans,
+ "inventory_function" : inventory_alcatel_fans,
"service_description" : "Fan %s",
"snmp_scan_function" : lambda oid:
oid(".1.3.6.1.2.1.1.2.0").startswith(".1.3.6.1.4.1.6486.800"),
"snmp_info" :
(".1.3.6.1.4.1.6486.800.1.1.1.3.1.1.11.1", [ 2 ]),
diff --git a/doc/missing-manpage b/doc/missing-manpage
index e19c684..b3969da 100644
--- a/doc/missing-manpage
+++ b/doc/missing-manpage
@@ -1,4 +1,3 @@
-alcatel_fan
bi_aggr
bluecat_command_server
bluecat_threads