Module: check_mk
Branch: master
Commit: 25a983bf03027fbf0b8c32c869289752d151b8a8
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=25a983bf03027f…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Jan 25 09:11:53 2017 +0100
4284 FIX Nagios: Added missing variable MICROTIME to notification contexts
When using the CMC, the MICROTIME context variable is always present.
This fixes an error when using the pushover notification plugin with the
Nagios core.
Change-Id: I94db106bf2ed0da6f19a9b1a27f361d8ee478ff6
---
.werks/4284 | 11 +++++++++++
ChangeLog | 1 +
modules/events.py | 5 +++++
3 files changed, 17 insertions(+)
diff --git a/.werks/4284 b/.werks/4284
new file mode 100644
index 0000000..165ea85
--- /dev/null
+++ b/.werks/4284
@@ -0,0 +1,11 @@
+Title: Nagios: Added missing variable MICROTIME to notification contexts
+Level: 1
+Component: notifications
+Compatible: compat
+Version: 1.4.0i4
+Date: 1485331748
+Class: fix
+
+When using the CMC, the MICROTIME context variable is always present.
+This fixes an error when using the pushover notification plugin with the
+Nagios core.
diff --git a/ChangeLog b/ChangeLog
index 7991e97..258700f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -94,6 +94,7 @@
Notifications:
* 4197 FIX: Fix sending notification to global fallback email address
+ * 4284 FIX: Nagios: Added missing variable MICROTIME to notification contexts...
BI:
* 4202 FIX: Availability now avoids pending states for times before new hosts or services were added...
diff --git a/modules/events.py b/modules/events.py
index 1bddd32..5c617d8 100644
--- a/modules/events.py
+++ b/modules/events.py
@@ -261,6 +261,11 @@ def complete_raw_context(raw_context, with_dump, event_log):
raw_context["DATE"] = time.strftime("%Y-%m-%d", broken)
raw_context["SHORTDATETIME"] = time.strftime("%Y-%m-%d %H:%M:%S", broken)
raw_context["LONGDATETIME"] = time.strftime("%a %b %d %H:%M:%S %Z %Y", broken)
+ elif "MICROTIME" not in raw_context:
+ # In case the microtime is not provided, e.g. when using Nagios, then set it here
+ # from the current time. We could look for "LONGDATETIME" and calculate the timestamp
+ # from that one, but we try to keep this simple here.
+ raw_context["MICROTIME"] = "%d" % (time.time()*1000000)
raw_context['HOSTURL'] = '/check_mk/index.py?start_url=%s' % \
urlencode('view.py?view_name=hoststatus&host=%s' % raw_context['HOSTNAME'])
Module: check_mk
Branch: master
Commit: ea005c6003cf82d078d67b78282a2502846f3304
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ea005c6003cf82…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jan 24 20:01:30 2017 +0100
Updated bug entries #2476
Change-Id: Ide1a36c1c15f2779236259a03672c2d7efc240cc
---
.bugs/2476 | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/.bugs/2476 b/.bugs/2476
new file mode 100644
index 0000000..f4bc772
--- /dev/null
+++ b/.bugs/2476
@@ -0,0 +1,29 @@
+Title: omd diff: Changes after setting up site without config changes
+Component: core
+State: open
+Date: 2017-01-24 19:59:51
+Targetversion: future
+Class: nastiness
+
+Right after creating a site and accessing WATO for the first time, the command
+"omd diff" already shows changes. It should only display modifications to the
+default files that were made by the user. These have been found:
+
+* var/check_mk/wato/auth/auth.php:
+ Ist im Skel leer. Könnte sein, dass PHP einen Fehler wirft, wenn die Datei am Anfang ganz fehlt.
+ oder kann man da evtl. ein "include if exists" einbauen?
+
+* etc/htpasswd:
+ Liegt am Automationuser, was korrekt ist. Frage ist, ob man "omdadmin" wirklich
+ durch skel anlegen muss
+
+* permissions etc/htpasswd:
+ wird scheinbar von uns auf 660 gesetzt. Im Skel aber scheinbar anders. Muss man
+ wohl skel reparieren?
+
+* etc/diskspace.conf:
+ Hier erzeugt WATO eine Defaultkonfig, die abweicht von skel. Einfach skel anpassen
+ auf WATO-Default?
+
+* etc/auth.secret:
+ Muss hier wirklich eine leere Datei nach skel/?
Module: check_mk
Branch: master
Commit: bc49d53c045adb8b1fd41df95ab5e1187db3c89f
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bc49d53c045adb…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Jan 24 12:06:57 2017 +0100
Updated bug entries #2552
Change-Id: Ic7530206759f026b7353a1208c248402d1e7942e
---
.bugs/2552 | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/.bugs/2552 b/.bugs/2552
new file mode 100644
index 0000000..09eeb26
--- /dev/null
+++ b/.bugs/2552
@@ -0,0 +1,14 @@
+Title: WATO Backup not working in distributed environments
+Component: wato
+State: open
+Date: 2017-01-24 12:05:22
+Targetversion: future
+Class: nastiness
+
+Neither is the backup configuration distributed via D-WATO nor
+is the Backup module usable in the slave sites. Anyway the
+restore of a slave wouldn't work.
+
+The only possible solution seems to delcare the Backup module
+als "always local" and allow access to that module even if
+using WATO on slave sites is disabled.
Module: check_mk
Branch: master
Commit: 64cddf1ebb3b28842a53a0d6770a9463f6db0211
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=64cddf1ebb3b28…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Jan 24 12:04:25 2017 +0100
Updated bug entries #2551
Change-Id: I5ac5fa7a9fea43a7c3d578435d77aa3bc4809151
---
.bugs/2551 | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/.bugs/2551 b/.bugs/2551
new file mode 100644
index 0000000..f99028d
--- /dev/null
+++ b/.bugs/2551
@@ -0,0 +1,13 @@
+Title: Option -N on omd backup (and om cp) disregards various historic data
+Component: core
+State: open
+Date: 2017-01-24 12:01:59
+Targetversion: future
+Class: bug
+
+It seems that <tt>-N</tt> just skips the monitoring history and the RRDs.
+Several possible large files are still handled, e.g.
+the EC archive and the HW/SW-Inventory history. Also we could
+arguably consider var/log/*.log as historic data and drop
+that. Maybe also a git Konfiguration history, WATO snapshots
+and other stuff.