Module: check_mk
Branch: master
Commit: 6135e7db799495349e91752f1c0bc2368d879131
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6135e7db799495…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Nov 11 11:23:17 2016 +0100
Fixed spelling errors in inline comments
---
modules/notify.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/notify.py b/modules/notify.py
index bd32de0..203efa0 100644
--- a/modules/notify.py
+++ b/modules/notify.py
@@ -29,12 +29,12 @@
#
# There are two types of contexts:
# 1. Raw contexts (purple)
-# -> These come out from the monitoring core. They are not yet
+# => These come right out of the monitoring core. They are not yet
# assinged to a certain plugin. In case of rule based notifictions
# they are not even assigned to a certain contact.
#
# 2. Plugin contexts (cyan)
-# -> These already bear all information about the contact, the plugin
+# => These already bear all information about the contact, the plugin
# to call and its parameters.
from cmk.regex import regex
@@ -1246,7 +1246,7 @@ def create_spoolfile(data):
# There are three types of spool files:
# 1. Notifications to be forwarded. Contain key "forward"
# 2. Notifications for async local delivery. Contain key "plugin"
-# 3. Notifications to *got* forwarded. Contain neither of both.
+# 3. Notifications that *were* forwarded (e.g. received from a slave). Contain neither of both.
# Spool files of type 1 are not handled here!
def handle_spoolfile(spoolfile):
notif_uuid = spoolfile.rsplit("/", 1)[-1]
Module: check_mk
Branch: master
Commit: 2f63b216d8c3951465aee7f5fcadea979b8aa505
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2f63b216d8c395…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Nov 11 11:21:23 2016 +0100
3983 FIX mssql_instance: Be more robust agains missing instance info in case of connection issues
---
.werks/3983 | 9 +++++++++
ChangeLog | 1 +
checks/mssql_instance | 8 +++++++-
3 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/.werks/3983 b/.werks/3983
new file mode 100644
index 0000000..79f2c7d
--- /dev/null
+++ b/.werks/3983
@@ -0,0 +1,9 @@
+Title: mssql_instance: Be more robust agains missing instance info in case of connection issues
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.4.0i3
+Date: 1478859667
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 238612c..0d7db06 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,7 @@
* 3939 FIX: f5_bigip_conns: readded performance data and graphs...
* 3979 FIX: vbox_guest: Only try to fetch VBox state in case the vboxguest module is loaded
* 3750 FIX: cmc_temp: Check now also works when using Nagios core
+ * 3983 FIX: mssql_instance: Be more robust agains missing instance info in case of connection issues
Multisite:
* 3974 FIX: Sorting comments in hover menu of comments icon by time now
diff --git a/checks/mssql_instance b/checks/mssql_instance
index dcf87d1..aa584de 100644
--- a/checks/mssql_instance
+++ b/checks/mssql_instance
@@ -47,7 +47,11 @@ def parse_mssql_instance(info):
else:
instance_id = line[0]
- instance = parsed.setdefault(instance_id, {})
+ instance = parsed.setdefault(instance_id, {
+ # it may happen that the state line is missing, add some fallback as default here
+ "state" : "0",
+ "error_msg" : "Unable to connect to database (Agent reported no state)",
+ })
if line[1] == "config":
instance.update({
@@ -74,6 +78,8 @@ def check_mssql_instance(item, _unused, parsed):
if not instance:
return
+ print instance
+
if instance["state"] == "0":
yield 2, "Failed to connect to database (%s)" % instance["error_msg"]
Module: check_mk
Branch: master
Commit: 13ed085f42e275acb53bd7a839c1da8d409dc515
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=13ed085f42e275…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Nov 11 09:38:40 2016 +0100
added missing context info in wk3990
---
.werks/3990 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.werks/3990 b/.werks/3990
index 3c1fc11..954898e 100644
--- a/.werks/3990
+++ b/.werks/3990
@@ -1,4 +1,4 @@
-Title: now uses xml instead of lxml. now able to query counters smaller chunks. now only queries relevant sections
+Title: agent_netapp: now uses xml instead of lxml. now able to query counters smaller chunks. now only queries relevant sections
Level: 1
Component: checks
Compatible: compat
Module: check_mk
Branch: master
Commit: ff4bd226137c31cefeacfb703bb40028a4741017
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ff4bd226137c31…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Nov 10 12:17:34 2016 +0100
fixed Changelog
---
ChangeLog | 3 ---
1 file changed, 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c773da9..238612c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -54,12 +54,9 @@
* 3949 ucd_cpu_load: Genugate devices are now displaying CPU load...
* 3950 openbsd_sensors: Genugate devices are now handling hardware sensors...
* 3749 storcli_pdisks, storcli_vdrives: New checks to monitor RAID status via StorCLI utility
-<<<<<<< 0af2546d520a3da01e639439dcc9db59b790cdf7
-=======
* 3988 Windows agent: new global option disabled_sections...
* 3989 Logwatch patterns: now able to change state of context lines...
* 3990 now uses xml instead of lxml. now able to query counters smaller chunks. now only queries relevant sections...
->>>>>>> 3990 now uses xml instead of lxml. now able to query counters smaller chunks. now only queries relevant sections
* 3894 FIX: mkeventd_status: Fixed bug in case Event Console is not running
* 3907 FIX: oracle_tablespaces: simplyfied free space calculation depending on version...
* 3819 FIX: windows agent: fixed 2 bugs related to mrpe...
Module: check_mk
Branch: master
Commit: 3af44a90deadc9c5ff387ea077cfff2125a249be
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3af44a90deadc9…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Nov 10 11:48:20 2016 +0100
3990 now uses xml instead of lxml. now able to query counters smaller chunks. now only queries relevant sections
Now uses xml instead of lxml. Unfortunaly lxml is not available in all distributions, so
we had to switch back to xml which is considerably slower in parsing xml messages.
You can try to install the python module lxml with the command "pip install lxml".
Now able to query counters smaller chunks. There were some bigger netapp clusters which
raised an out of memory error while answering the call. The reason was that the answer grew
too big. We now query smaller chunks and merge them together.
Now only queries relevant sections. Right at the beginning, the agent queries the available
licenses on the system skips sections, which's licenses is specifically not enabled.
This feature is currently only implemented for a few section and will possibly improved later on.
---
.werks/3990 | 21 +++
ChangeLog | 6 +
agents/special/agent_netapp | 391 ++++++++++++++++++++++++++++----------------
3 files changed, 281 insertions(+), 137 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=3af44a90de…
Module: check_mk
Branch: master
Commit: a7427c105e69905dca570763bdf585bd1d870bf8
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a7427c105e6990…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Nov 10 11:12:18 2016 +0100
Removed useless assignments.
Zeroing parameters or local variables doesn't really make sense, unless we
capture the current environment in a closure and store that away somehow.
This is quite rare, and more often than not, a better solution is to lift
out the closure.
Setting something to null/undefined doesn't even speed up GC, because every
GC implementation worth its salt doesn't to naive reference counting,
anyway, and smears/delays its execution. So we are left with 2 scenarios:
* The JIT/interpreter is stupid and actually executes the assignment:
Then we do useless work and confuse the human reader.
* The JIT/interpreter does its job: The assignment will be nuked by dead
code elimination, but we still confuse the human reader.
---
web/htdocs/js/checkmk.js | 37 -------------------------------------
web/htdocs/js/dashboard.js | 6 ------
web/htdocs/js/search.js | 6 ------
web/htdocs/js/sidebar.js | 21 ---------------------
web/htdocs/js/wato.js | 14 --------------
5 files changed, 84 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=a7427c105e…