Module: check_mk
Branch: master
Commit: 3c5052a886795ca2ce7a890c88e7ac7ade494d4b
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3c5052a886795c…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Jan 25 14:40:04 2016 +0100
#2952 FIX netextreme_psu_out: Fixed crash in case of phase can not be found anymore
---
.werks/2952 | 9 +++++++++
ChangeLog | 1 +
checks/elphase.include | 3 +++
3 files changed, 13 insertions(+)
diff --git a/.werks/2952 b/.werks/2952
new file mode 100644
index 0000000..8e58068
--- /dev/null
+++ b/.werks/2952
@@ -0,0 +1,9 @@
+Title: netextreme_psu_out: Fixed crash in case of phase can not be found anymore
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i4
+Date: 1453729176
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index fa27960..f534056 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -209,6 +209,7 @@
* 2949 FIX: oracle_logswitches oracle_sessions oracle_version: Improved handling of legacy oracle plugin error cases
* 2950 FIX: citrix_controller.sessions: Fixed crash in case active/inactive infos are missing
* 2951 FIX: ibm_svc_disks: Fixed exception with disks having a TB capacity
+ * 2952 FIX: netextreme_psu_out: Fixed crash in case of phase can not be found anymore
Multisite:
* 2684 Added icons for downloading agent data / walks of hosts...
diff --git a/checks/elphase.include b/checks/elphase.include
index c3307de..9a309fc 100644
--- a/checks/elphase.include
+++ b/checks/elphase.include
@@ -37,6 +37,9 @@ def inventory_elphase(parsed):
# }
# }
def check_elphase(item, params, parsed):
+ if item not in parsed:
+ return # Item not found in SNMP data
+
def tostring(value):
if type(value) == int:
return "%d" % value
Module: check_mk
Branch: master
Commit: ef94a8d016dd041dda0e2f9dad437bda805bbcbc
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ef94a8d016dd04…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Jan 25 11:42:18 2016 +0100
#2948 FIX oracle_tablespaces: Fixed exception when section contained empty line
---
.werks/2948 | 9 +++++++++
ChangeLog | 1 +
checks/oracle.include | 3 +++
3 files changed, 13 insertions(+)
diff --git a/.werks/2948 b/.werks/2948
new file mode 100644
index 0000000..6ecdb20
--- /dev/null
+++ b/.werks/2948
@@ -0,0 +1,9 @@
+Title: oracle_tablespaces: Fixed exception when section contained empty line
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i4
+Date: 1453718509
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index bed378c..284621a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -205,6 +205,7 @@
* 2910 FIX: heartbeat_crm: Fixed crash in case of "number of resources" paramters have been configured
* 2911 FIX: mysql.innodb_io: Fixed crash in case averaging is set to 0 minutes
* 2912 FIX: mk_oracle mk_oracle.aix: Fixed handling of DBs which names end with "_[NUMBER]"...
+ * 2948 FIX: oracle_tablespaces: Fixed exception when section contained empty line
Multisite:
* 2684 Added icons for downloading agent data / walks of hosts...
diff --git a/checks/oracle.include b/checks/oracle.include
index b63ca6f..94a1ca9 100644
--- a/checks/oracle.include
+++ b/checks/oracle.include
@@ -37,6 +37,9 @@
# This function returns a tuple when an ORA-* message has been found.
# It returns False if this line should be skipped by the check.
def oracle_handle_ora_errors(line):
+ if len(line) == 1:
+ return
+
# Handle error output from new agent
if line[1] == 'FAILURE':
if len(line) >= 3 and line[2].startswith("ORA-"):
Module: check_mk
Branch: master
Commit: 820e30638e7fe8026dc6d7804ee7a3b8d3c79a45
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=820e30638e7fe8…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Mon Jan 25 14:11:25 2016 +0100
updated werk 2922
---
.werks/2922 | 7 +++----
ChangeLog | 2 +-
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/.werks/2922 b/.werks/2922
index b33ded2..5c9aeaf 100644
--- a/.werks/2922
+++ b/.werks/2922
@@ -1,4 +1,4 @@
-Title: check_mk_agent.linux: mrpe sections can now be cached
+Title: check_mk_agent.linux, check_mk_agent.solaris: mrpe sections can now be cached
Level: 1
Component: checks
Compatible: compat
@@ -6,11 +6,10 @@ Version: 1.2.7i4
Date: 1453198668
Class: feature
-In the mrpe configuration (for linux systems only!) an optional parameter list can now be specified
-between service description and commandline in the following format:
+In the mrpe configuration (for linux and solaris systems only!) an optional parameter list can now
+be specified between service description and commandline in the following format:
description (interval=300) /command/line
The only supported parameter for now is interval. This activates caching fo the mrpe section and
specifies the interval at which the cache should be refreshed.
Existing mrpe configurations continue to work without change.
-This works only with the linux agent.
diff --git a/ChangeLog b/ChangeLog
index d5a1ac7..bed378c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -86,7 +86,7 @@
* 2920 hr_cpu: this check can now also supports per-core features...
* 1322 solaris_prtdiag_status: New Check for Solaris Hardware State based on prtdiag
* 2921 printer_supply_ricoh: check now tries to handle negative readings properly...
- * 2922 check_mk_agent.linux: mrpe sections can now be cached...
+ * 2922 check_mk_agent.linux, check_mk_agent.solaris: mrpe sections can now be cached...
* 2933 openhardwaremonitor, check_mk_agent.windows: added agent support and check for monitoring hardware sensors through OpenHardwareMonitor...
* 2829 filesystem checks: introduced default levels for inodes used (10%/5% free)...
* 2934 all temperature checks rewritten to use the shared temperature api...
Module: check_mk
Branch: master
Commit: 42555600572c86c74aa0bd03ecf338d61eba1524
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=42555600572c86…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Mon Jan 25 14:00:02 2016 +0100
oracle_diva_csm: explained the unusual check layout
---
checks/oracle_diva_csm | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/checks/oracle_diva_csm b/checks/oracle_diva_csm
index db65427..5ab5ccc 100644
--- a/checks/oracle_diva_csm
+++ b/checks/oracle_diva_csm
@@ -36,6 +36,15 @@
# .1.3.6.1.4.1.110901.1.4.5.0 total size on tapes
+#
+# Note: These checks was designed a bit atypically (for no good reason):
+# The drive, actor, archive, tapes and library checks are subchecks of the status
+# check although none of these checks share the same oids.
+# As a result, "info" is always a list of 6 sublists and each check only
+# acceses exactly one of the sublists.
+#
+
+
#.
# .--Status--------------------------------------------------------------.
Module: check_mk
Branch: master
Commit: 2cea91097cacfd8beaeacb011ec5444e255dc47f
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2cea91097cacfd…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Mon Jan 25 13:25:15 2016 +0100
#2937 mrpe: check now supports service descriptions using percent-encoded characters
mrpe services can now contain any character using percent encoding. This is particularly useful to
include spaces in the service description as that was previously impossible due to the way mrpe.cfg
was parsed.
This change is incompatible as any %xx sequence will now be converted whereas it was previously
included in the service description as unchanged.
---
.werks/2937 | 13 +++++++++++++
ChangeLog | 2 ++
checks/mrpe | 3 ++-
3 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/.werks/2937 b/.werks/2937
new file mode 100644
index 0000000..278b61f
--- /dev/null
+++ b/.werks/2937
@@ -0,0 +1,13 @@
+Title: mrpe: check now supports service descriptions using percent-encoded characters
+Level: 1
+Component: checks
+Compatible: incomp
+Version: 1.2.7i4
+Date: 1453724472
+Class: feature
+
+mrpe services can now contain any character using percent encoding. This is particularly useful to
+include spaces in the service description as that was previously impossible due to the way mrpe.cfg
+was parsed.
+This change is incompatible as any %xx sequence will now be converted whereas it was previously
+included in the service description as unchanged.
diff --git a/ChangeLog b/ChangeLog
index 44621a6..d5a1ac7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -94,6 +94,8 @@
* 1323 win_printers: Warning and Critical levels can now be set...
* 1324 New Check for Dell Equallogic SAN Devices
* 2892 qlogic_fcport: now supports QLogic FC Switch SANBox 5802 series
+ * 2937 mrpe: check now supports service descriptions using percent-encoded characters...
+ NOTE: Please refer to the migration notes!
* 2660 FIX: fixed windows agent using the wrong working directory...
* 2664 FIX: ps: Speedup in situation with many matching processes...
* 2661 FIX: windows agent: fixed incomplete process list...
diff --git a/checks/mrpe b/checks/mrpe
index c4ab43c..9872b81 100644
--- a/checks/mrpe
+++ b/checks/mrpe
@@ -33,6 +33,7 @@ def inventory_mrpe(info):
item = line[1]
else:
item = line[0]
+ item = urllib.unquote(item)
items.append((item, None))
return items
@@ -56,7 +57,7 @@ def check_mrpe(item, params, info):
line = line[1:]
else:
check_name = None
- if line[0] == item:
+ if urllib.unquote(line[0]) == item:
try:
state = int(line[1])
except: