Module: check_mk
Branch: master
Commit: 6a42ac4df3b88c80fde38efce8d721685b10804a
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6a42ac4df3b88c…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Wed Jun 14 14:26:25 2017 +0200
4822 FIX mk_tsm: Made query for storagepools more robust
A migrated Pool vanished in the output and produced in consequence an
UNKNOWN. Thanks to Thorsten Hintemann this has been fixed know.
Change-Id: I2b47afe5fffe31d5aec9715266d2afd62913fcb1
---
.werks/4822 | 11 +++++++++++
agents/plugins/mk_tsm | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/4822 b/.werks/4822
new file mode 100644
index 0000000..9a77ba3
--- /dev/null
+++ b/.werks/4822
@@ -0,0 +1,11 @@
+Title: mk_tsm: Made query for storagepools more robust
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1497442952
+Class: fix
+
+A migrated Pool vanished in the output and produced in consequence an
+UNKNOWN. Thanks to Thorsten Hintemann this has been fixed know.
diff --git a/agents/plugins/mk_tsm b/agents/plugins/mk_tsm
index b4faa16..d09de95 100755
--- a/agents/plugins/mk_tsm
+++ b/agents/plugins/mk_tsm
@@ -65,7 +65,7 @@ EOF
# Occupancy
echo '<<<tsm_storagepools:sep(9)>>>'
$dsmcmd <<EOF | sed -n "/^FOO/s//$INST/p"
-SELECT 'FOO', type, stgpool_name, sum(logical_mb) from occupancy group by type, stgpool_name
+SELECT 'FOO' as foo,COALESCE(type,'Unknown') as type,stgpools.stgpool_name, sum(coalesce(logical_mb,0)) as SUM_LOGICAL_MB from occupancy full outer join stgpools on occupancy.stgpool_name=stgpools.stgpool_name group by stgpools.stgpool_name,type
EOF
}
Module: check_mk
Branch: master
Commit: 0ba856768a9a273b54a5f58407ac39c28f6b70c6
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0ba856768a9a27…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Mon May 22 16:52:51 2017 +0200
4737 cisco_asa_failover: Now roles of cluster and state of failover is configurable
The roles of primary and secondary devices can now be configured. Defaults
are "active" for primary and "standby" for secondary. Also the state if a
failover takes place can be set.
Change-Id: If51bdc7a6a272ec6066c706cf3ce51c85e1fd77a
---
.werks/4737 | 12 ++++
checkman/cisco_asa_conn | 18 +++++
checkman/cisco_asa_failover | 2 +
checks/cisco_asa_conn | 95 +++++++++++++++++++++++++++
checks/cisco_asa_failover | 123 ++++++++++++++++++-----------------
web/plugins/wato/check_parameters.py | 39 +++++++++++
6 files changed, 231 insertions(+), 58 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=0ba856768a…
Module: check_mk
Branch: master
Commit: 8a2a89c0ccd7e0f11316a6731c94cbfe1b8837d5
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8a2a89c0ccd7e0…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Wed Jun 28 13:40:44 2017 +0200
4938 FIX Make sure that a notification has the plugin output available
Plugin output in notifications can be either host-related or service-related.
Make sure that the resulting notification has always access to the right
kind. Previously notifications triggered e.g. by the event console could
have an empty plugin output.
Note: This was a bug introduced in 1.4.0p6, earlier versions were not
affected.
Change-Id: I56d7c69bea3a3a653953edee7b10b107ab0c1901
---
.werks/4938 | 16 ++++++++++++++++
modules/events.py | 3 ++-
2 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/.werks/4938 b/.werks/4938
new file mode 100644
index 0000000..9c051cb
--- /dev/null
+++ b/.werks/4938
@@ -0,0 +1,16 @@
+Title: Make sure that a notification has the plugin output available
+Level: 1
+Component: notifications
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1498649743
+Class: fix
+
+Plugin output in notifications can be either host-related or service-related.
+Make sure that the resulting notification has always access to the right
+kind. Previously notifications triggered e.g. by the event console could
+have an empty plugin output.
+
+Note: This was a bug introduced in 1.4.0p6, earlier versions were not
+affected.
diff --git a/modules/events.py b/modules/events.py
index 3d21fa9..8f16144 100644
--- a/modules/events.py
+++ b/modules/events.py
@@ -337,7 +337,8 @@ def complete_raw_context(raw_context, with_dump, event_log):
raw_context['HOSTFORURL'] = urllib.quote(raw_context['HOSTNAME'])
# Add HTML formated plugin output
- raw_context["HOSTOUTPUT_HTML"] = format_plugin_output(raw_context["HOSTOUTPUT"])
+ if "HOSTOUTPUT" in raw_context:
+ raw_context["HOSTOUTPUT_HTML"] = format_plugin_output(raw_context["HOSTOUTPUT"])
if raw_context["WHAT"] == "SERVICE":
raw_context["SERVICEOUTPUT_HTML"] = format_plugin_output(raw_context["SERVICEOUTPUT"])
raw_context["LONGSERVICEOUTPUT_HTML"] = format_plugin_output(raw_context["LONGSERVICEOUTPUT"])