Module: check_mk
Branch: master
Commit: a8e8a676a5662bab2806890b59f76be3fa22f762
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a8e8a676a5662b…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Sep 15 10:01:45 2016 +0200
smart: Supressing error message when calling manually and no megacli present
---
agents/plugins/smart | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/agents/plugins/smart b/agents/plugins/smart
index 0d02572..e8141e7 100755
--- a/agents/plugins/smart
+++ b/agents/plugins/smart
@@ -159,11 +159,11 @@ if which smartctl > /dev/null 2>&1 ; then
# Call MegaRaid submodule if conditions are met
- if type MegaCli >/dev/null ; then
+ if type MegaCli >/dev/null 2>&1; then
MegaCli_bin="MegaCli"
- elif type MegaCli64 >/dev/null ; then
+ elif type MegaCli64 >/dev/null 2>&1; then
MegaCli_bin="MegaCli64"
- elif type megacli >/dev/null ; then
+ elif type megacli >/dev/null 2>&1; then
MegaCli_bin="megacli"
else
MegaCli_bin="unknown"
Module: check_mk
Branch: master
Commit: 76efa9bc7ae38cdd6f1f7f4d7281c02bc1d43c9c
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=76efa9bc7ae38c…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Sep 15 10:04:35 2016 +0200
mssql_blocked_sessions: Reporting no blocked sessions in case of empty section
---
checks/mssql_blocked_sessions | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/checks/mssql_blocked_sessions b/checks/mssql_blocked_sessions
index 224bfdc..e874081 100644
--- a/checks/mssql_blocked_sessions
+++ b/checks/mssql_blocked_sessions
@@ -30,15 +30,17 @@
# 119 232292187 LCK_M_U 75
# 76 221526672 LCK_M_U 115
+# TODO: Make this check aware of multiple instances! Don't handle the blocked
+# sessions independent of instances anymore. Use same service description
+# schema as "mssql_instance".
def inventory_mssql_blocked_sessions(info):
return [(None, None)]
def check_mssql_blocked_sessions(_no_item, params, info):
if not info:
- # Assume general connection problem to the database, which is reported
- # by the "X Instance" service and skip this check.
- raise MKCounterWrapped("Failed to connect to database")
+ yield 0, "No blocked sessions"
+ return
state = 2
if params:
Module: check_mk
Branch: master
Commit: 374a33569b77f5e3d5d12180861f8b3df572fdf2
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=374a33569b77f5…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Sep 14 17:11:41 2016 +0200
3803 netapp_api_connection: reports any errors happened during the collection of data
This check shows insufficient user permissions or invalid user credentials as warnings.
You can setup a WATO rule which can change the warning message(s) to an other state.
---
.werks/3803 | 10 ++++++
ChangeLog | 1 +
agents/special/agent_netapp | 46 +++++++++++++-------------
checkman/netapp_api_connection | 14 ++++++++
checks/netapp_api_connection | 64 ++++++++++++++++++++++++++++++++++++
web/plugins/wato/check_parameters.py | 19 +++++++++++
6 files changed, 132 insertions(+), 22 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=374a33569b…
Module: check_mk
Branch: master
Commit: 890412f1a79e11a4970e48f888d69a69b5cf7a32
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=890412f1a79e11…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Sep 14 16:17:43 2016 +0200
EC: Improved some texts of SNMP trap credential rule
---
web/plugins/wato/mkeventd.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/web/plugins/wato/mkeventd.py b/web/plugins/wato/mkeventd.py
index f127d79..ab666d8 100644
--- a/web/plugins/wato/mkeventd.py
+++ b/web/plugins/wato/mkeventd.py
@@ -2581,7 +2581,7 @@ if mkeventd_enabled:
regex_error = _("The engine IDs have to be configured as hex strings "
"like <tt>8000000001020304</tt>."),
),
- title = _("Engine ID"),
+ title = _("Engine IDs (only needed for SNMPv3)"),
help = _("Each SNMPv3 device has it's own engine ID. This is normally "
"automatically generated, but can also be configured manually "
"for some devices. As the engine ID is used for the encryption "
@@ -2594,10 +2594,10 @@ if mkeventd_enabled:
],
optional_keys = [],
),
- title = _("Credentials for processing SNMPv3 traps"),
- help = _("When you want to process SNMPv3 traps with the Event Console it is "
+ title = _("Credentials for processing SNMP traps"),
+ help = _("When you want to process SNMP traps with the Event Console it is "
"necessary to configure the credentials to decrypt the incoming traps."),
- text_if_empty = _("SNMPv3 traps not configured"),
+ text_if_empty = _("SNMP traps not configured"),
),
domain = "mkeventd",
)
Module: check_mk
Branch: master
Commit: 87e8ede5e797ee1d85cd78e61292dc27a06f90ac
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=87e8ede5e797ee…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Sep 14 11:53:56 2016 +0200
3802 FIX Fixed excess Check Helper PIPEs when a datasource program runs into a timeout
A timeout during the execution of a datasource program could cause
leftover stderr/stderr pipes for the Check_MK Helper process.
---
.werks/3802 | 11 +++++++++++
ChangeLog | 1 +
modules/check_mk_base.py | 8 +++++++-
3 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/.werks/3802 b/.werks/3802
new file mode 100644
index 0000000..a7bae20
--- /dev/null
+++ b/.werks/3802
@@ -0,0 +1,11 @@
+Title: Fixed excess Check Helper PIPEs when a datasource program runs into a timeout
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.4.0i1
+Date: 1473846635
+Class: fix
+
+A timeout during the execution of a datasource program could cause
+leftover stderr/stderr pipes for the Check_MK Helper process.
+
diff --git a/ChangeLog b/ChangeLog
index ef36208..5210c40 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -387,6 +387,7 @@
* 3801 FIX: Fixed race condition with persisted data...
* 3854 FIX: juniper_bgp_state: Fixed service descriptions in some cases...
* 3837 FIX: Fixed empty check if lnx_if info contains additional line...
+ * 3802 FIX: Fixed excess Check Helper PIPEs when a datasource program runs into a timeout...
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index 48b385a..ea690fb 100644
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -775,9 +775,15 @@ def get_agent_info_program(commandline):
if p:
os.killpg(os.getpgid(p.pid), signal.SIGTERM)
raise
-
except Exception, e:
raise MKAgentError("Could not execute '%s': %s" % (exepath, e))
+ finally:
+ # The stdout and stderr pipe are not closed correctly on a MKTimeout
+ # Normally these pipes getting closed after p.communicate finishes
+ # Closing them a second time in a OK scenario won't hurt neither..
+ if p:
+ p.stdout.close()
+ p.stderr.close()
if exitstatus:
if exitstatus == 127: