Module: check_mk
Branch: master
Commit: ed058b15bb3e5803056d242c071c75ed3f6345c0
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ed058b15bb3e58…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Apr 14 16:16:56 2016 +0200
3027 mtr (Matt's traceroute): New agent plugin
mtr combines the functionality of the traceroute and ping programs in a single network diagnostic tool.
For further information have a look at the mtr manpage.
This plugin collects data for every hop to the destination address and creates a plethora
of performance values for round trip average, package loss and standard deviation.
Keep in mind that services for this new check require quite a large amount of RRD space, due to
the large number of performance values. Roughly ~23MB for 10 network hops to a target destination.
---
.werks/3027 | 17 ++
ChangeLog | 1 +
agents/plugins/mtr | 362 ++++++++++++++++++++++++++++++++++
checkman/mtr | 15 ++
checks/mtr | 166 ++++++++++++++++
web/plugins/metrics/check_mk.py | 122 +++++++++---
web/plugins/wato/check_parameters.py | 52 +++++
7 files changed, 710 insertions(+), 25 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=ed058b15bb…
error if there are no pending updates
Message-ID: <570fa1b9.Jofu7dVeWvTQc529%si(a)mathias-kettner.de>
User-Agent: Heirloom mailx 12.5 6/20/10
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Module: check_mk
Branch: master
Commit: 3667851567f54fff28af2e38fb3db6c901ca7f69
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3667851567f54f…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Thu Apr 14 15:56:10 2016 +0200
3409 FIX apt: fixed 'UNKNOWN - Item not found in agent output' error if there are no pending updates
---
.werks/3409 | 10 ++++++++++
ChangeLog | 1 +
agents/plugins/mk_apt | 15 +++++++++++++--
checks/apt | 9 ++++++++-
4 files changed, 32 insertions(+), 3 deletions(-)
diff --git a/.werks/3409 b/.werks/3409
new file mode 100644
index 0000000..21d9fc9
--- /dev/null
+++ b/.werks/3409
@@ -0,0 +1,10 @@
+Title: apt: fixed 'UNKNOWN - Item not found in agent output' error if there are no pending updates
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1460642074
+
+
diff --git a/ChangeLog b/ChangeLog
index 0fe2aed..de4e421 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -149,6 +149,7 @@
* 3406 FIX: hp_proliant_temp: fixed wrong params data type
* 3408 FIX: temperature.include: now does not ignore levels with value 0 any more
* 3122 FIX: netapp_fcpio: the rules for this check are now actually used...
+ * 3409 FIX: apt: fixed 'UNKNOWN - Item not found in agent output' error if there are no pending updates
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/agents/plugins/mk_apt b/agents/plugins/mk_apt
index 3905e28..5abcf4f 100755
--- a/agents/plugins/mk_apt
+++ b/agents/plugins/mk_apt
@@ -40,10 +40,21 @@
UPGRADE=upgrade
DO_UPDATE=yes
-if type apt-get > /dev/null ; then
- echo '<<<apt:sep(0)>>>'
+
+function check_apt_update {
if [ "$DO_UPDATE" = yes ] ; then
apt-get update -qq
fi
apt-get -o 'Debug::NoLocking=true' -s -qq "$UPGRADE" | grep -v '^Conf'
+}
+
+
+if type apt-get > /dev/null ; then
+ echo '<<<apt:sep(0)>>>'
+ out=$(check_apt_update)
+ if [ -z $out ]; then
+ echo "No updates pending for installation"
+ else
+ echo $out
+ fi
fi
diff --git a/checks/apt b/checks/apt
index a00ae6c..c9bb04e 100644
--- a/checks/apt
+++ b/checks/apt
@@ -39,15 +39,18 @@
# Inst libpolkit-gobject-1-0 [0.105-4ubuntu2] (0.105-4ubuntu2.14.04.1 Ubuntu:14.04/trusty-updates [amd64])
# Inst libxext-dev [2:1.3.2-1] (2:1.3.2-1ubuntu0.0.14.04.1 Ubuntu:14.04/trusty-security [amd64]) []
+
factory_settings["apt_default_levels"] = {
"normal" : 1,
"security" : 2,
}
+
# Check that the apt section is in valid format of mk_apt plugin and not
# from the apt agent plugin which can be found on the Check_MK exchange.
def apt_valid_info(info):
- return info and len(info[0]) == 1 and len(info[0][0].split(None, 3)) == 4
+ return info and len(info[0]) == 1 and \
+ (len(info[0][0].split(None, 3)) == 4 or info[0][0] == "No updates pending for installation")
def inventory_apt(info):
@@ -59,6 +62,10 @@ def check_apt(_no_item, params, info):
if not apt_valid_info(info):
return
+ if info[0][0] == "No updates pending for installation":
+ yield 0, "No updates pending for installation"
+ return
+
sec_regex = regex("^[^\\(]*\\(.* (Debian-Security:|Ubuntu:[^/]*/[^-]*-security)")
updates = []
sec_updates = []
Module: check_mk
Branch: master
Commit: c5c24718ee887862ec33b6edc476aa12dcac8564
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c5c24718ee8878…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Apr 13 17:11:59 2016 +0200
Updated bug entries #2493
---
.bugs/2493 | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/.bugs/2493 b/.bugs/2493
index 5842a7e..e0ae4e7 100644
--- a/.bugs/2493
+++ b/.bugs/2493
@@ -1,9 +1,11 @@
Title: Contact group name is not stripped at WATO folders
Component: wato
-State: open
+Class: bug
+State: done
Date: 2016-04-07 19:23:35
Targetversion: 1.2.8
-Class: bug
Long names of contact groups are not stripped at WATo folders. The name is displayed over the size of the folder.
It looks not very nice.
+
+2016-04-13 17:11:57: changed state open -> done
Module: check_mk
Branch: master
Commit: 7518b89b87a8b93390d1ac6850bfbd3e2d3e29ee
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7518b89b87a8b9…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Apr 14 12:12:08 2016 +0200
3026 FIX Event console: The "Add comment" option of a rule is now able to add the original text (\0)
---
.werks/3026 | 9 +++++++++
ChangeLog | 1 +
bin/mkeventd | 4 ++--
3 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/.werks/3026 b/.werks/3026
new file mode 100644
index 0000000..38e7a5d
--- /dev/null
+++ b/.werks/3026
@@ -0,0 +1,9 @@
+Title: Event console: The "Add comment" option of a rule is now able to add the original text (\0)
+Level: 1
+Component: ec
+Compatible: compat
+Version: 1.2.9i1
+Date: 1460628605
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index fd5d4e5..15ae1f2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -296,6 +296,7 @@
* 3348 FIX: Improved error handling when trying to edit not existing rules/rule packs
* 3350 FIX: Merged source of Event Console with Check_MK...
* 3240 FIX: Fixed various quotation issues in GUI parts related to the EC
+ * 3026 FIX: Event console: The "Add comment" option of a rule is now able to add the original text (\0)
Livestatus:
* 3233 FIX: Fixed shutdown of Nagios core with Livestatus module...
diff --git a/bin/mkeventd b/bin/mkeventd
index 7d2a696..3e41564 100755
--- a/bin/mkeventd
+++ b/bin/mkeventd
@@ -2116,12 +2116,12 @@ class EventServer:
event["sl"] = rule["sl"]
event["first"] = event["time"]
event["last"] = event["time"]
+ if "set_comment" in rule:
+ event["comment"] = replace_groups(rule["set_comment"], event["text"], groups)
if "set_text" in rule:
event["text"] = replace_groups(rule["set_text"], event["text"], groups)
if "set_host" in rule:
event["host"] = replace_groups(rule["set_host"], event["host"], groups)
- if "set_comment" in rule:
- event["comment"] = replace_groups(rule["set_comment"], event.get("comment", ""), groups)
if "set_application" in rule:
event["application"] = replace_groups(rule["set_application"], event["application"], groups)
if "set_contact" in rule and "contact" not in event: