Module: check_mk
Branch: master
Commit: d3d544b9e3a0c4177c285147306a3504d5a69bbe
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d3d544b9e3a0c4…
Author: Ronny Bruska <rb(a)mathias-kettner.de>
Date: Fri Mar 8 13:42:38 2019 +0100
fixed broken werk text
Change-Id: Ie6c7466eec69d5413e81c1c5d62601037361a931
---
.werks/7195 | 44 ++++++++++++++++++++++++--------------------
1 file changed, 24 insertions(+), 20 deletions(-)
diff --git a/.werks/7195 b/.werks/7195
index 1cdec02..1f931d1 100644
--- a/.werks/7195
+++ b/.werks/7195
@@ -10,7 +10,7 @@ Class: feature
Check_MK now supports integration with Jira.
You can create issues for Host an Service Problems and optional set a resolution on recovery notifications.
-In Jira you have to add two custom fields to your project screen as described [https://confluence.atlassian.com/adminjiraserver/adding-a-custom-field-9388… here].
+In Jira you have to add two custom fields to your project screen as described <a href "https://confluence.atlassian.com/adminjiraserver/adding-a-custom-field-9388…">here</a>.
In Check_MK, under "WATO - Notifications", create a new notification rule and select Jira.
Parameters to set:
@@ -30,30 +30,34 @@ Parameters to set:
<i>Set optional timeout for connections to JIRA<i>: Timeout in seconds, default is 10 (optional)
You need different Jira IDs to open/resolve issues. There are different ways to get this IDs:
-LI: [https://confluence.atlassian.com/jirakb/how-to-get-project-id-from-the-jira… Jira_support]
+LI: <a href="https://confluence.atlassian.com/jirakb/how-to-get-project-id-from-the-jira…">Jira_support</a>
LI: Retrieve with the a script (example: project_id):
-F+:#!/usr/bin/env python
-F+:
-F+:import requests
-F+:
-F+:USER = "JIRA_USERNAME"
-F+:PW = "JIRA_PASSWORD"
-F+:PROJECT_KEY = "JIRA_PROJECT_NAME"
-F+:JIRA_SERVER = "https://jira.server.your-domain.de"
-F+:
-F+:sess = requests.Session()
-F+:sess.auth = (USER, PW)
-F+:resp = sess.get("%s/rest/api/2/project" % JIRA_SERVER, verify=False)
-F+:
-F+:project_id = [item["id"] for item in resp.json() if item["key"] == PROJECT_KEY][0]
-F+:print(project_id)
+F+:example_script.py
+#!/usr/bin/env python
+
+import requests
+
+USER = "JIRA_USERNAME"
+PW = "JIRA_PASSWORD"
+PROJECT_KEY = "JIRA_PROJECT_NAME"
+JIRA_SERVER = "https://jira.server.your-domain.de"
+
+sess = requests.Session()
+sess.auth = (USER, PW)
+resp = sess.get("%s/rest/api/2/project" % JIRA_SERVER, verify=False)
+
+project_id = [item["id"] for item in resp.json() if item["key"] == PROJECT_KEY][0]
+print(project_id)
+F-:
For issuetype and priority ID use:
-F+:resp = sess.get("%s/rest/api/2/issuetype" % JIRA_SERVER)
-F+:resp = sess.get("%s/rest/api/2/priority" % JIRA_SERVER)
+F+:example_script.py
+resp = sess.get("%s/rest/api/2/issuetype" % JIRA_SERVER)
+resp = sess.get("%s/rest/api/2/priority" % JIRA_SERVER)
+F-:
-More information about the Jira API can be found [https://docs.atlassian.com/software/jira/docs/api/REST/7.12.0 here].
+More information about the Jira API can be found <a href "https://docs.atlassian.com/software/jira/docs/api/REST/7.12.0">here</a>.
CMK-1185
Module: check_mk
Branch: master
Commit: 2d8d90578a5a07a187b981f934c31ac903a09f00
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2d8d90578a5a07…
Author: Alex Zurhake <az(a)mathias-kettner.de>
Date: Thu Mar 7 09:27:24 2019 +0100
Do not stop integration test after single failure
in order to get a history of which test failed in which distro, how often, when, etc.
This will help us to improve code and test quality
Change-Id: Ida38302bd81bf2907bf5b293c47ae1ecf9103251
---
buildscripts/scripts/integration-daily-master.jenkins | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/buildscripts/scripts/integration-daily-master.jenkins b/buildscripts/scripts/integration-daily-master.jenkins
index e112038..c769244 100644
--- a/buildscripts/scripts/integration-daily-master.jenkins
+++ b/buildscripts/scripts/integration-daily-master.jenkins
@@ -120,7 +120,7 @@ DISTRO_LIST.each { DISTRO ->
sh 'ls -lah'
dir (DISTRO + '-dest') {
sh 'rm -rf .venv'
- sh 'make -C tests test-integration'
+ sh 'PYTEST_ADDOPTS="--maxfail 300" make -C tests test-integration'
}
sh "until umount $DISTRO-dest; do sleep 1; done"
}
Module: check_mk
Branch: master
Commit: ae66188f84bafd2f9d36910bda88e450d4219512
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ae66188f84bafd…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jan 8 15:38:36 2019 +0100
7024 BI aggregation list now shows icons for the aggregation config options
The aggregation list of WATO now shows icons for the aggregation option flags
(enabled/disabled, single/multiple hosts, hard/all states, downtime aggregate WARN/CRIT).
Change-Id: I49844b0892caf16141cd3512cb916e63f59682fb
---
.werks/7024 | 11 +++++++++++
cmk/gui/plugins/wato/bi.py | 17 ++++++++++++++++-
web/htdocs/themes/classic/images/icon_all_states.png | Bin 0 -> 4436 bytes
web/htdocs/themes/classic/images/icon_critical.png | Bin 0 -> 4477 bytes
web/htdocs/themes/classic/images/icon_hard_states.png | Bin 0 -> 2935 bytes
web/htdocs/themes/facelift/images/icon_all_states.png | Bin 0 -> 21429 bytes
web/htdocs/themes/facelift/images/icon_critical.png | Bin 0 -> 698 bytes
web/htdocs/themes/facelift/images/icon_hard_states.png | Bin 0 -> 12090 bytes
8 files changed, 27 insertions(+), 1 deletion(-)
diff --git a/.werks/7024 b/.werks/7024
new file mode 100644
index 0000000..1358663
--- /dev/null
+++ b/.werks/7024
@@ -0,0 +1,11 @@
+Title: BI aggregation list now shows icons for the aggregation config options
+Level: 1
+Component: wato
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1546958239
+Class: feature
+
+The aggregation list of WATO now shows icons for the aggregation option flags
+(enabled/disabled, single/multiple hosts, hard/all states, downtime aggregate WARN/CRIT).
diff --git a/cmk/gui/plugins/wato/bi.py b/cmk/gui/plugins/wato/bi.py
index c5af8a4..9a2035d 100644
--- a/cmk/gui/plugins/wato/bi.py
+++ b/cmk/gui/plugins/wato/bi.py
@@ -1314,12 +1314,27 @@ class ModeBIAggregations(ModeBI):
if "customer" in aggregation:
html.write_text(managed.get_customer_name(aggregation))
- table.text_cell("", css="buttons")
+ table.text_cell(_("Options"), css="buttons")
if aggregation["disabled"]:
html.icon(_("This aggregation is currently disabled."), "disabled")
+ else:
+ html.icon(_("This aggregation is currently enabled."), "enabled")
+
if aggregation["single_host"]:
html.icon(_("This aggregation covers only data from a single host."), "host")
+ else:
+ html.icon(_("This aggregation works with data of multiple hosts."), "aggr")
+
+ if aggregation["hard_states"]:
+ html.icon(_("Base state computation on hard states"), "hard_states")
+ else:
+ html.icon(_("Base state computation on soft and hard states"), "all_states")
+
+ if aggregation["downtime_aggr_warn"]:
+ html.icon(_("Escalate downtimes based on aggregated WARN state"), "warning")
+ else:
+ html.icon(_("Escalate downtimes based on aggregated CRIT state"), "critical")
table.text_cell(_("Groups"), ", ".join(aggregation["groups"]))
diff --git a/web/htdocs/themes/classic/images/icon_all_states.png b/web/htdocs/themes/classic/images/icon_all_states.png
new file mode 100644
index 0000000..6c20127
Binary files /dev/null and b/web/htdocs/themes/classic/images/icon_all_states.png differ
diff --git a/web/htdocs/themes/classic/images/icon_critical.png b/web/htdocs/themes/classic/images/icon_critical.png
new file mode 100644
index 0000000..e1841e4
Binary files /dev/null and b/web/htdocs/themes/classic/images/icon_critical.png differ
diff --git a/web/htdocs/themes/classic/images/icon_hard_states.png b/web/htdocs/themes/classic/images/icon_hard_states.png
new file mode 100644
index 0000000..8b87561
Binary files /dev/null and b/web/htdocs/themes/classic/images/icon_hard_states.png differ
diff --git a/web/htdocs/themes/facelift/images/icon_all_states.png b/web/htdocs/themes/facelift/images/icon_all_states.png
new file mode 100644
index 0000000..77e24cf
Binary files /dev/null and b/web/htdocs/themes/facelift/images/icon_all_states.png differ
diff --git a/web/htdocs/themes/facelift/images/icon_critical.png b/web/htdocs/themes/facelift/images/icon_critical.png
new file mode 100644
index 0000000..53c8559
Binary files /dev/null and b/web/htdocs/themes/facelift/images/icon_critical.png differ
diff --git a/web/htdocs/themes/facelift/images/icon_hard_states.png b/web/htdocs/themes/facelift/images/icon_hard_states.png
new file mode 100644
index 0000000..ebf622d
Binary files /dev/null and b/web/htdocs/themes/facelift/images/icon_hard_states.png differ