Module: check_mk
Branch: master
Commit: 9ded52ec6cc3f7e747533830bee6a8fcba265a4a
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9ded52ec6cc3f7…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Thu Jun 8 10:57:05 2017 +0200
4634 FIX aix_if: Make check work with different ifconfig output format
On some systems, the operational status information is listed under
"KIM Driver Flags" instead of simply "Driver Flags", which previously
could not be parsed correctly by the check. This has been fixed.
Change-Id: I474b58f9df8496cb271578049b8e3b9e1f05324d
---
.werks/4634 | 13 +++++++++++++
checks/aix_if | 2 ++
2 files changed, 15 insertions(+)
diff --git a/.werks/4634 b/.werks/4634
new file mode 100644
index 0000000..0a587e0
--- /dev/null
+++ b/.werks/4634
@@ -0,0 +1,13 @@
+Title: aix_if: Make check work with different ifconfig output format
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1496911872
+
+On some systems, the operational status information is listed under
+"KIM Driver Flags" instead of simply "Driver Flags", which previously
+could not be parsed correctly by the check. This has been fixed.
diff --git a/checks/aix_if b/checks/aix_if
index 9f305af..6b3de09 100644
--- a/checks/aix_if
+++ b/checks/aix_if
@@ -85,6 +85,8 @@ def parse_aix_if(info):
nic_info[nic]["ifSpeed"] = int(line[3]) * 1000000
elif " ".join(line[0:2]) == "Driver Flags:":
nic_info[nic]["flags"] = line[2:]
+ elif " ".join(line[0:3]) == "KIM Driver Flags:":
+ nic_info[nic]["flags"] = line[3:]
elif len(line) and ":" not in " ".join(line) and "flags" in nic_info[nic]:
nic_info[nic]["flags"] += line
Module: check_mk
Branch: master
Commit: dbb2777f346183ed1813f41aa872efb92a8dcdbe
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=dbb2777f346183…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Thu Jun 8 10:41:50 2017 +0200
4790 FIX Fixed scaling for the average in interface services of pnp4nagios graphs
If an interface provides a bandwidth, scaling for the average value was not bandwidth but hard coded. This is now fixed thanks to Jonathan Vogt.
Change-Id: I0b0b00aa9935c4d3d7246e6c088875335c2acc69
---
.werks/4790 | 10 ++++++++++
pnp-templates/check_mk-if.php | 4 ++--
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/.werks/4790 b/.werks/4790
new file mode 100644
index 0000000..cd02505
--- /dev/null
+++ b/.werks/4790
@@ -0,0 +1,10 @@
+Title: Fixed scaling for the average in interface services of pnp4nagios graphs
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1496911178
+Class: fix
+
+If an interface provides a bandwidth, scaling for the average value was not bandwidth but hard coded. This is now fixed thanks to Jonathan Vogt.
diff --git a/pnp-templates/check_mk-if.php b/pnp-templates/check_mk-if.php
index 375871d..d836384 100644
--- a/pnp-templates/check_mk-if.php
+++ b/pnp-templates/check_mk-if.php
@@ -143,8 +143,8 @@ if (isset($DS[12])) {
"DEF:outbytesa=$RRDFILE[13]:$DS[13]:MAX ".
"CDEF:intraffica=inbytesa,$unit_multiplier,* ".
"CDEF:outtraffica=outbytesa,$unit_multiplier,* ".
- "CDEF:inmba=intraffica,1048576,/ ".
- "CDEF:outmba=outtraffica,1048576,/ ".
+ "CDEF:inmba=intraffica,$scale,/ ".
+ "CDEF:outmba=outtraffica,$scale,/ ".
"CDEF:minusoutmba=0,outmba,- ".
"LINE:inmba#00a060:\"in (avg) \" ".
"GPRINT:intraffica:LAST:\"%6.1lf %s$unit/s last\" ".
Module: check_mk
Branch: master
Commit: 8713f154832c22cff249e5f1596bb6b29a090675
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8713f154832c22…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Jun 8 08:12:10 2017 +0200
Updated bug entries #2555
Change-Id: I329260d24ecc85e909c961e8f2290866611ad037
---
.bugs/2555 | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/.bugs/2555 b/.bugs/2555
new file mode 100644
index 0000000..f3c39e5
--- /dev/null
+++ b/.bugs/2555
@@ -0,0 +1,11 @@
+Title: Match for contact groups when core = Nagios does not work
+Component: notification
+State: open
+Date: 2017-06-08 08:10:56
+Targetversion: 1.4.0
+Class: bug
+
+When doing notification rules with matching on contact groups
+we need the list of contactgroups from the core. These doe
+not seem to be present when the core is Nagios so we need
+to fetch them via Livestatus. This is not yet implemented.
Module: check_mk
Branch: master
Commit: f92990bde7120a4f4a11b5e0e1422e216cf7583c
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f92990bde7120a…
Author: Sven Rueß <sr(a)mathias-kettner.de>
Date: Wed Jun 7 19:40:51 2017 +0200
Revert "Fixed rule base notification from werk 4796"
This reverts commit 0a69e78acb663d702a99ac5f522cf0aed42538a7.
---
web/htdocs/wato.py | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 5c9e84b..3ea48d4 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -8322,7 +8322,8 @@ def mode_notifications(phase):
# Check setting of global notifications. Are they enabled? If not, display
# a warning here. Note: this is a main.mk setting, so we cannot access this
# directly.
- if not load_configuration_settings().get("enable_rulebased_notifications", True):
+ current_settings = load_configuration_settings()
+ if not current_settings.get("enable_rulebased_notifications"):
url = 'wato.py?mode=edit_configvar&varname=enable_rulebased_notifications'
html.show_warning(
_("<b>Warning</b><br><br>Rule based notifications are disabled in your global settings. "
@@ -10271,7 +10272,7 @@ def mode_users(phase):
html.icon_button(delete_url, _("Delete"), "delete")
notifications_url = folder_preserving_link([("mode", "user_notifications"), ("user", id)])
- if load_configuration_settings().get("enable_rulebased_notifications", True):
+ if load_configuration_settings().get("enable_rulebased_notifications"):
html.icon_button(notifications_url, _("Custom notification table of this user"), "notifications")
# ID
@@ -10352,7 +10353,7 @@ def mode_users(phase):
html.i(_("none"))
# notifications
- if not load_configuration_settings().get("enable_rulebased_notifications", True):
+ if not load_configuration_settings().get("enable_rulebased_notifications"):
table.cell(_("Notifications"))
if not cgs:
html.i(_("not a contact"))
@@ -10417,7 +10418,7 @@ def bulk_delete_users_after_confirm(users):
def mode_edit_user(phase):
# Check if rule based notifications are enabled (via WATO)
- rulebased_notifications = load_configuration_settings().get("enable_rulebased_notifications", True)
+ rulebased_notifications = load_configuration_settings().get("enable_rulebased_notifications")
users = userdb.load_users(lock = phase == 'action')
user_id = html.get_unicode_input("edit") # missing -> new user
@@ -14178,7 +14179,7 @@ def page_user_profile(change_pw=False):
# WATO module due to WATO permission issues. So we cannot show this button
# right now.
if not change_pw:
- rulebased_notifications = load_configuration_settings().get("enable_rulebased_notifications", True)
+ rulebased_notifications = load_configuration_settings().get("enable_rulebased_notifications")
if rulebased_notifications and config.user.may('general.edit_notifications'):
html.begin_context_buttons()
url = "wato.py?mode=user_notifications_p"
Module: check_mk
Branch: master
Commit: 0a69e78acb663d702a99ac5f522cf0aed42538a7
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0a69e78acb663d…
Author: Sven Rueß <sr(a)mathias-kettner.de>
Date: Wed Jun 7 18:31:35 2017 +0200
Fixed rule base notification from werk 4796
Change-Id: I03b44cc77cce51fc5c548361a219b65a56cf7512
---
web/htdocs/wato.py | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 3ea48d4..5c9e84b 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -8322,8 +8322,7 @@ def mode_notifications(phase):
# Check setting of global notifications. Are they enabled? If not, display
# a warning here. Note: this is a main.mk setting, so we cannot access this
# directly.
- current_settings = load_configuration_settings()
- if not current_settings.get("enable_rulebased_notifications"):
+ if not load_configuration_settings().get("enable_rulebased_notifications", True):
url = 'wato.py?mode=edit_configvar&varname=enable_rulebased_notifications'
html.show_warning(
_("<b>Warning</b><br><br>Rule based notifications are disabled in your global settings. "
@@ -10272,7 +10271,7 @@ def mode_users(phase):
html.icon_button(delete_url, _("Delete"), "delete")
notifications_url = folder_preserving_link([("mode", "user_notifications"), ("user", id)])
- if load_configuration_settings().get("enable_rulebased_notifications"):
+ if load_configuration_settings().get("enable_rulebased_notifications", True):
html.icon_button(notifications_url, _("Custom notification table of this user"), "notifications")
# ID
@@ -10353,7 +10352,7 @@ def mode_users(phase):
html.i(_("none"))
# notifications
- if not load_configuration_settings().get("enable_rulebased_notifications"):
+ if not load_configuration_settings().get("enable_rulebased_notifications", True):
table.cell(_("Notifications"))
if not cgs:
html.i(_("not a contact"))
@@ -10418,7 +10417,7 @@ def bulk_delete_users_after_confirm(users):
def mode_edit_user(phase):
# Check if rule based notifications are enabled (via WATO)
- rulebased_notifications = load_configuration_settings().get("enable_rulebased_notifications")
+ rulebased_notifications = load_configuration_settings().get("enable_rulebased_notifications", True)
users = userdb.load_users(lock = phase == 'action')
user_id = html.get_unicode_input("edit") # missing -> new user
@@ -14179,7 +14178,7 @@ def page_user_profile(change_pw=False):
# WATO module due to WATO permission issues. So we cannot show this button
# right now.
if not change_pw:
- rulebased_notifications = load_configuration_settings().get("enable_rulebased_notifications")
+ rulebased_notifications = load_configuration_settings().get("enable_rulebased_notifications", True)
if rulebased_notifications and config.user.may('general.edit_notifications'):
html.begin_context_buttons()
url = "wato.py?mode=user_notifications_p"
Module: check_mk
Branch: master
Commit: c9b8e1554128e749f1850294e457b36f8d7a7399
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c9b8e1554128e7…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Jun 7 18:02:21 2017 +0200
update for WK4709
Change-Id: Icb48692c61943af5b05519ca4b1c92c3a3cca1a2
---
modules/events.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/events.py b/modules/events.py
index fdc6170..3aa9832 100644
--- a/modules/events.py
+++ b/modules/events.py
@@ -517,8 +517,8 @@ def event_match_contactgroups(rule, context):
if required_groups != None:
if cgn == None:
- event_log("Warning: No information about contact groups in the context. " \
- "Seems that you don't use the Check_MK Microcore. ")
+ #event_log("Warning: No information about contact groups in the context. " \
+ # "Seems that you don't use the Check_MK Microcore. ")
return
if cgn:
HOSTCONTACTGROUPNAMES parameters no longer causes a notification not to be sent
Message-ID: <593827e8.Uht/qd9iLfRHp5Ez%ab(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: e946ee5a9fca6009e47506baa3fef3740390eef0
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e946ee5a9fca60…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Jun 7 17:21:52 2017 +0200
4709 FIX Notifications: Missing SERVICECONTACTGROUPNAMES/HOSTCONTACTGROUPNAMES parameters no longer causes a notification not to be sent
This werk reverts part of WK3886. The nagios core did not set the environment parameters mentioned in the topic.
As a result the notifcation condition <i>Match Contact Groups</i> did never match and a notification was not sent.
This has been changed so that this condition check is skipped, whenever this information is missing.
An error scenario should always let the message through.
The issue, that the nagios core does not set this environment info will be fixed in a future werk.
Change-Id: If330de216270299a54f406a913e654526d540381
---
.werks/4709 | 18 ++++++++++++++++++
modules/events.py | 5 +++--
2 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/.werks/4709 b/.werks/4709
new file mode 100644
index 0000000..02349b0
--- /dev/null
+++ b/.werks/4709
@@ -0,0 +1,18 @@
+Title: Notifications: Missing SERVICECONTACTGROUPNAMES/HOSTCONTACTGROUPNAMES parameters no longer causes a notification not to be sent
+Level: 1
+Component: notifications
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1496848680
+
+This werk reverts part of WK3886. The nagios core did not set the environment parameters mentioned in the topic.
+As a result the notifcation condition <i>Match Contact Groups</i> did never match and a notification was not sent.
+This has been changed so that this condition check is skipped, whenever this information is missing.
+
+An error scenario should always let the message through.
+
+
+The issue, that the nagios core does not set this environment info will be fixed in a future werk.
diff --git a/modules/events.py b/modules/events.py
index cfa9b8d..fdc6170 100644
--- a/modules/events.py
+++ b/modules/events.py
@@ -517,8 +517,9 @@ def event_match_contactgroups(rule, context):
if required_groups != None:
if cgn == None:
- return "No information about contact groups is in the context, but " \
- "must be in group %s" % (" or ".join(required_groups))
+ event_log("Warning: No information about contact groups in the context. " \
+ "Seems that you don't use the Check_MK Microcore. ")
+ return
if cgn:
contactgroups = cgn.split(",")