Module: check_mk
Branch: master
Commit: 8878b781354aa7f632bb1a5f07521af1ea8216dc
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8878b781354aa7…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Mon Apr 4 08:39:52 2016 +0200
3239 The delay and the period of notifications can be fractions of a minute now.
---
.werks/3239 | 10 ++++
ChangeLog | 1 +
web/plugins/wato/check_mk_configuration.py | 76 ++++++++++++++++------------
3 files changed, 55 insertions(+), 32 deletions(-)
diff --git a/.werks/3239 b/.werks/3239
new file mode 100644
index 0000000..0887988
--- /dev/null
+++ b/.werks/3239
@@ -0,0 +1,10 @@
+Title: The delay and the period of notifications can be fractions of a minute now.
+Level: 1
+Component: wato
+Class: feature
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1459751927
+
+
diff --git a/ChangeLog b/ChangeLog
index 1a3c00b..d609d64 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -159,6 +159,7 @@
* 3002 Treasure script wato_import.py: now able to set wato host tag groups
* 3003 New treasure script: migrate_oldcmk2wato.py...
* 3304 Bulk deleting users is now available
+ * 3239 The delay and the period of notifications can be fractions of a minute now.
* 3060 FIX: Folder properties: Fixed exception when a user has no alias set...
* 3062 FIX: Git integration: Fixed not adding files in WATO folders to git control
* 3203 FIX: Distributed WATO: Fixed exception in remote host service discovery...
diff --git a/web/plugins/wato/check_mk_configuration.py b/web/plugins/wato/check_mk_configuration.py
index 64c783e..4b6ff2b 100644
--- a/web/plugins/wato/check_mk_configuration.py
+++ b/web/plugins/wato/check_mk_configuration.py
@@ -1520,49 +1520,58 @@ register_rule(group,
register_rule(group,
"extra_host_conf:first_notification_delay",
- Integer(
- minvalue = 0,
- default_value = 60,
- label = _("Delay:"),
- unit = _("minutes"),
- title = _("Delay host notifications"),
- help = _("This setting delays notifications about host problems by the "
- "specified amount of time. If the host is up again within that "
- "time, no notification will be sent out."),
+ Transform(
+ Float(
+ minvalue = 0.0,
+ default_value = 60.0,
+ label = _("Delay:"),
+ unit = _("minutes"),
+ title = _("Delay host notifications"),
+ help = _("This setting delays notifications about host problems by the "
+ "specified amount of time. If the host is up again within that "
+ "time, no notification will be sent out."),
+ ),
+ forth = lambda x: float(x),
),
- factory_default = 0,
+ factory_default = 0.0,
)
register_rule(group,
"extra_service_conf:first_notification_delay",
- Integer(
- minvalue = 0,
- default_value = 60,
- label = _("Delay:"),
- unit = _("minutes"),
- title = _("Delay service notifications"),
- help = _("This setting delays notifications about service problems by the "
- "specified amount of time. If the service is OK again within that "
- "time, no notification will be sent out."),
+ Transform(
+ Float(
+ minvalue = 0.0,
+ default_value = 60.0,
+ label = _("Delay:"),
+ unit = _("minutes"),
+ title = _("Delay service notifications"),
+ help = _("This setting delays notifications about service problems by the "
+ "specified amount of time. If the service is OK again within that "
+ "time, no notification will be sent out."),
+ ),
+ forth = lambda x: float(x),
),
- factory_default = 0,
+ factory_default = 0.0,
itemtype = "service")
register_rule(group,
"extra_host_conf:notification_interval",
Optional(
- Integer(
- minvalue = 1,
- default_value = 120,
- label = _("Interval:"),
- unit = _("minutes")),
+ Transform(
+ Float(
+ minvalue = 0.05,
+ default_value = 120.0,
+ label = _("Interval:"),
+ unit = _("minutes")),
+ forth = lambda x: float(x),
+ ),
title = _("Periodic notifications during host problems"),
help = _("If you enable periodic notifications, then during a problem state "
"of the host notifications will be sent out in regular intervals "
"until the problem is acknowledged."),
label = _("Enable periodic notifications"),
none_label = _("disabled"),
- none_value = 0,
+ none_value = 0.0,
)
)
@@ -1571,18 +1580,21 @@ register_rule(group,
register_rule(group,
"extra_service_conf:notification_interval",
Optional(
- Integer(
- minvalue = 1,
- default_value = 120,
- label = _("Interval:"),
- unit = _("minutes")),
+ Transform(
+ Float(
+ minvalue = 0.05,
+ default_value = 120.0,
+ label = _("Interval:"),
+ unit = _("minutes")),
+ forth = lambda x: float(x),
+ ),
title = _("Periodic notifications during service problems"),
help = _("If you enable periodic notifications, then during a problem state "
"of the service notifications will be sent out in regular intervals "
"until the problem is acknowledged."),
label = _("Enable periodic notifications"),
none_label = _("disabled"),
- none_value = 0,
+ none_value = 0.0,
),
itemtype = "service")
Module: check_mk
Branch: master
Commit: f131580f2cb9a8d5d9343261d739e887dde79227
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f131580f2cb9a8…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Apr 1 13:59:44 2016 +0200
3016 FIX mk-job: scheduled jobs are now always executed despite of any status file permission problems
The mk-job call could fail if the status file for this command could not get created
due to permission problems.
With this fix insufficient permissions now only prevent the creation of the status file.
The command itself is executed nevertheless.
---
.werks/3016 | 11 +++++++++++
ChangeLog | 1 +
agents/mk-job | 11 ++++++++++-
3 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/.werks/3016 b/.werks/3016
new file mode 100644
index 0000000..3ab6323
--- /dev/null
+++ b/.werks/3016
@@ -0,0 +1,11 @@
+Title: mk-job: scheduled jobs are now always executed despite of any status file permission problems
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.9i1
+Date: 1459511566
+Class: fix
+
+The mk-job call could fail if the status file for this command could not get created
+due to permission problems. With this fix insufficient permissions now only prevent the creation of the status file.
+The command itself is executed nevertheless.
diff --git a/ChangeLog b/ChangeLog
index 1c9dd97..e8baf21 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -117,6 +117,7 @@
* 3015 FIX: Dump host (cmk -D): fixed exception with service descriptions containing umlauts
* 3110 FIX: ewon: Various improvements to snmp proxy functionality...
NOTE: Please refer to the migration notes!
+ * 3016 FIX: mk-job: scheduled jobs are now always executed despite of any status file permission problems...
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/agents/mk-job b/agents/mk-job
index 46bc862..342df2b 100755
--- a/agents/mk-job
+++ b/agents/mk-job
@@ -62,7 +62,16 @@ if ! type $1 >/dev/null 2>&1; then
exit 1
fi
-date +"start_time %s" > "$OUTPUT_PATH/$IDENT.running"
+date +"start_time %s" > "$OUTPUT_PATH/$IDENT.running" 2>/dev/null
+
+if [ ! -w "$OUTPUT_PATH/$IDENT.running" ] ; then
+ # Looks like we are lacking the permissions to create this file..
+ # In this scenario no mk-job status file is created. We simply execute the command
+ $@
+ exit $?
+fi
+
+
/usr/bin/time -o "$OUTPUT_PATH/$IDENT.running" --append \
-f "exit_code %x\nreal_time %E\nuser_time %U\nsystem_time %S\nreads %I\nwrites %O\nmax_res_kbytes %M\navg_mem_kbytes %K\ninvol_context_switches %c\nvol_context_switches %w" "$@"
RC=$?
Module: check_mk
Branch: master
Commit: eb9a10ddf934a2a90223485c187d90a93507d2a8
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=eb9a10ddf934a2…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Apr 1 10:46:09 2016 +0200
3357 FIX Fixed service conditions of Disk IO related rulesets
---
.werks/3357 | 10 ++++++++++
ChangeLog | 1 +
web/plugins/wato/check_parameters.py | 16 ++++------------
3 files changed, 15 insertions(+), 12 deletions(-)
diff --git a/.werks/3357 b/.werks/3357
new file mode 100644
index 0000000..04980f9
--- /dev/null
+++ b/.werks/3357
@@ -0,0 +1,10 @@
+Title: Fixed service conditions of Disk IO related rulesets
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1459500350
+
+
diff --git a/ChangeLog b/ChangeLog
index 9f0e2f4..8bb2aec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -196,6 +196,7 @@
* 3352 FIX: Network scan: Added hostname translation to translate detected DNS names of scanned hosts
* 3353 FIX: Displaying disabled/offline host state in WATO host list now
* 3354 FIX: Added missing option to exclude IP addresses by regex
+ * 3357 FIX: Fixed service conditions of Disk IO related rulesets
Notifications:
* 3263 Notifications: allow users to restrict by their contact groups...
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index 12b8b7f..a5b4aca 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -7378,14 +7378,12 @@ register_check_parameters(
default_value = 300,
)),
]),
- OptionalDropdownChoice(
- choices = [ ( "SUMMARY", _("Summary of all disks") ), ],
- otherlabel = _("On explicit devices ->"),
- explicit = TextAscii(allow_empty = False),
+ TextAscii(
title = _("Device"),
help = _("For a summarized throughput of all disks, specify <tt>SUMMARY</tt>, "
"a per-disk IO is specified by the drive letter, a colon and a slash on Windows "
- "(e.g. <tt>C:/</tt>) or by the device name on Linux/UNIX (e.g. <tt>/dev/sda</tt>).")),
+ "(e.g. <tt>C:/</tt>) or by the device name on Linux/UNIX (e.g. <tt>/dev/sda</tt>).")
+ ),
"dict",
)
@@ -7456,13 +7454,7 @@ register_check_parameters(
"if you are running PNP4Nagios in SINGLE mode.")),
),
]),
- OptionalDropdownChoice(
- choices = [ ( "SUMMARY", _("Summary of all disks") ),
- ( "read", _("Summary of disk input (read)") ),
- ( "write", _("Summary of disk output (write)") ),
- ],
- otherlabel = _("On explicit devices ->"),
- explicit = TextAscii(allow_empty = False),
+ TextAscii(
title = _("Device"),
help = _("For a summarized throughput of all disks, specify <tt>SUMMARY</tt>, for a "
"sum of read or write throughput write <tt>read</tt> or <tt>write</tt> resp. "