Module: check_mk
Branch: master
Commit: 14c66b1cf1a0cd8fb9786f1a907ca707b2c8a187
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=14c66b1cf1a0cd…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Dec 2 16:20:26 2015 +0100
Updated bug entries #2324
---
.bugs/2324 | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/.bugs/2324 b/.bugs/2324
new file mode 100644
index 0000000..ffd72a1
--- /dev/null
+++ b/.bugs/2324
@@ -0,0 +1,42 @@
+Title: Generalize file io handling and catch various issues in a general way
+Component: core
+State: open
+Date: 2015-12-02 16:18:27
+Targetversion: 1.2.7
+Class: bug
+
+Some general errors like:
+
+- No write permissions
+- Disk full
+- Disk read-only
+
+e.g.
+
+I hereby send you a report of a crash in the Check_MK Web GUI:
+
+Check_MK Version: 1.2.6p1
+Page: wato.py
+
+GET/POST-Variables:
+ _action=toggle
+ _transid=1442590858/4266942189
+ _varname=enable_rulebased_notifications
+ folder=
+ mode=globalvars
+
+Traceback (most recent call last):
+ File "/usr/share/check_mk/web/htdocs/index.py", line 250, in handler
+ handler()
+ File "/usr/share/check_mk/web/htdocs/wato.py", line 235, in page_handler
+ result = modefunc("action")
+ File "/usr/share/check_mk/web/htdocs/wato.py", line 7451, in mode_globalvars
+ save_configuration_settings(current_settings)
+ File "/usr/share/check_mk/web/htdocs/wato.py", line 7761, in save_configuration_settings
+ save_configuration_vars(per_domain.get(domain, {}), dir + "global.mk")
+ File "/usr/share/check_mk/web/htdocs/wato.py", line 7765, in save_configuration_vars
+ out.write("# Written by WATO\n# encoding: utf-8\n\n")
+IOError: [Errno 28] No space left on device
+
+could be handled in a better way.
+We should abstract file io and handle these errors in a general way.
Module: check_mk
Branch: master
Commit: 15f2d24b265f9b7b776748653ee61ec49cd5b76d
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=15f2d24b265f9b…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Wed Dec 2 16:10:10 2015 +0100
dell_powerconnect_temp: Fixed unicode problem
---
checks/dell_powerconnect_temp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/dell_powerconnect_temp b/checks/dell_powerconnect_temp
index 7a430cb..a7abacf 100644
--- a/checks/dell_powerconnect_temp
+++ b/checks/dell_powerconnect_temp
@@ -78,7 +78,7 @@ def check_dell_powerconnect_temp(_no_item, params, info):
else:
status = dell_powerconnect_temp_status2nagios_map[dell_powerconnect_status]
- return (status, 'The temperature sensor is currently (%s)%s, and the current temperature is %s °C%s' %
+ return (status, u'The temperature sensor is currently (%s)%s, and the current temperature is %s °C%s' %
(dell_powerconnect_temp_status_map[state], sensor_info, temp, temp_info), [
("temperature", int(temp), warn, crit, 0, 200),
])
Module: check_mk
Branch: master
Commit: 91f1cfb7d543f79a18552a193ed3ac5ad0973176
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=91f1cfb7d543f7…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Dec 2 15:56:15 2015 +0100
#2805 FIX ps: Now able to monitor processes which contain + characters
Any + character in process name, e.g <i>asm_diag_+ASM1</i> was interpreted
as regular expression special character.
Such processes could be found during the service discovery.
The check function however, was unable to find this process again, because
of the incorrect escaped + character.
---
.werks/2805 | 14 ++++++++++++++
ChangeLog | 1 +
checks/ps.include | 2 +-
3 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/.werks/2805 b/.werks/2805
new file mode 100644
index 0000000..fa7e53f
--- /dev/null
+++ b/.werks/2805
@@ -0,0 +1,14 @@
+Title: ps: Now able to monitor processes which contain + characters
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i4
+Date: 1449067758
+Class: fix
+
+Any + character in process name, e.g <i>asm_diag_+ASM1</i> was interpreted
+as regular expression special character.
+
+Such processes could be found during the service discovery.
+The check function however, was unable to find this process again, because
+of the incorrect escaped + character.
diff --git a/ChangeLog b/ChangeLog
index 3b4d145..be7800d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -126,6 +126,7 @@
* 2856 FIX: winperf_phydisk: Not discovering on clusters where disk perfcounters are missing...
* 2875 FIX: citrix_farm.ps1: Add missing end marker of piggy data - fixes problem in subsequent plugins
* 2857 FIX: fritz.conn: Handling missing connection state infos as UNKNOWN
+ * 2805 FIX: ps: Now able to monitor processes which contain + characters...
Multisite:
* 2684 Added icons for downloading agent data / walks of hosts...
diff --git a/checks/ps.include b/checks/ps.include
index 5ebc422..86b3bf6 100644
--- a/checks/ps.include
+++ b/checks/ps.include
@@ -153,7 +153,7 @@ def instantiate_regex_pattern_once(pattern, match):
def escape_regex_chars(match):
r = ""
for c in match:
- if c in r"[]\().?{}|*^$":
+ if c in r"[]\().?{}|*^$+":
r += "\\"
r += c
return r
Module: check_mk
Branch: master
Commit: a9ff9b08608cb20d34695de1be694595d3c471b8
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a9ff9b08608cb2…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Dec 2 15:55:38 2015 +0100
#2858 FIX hp_proliant_da_phydrv: Adding disk controller to check items
Older checks were not taking the controller number into account which
was resulting in missing service checks for some disks. We have now
added the controller id to the check item to fix this issue.
You will have to rediscover the affected hosts and eventually update
related rules like disabled services or similar since the service
description is now changed, for example from "HW Phydrv 0" to "HW Phydrv 0/0".
---
.werks/2858 | 15 +++++++++++++++
ChangeLog | 2 ++
checks/hp_proliant_da_phydrv | 17 ++++++++++-------
3 files changed, 27 insertions(+), 7 deletions(-)
diff --git a/.werks/2858 b/.werks/2858
new file mode 100644
index 0000000..f92c27a
--- /dev/null
+++ b/.werks/2858
@@ -0,0 +1,15 @@
+Title: hp_proliant_da_phydrv: Adding disk controller to check items
+Level: 1
+Component: checks
+Compatible: incomp
+Version: 1.2.7i4
+Date: 1449067943
+Class: fix
+
+Older checks were not taking the controller number into account which
+was resulting in missing service checks for some disks. We have now
+added the controller id to the check item to fix this issue.
+
+You will have to rediscover the affected hosts and eventually update
+related rules like disabled services or similar since the service
+description is now changed, for example from "HW Phydrv 0" to "HW Phydrv 0/0".
diff --git a/ChangeLog b/ChangeLog
index 3b4d145..13e90bf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -126,6 +126,8 @@
* 2856 FIX: winperf_phydisk: Not discovering on clusters where disk perfcounters are missing...
* 2875 FIX: citrix_farm.ps1: Add missing end marker of piggy data - fixes problem in subsequent plugins
* 2857 FIX: fritz.conn: Handling missing connection state infos as UNKNOWN
+ * 2858 FIX: hp_proliant_da_phydrv: Adding disk controller to check items...
+ NOTE: Please refer to the migration notes!
Multisite:
* 2684 Added icons for downloading agent data / walks of hosts...
diff --git a/checks/hp_proliant_da_phydrv b/checks/hp_proliant_da_phydrv
index 5de5f0e..127ffbb 100644
--- a/checks/hp_proliant_da_phydrv
+++ b/checks/hp_proliant_da_phydrv
@@ -24,9 +24,12 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
-# Author: Lars Michelsen <lm(a)mathias-kettner.de>
-
-hp_proliant_da_phydrv_condition_status2nagios = { 'other': 3, 'ok': 0, 'degraded': 2, 'failed': 2 }
+hp_proliant_da_phydrv_condition_status2nagios = {
+ 'other' : 3,
+ 'ok' : 0,
+ 'degraded' : 2,
+ 'failed' : 2,
+}
hp_proliant_da_phydrv_condition = {
0: 'n/a',
1: 'other',
@@ -52,12 +55,12 @@ hp_proliant_da_phydrv_smart_status = {
}
def inventory_hp_proliant_da_phydrv(info):
- if len(info) > 0:
- return [ (line[1], None) for line in info ]
+ return [ (line[0]+'/'+line[1], None) for line in info ]
-def check_hp_proliant_da_phydrv(item, params, info):
+def check_hp_proliant_da_phydrv(item, _no_params, info):
for line in info:
- if line[1] == item:
+ # First condition is for legacy discovered services
+ if line[1] == item or (line[0]+'/'+line[1]) == item:
cntlr_index, index, bay, status, ref_hours, size, condition, bus_number, smart_status = line
snmp_status = hp_proliant_da_phydrv_status[int(status)]
Module: check_mk
Branch: master
Commit: 97796729dd3f1a265d887692ffa6a47bee8df0d5
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=97796729dd3f1a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Dec 2 15:13:43 2015 +0100
hitachi_hus_status: Fixed code alignment
---
ChangeLog | 2 +-
checks/hitachi_hus_status | 12 ++++++------
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index fbc5acf..1cea857 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -114,7 +114,6 @@
* 2800 FIX: mk_mysql: fixed some issues with incorrect assembled command line...
* 2744 FIX: waitmax now kills the whole process group and is a bit more robust.
* 2842 FIX: jolokia_metrics.perm_gen: fixed wrong calculation of perf variables warn and crit
- * 1308 FIX: check_mk_agent.linux: Not longer list prl_fs filesystems...
* 2782 FIX: cups_queues: fix crash in case user name contains spaces
* 2849 FIX: winperf_processor.util: Fixed crash in case no CPU infos are sent
* 2850 FIX: juniper_cpu: Better error handling of empty data reported by device
@@ -123,6 +122,7 @@
* 2853 FIX: cisco_asa_failover: Added support for CISCO PIX security devices
* 2854 FIX: winperf_if: Assuming interfaces without status to be up
* 2855 FIX: ibm_svc_mdiskgrp: Fixed crash when capacity of pool is 0
+ * 1308 FIX: check_mk_agent.linux: Not longer list prl_fs filesystems...
* 2856 FIX: winperf_phydisk: Not discovering on clusters where disk perfcounters are missing...
Multisite:
diff --git a/checks/hitachi_hus_status b/checks/hitachi_hus_status
index 6d73b85..30f4f8f 100644
--- a/checks/hitachi_hus_status
+++ b/checks/hitachi_hus_status
@@ -50,13 +50,13 @@ def check_hitachi_hus_status(_no_item, _no_params, info):
268435456 : ( 2, "Host connector alarm" ),
}
if int(info[0][0]) == 0:
- yield 0, "Array in normal status"
+ yield 0, "Array in normal status"
else:
- yield 0, "Errorcode: %s" % info[0][0]
- for status, output in status_values.items():
- state, message = output
- if status & int(info[0][0]):
- yield state, message
+ yield 0, "Errorcode: %s" % info[0][0]
+ for status, output in status_values.items():
+ state, message = output
+ if status & int(info[0][0]):
+ yield state, message
check_info["hitachi_hus_status"] = {
"check_function" : check_hitachi_hus_status,
Module: check_mk
Branch: master
Commit: 347d4b24a325d6f5af7212af8d45411bbe220c91
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=347d4b24a325d6…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Dec 2 15:01:33 2015 +0100
This fixes a crash like this:
UnboundLocalError: local variable 'disk_read_bytes' referenced before assignment
Conflicts:
ChangeLog
checks/winperf_phydisk
---
.werks/2856 | 12 ++++++++++++
ChangeLog | 1 +
checks/winperf_phydisk | 6 +++++-
3 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/.werks/2856 b/.werks/2856
new file mode 100644
index 0000000..e0edfb3
--- /dev/null
+++ b/.werks/2856
@@ -0,0 +1,12 @@
+Title: winperf_phydisk: Not discovering on clusters where disk perfcounters are missing
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i4
+Date: 1449064692
+
+This fixes a crash like this:
+
+UnboundLocalError: local variable 'disk_read_bytes' referenced before assignment
diff --git a/ChangeLog b/ChangeLog
index 8491810..ce5bc72 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -122,6 +122,7 @@
* 2853 FIX: cisco_asa_failover: Added support for CISCO PIX security devices
* 2854 FIX: winperf_if: Assuming interfaces without status to be up
* 2855 FIX: ibm_svc_mdiskgrp: Fixed crash when capacity of pool is 0
+ * 2856 FIX: winperf_phydisk: Not discovering on clusters where disk perfcounters are missing...
Multisite:
* 2684 Added icons for downloading agent data / walks of hosts...
diff --git a/checks/winperf_phydisk b/checks/winperf_phydisk
index e2fd98b..cca658b 100644
--- a/checks/winperf_phydisk
+++ b/checks/winperf_phydisk
@@ -67,7 +67,11 @@ def winperf_phydisk_convert(info):
# for now.
# In case disk performance counters are not enabled, the agent sends
# an almost empty section, where the second line is missing completely
- if len(info) == 1:
+ def disk_perfcounters_disabled(info):
+ nodes = set([ l[0] for l in info ])
+ return len(nodes) == len(info)
+
+ if disk_perfcounters_disabled(info):
return []
lines = iter(info)