Module: check_mk
Branch: master
Commit: 02e8db53a02ebe1652fdea179100c5436605086c
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=02e8db53a02ebe…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Jan 25 15:59:16 2013 +0100
Updated bug entries #0824
---
.bugs/824 | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/.bugs/824 b/.bugs/824
index cfa232d..12091c7 100644
--- a/.bugs/824
+++ b/.bugs/824
@@ -19,3 +19,7 @@ I'm testing on CentOS 6.2 64bit.
Best regards
Wolfgang
+
+
+Resolution: We do not try to create this file but assume a serial
+number of 0 for all users in case that file is missing.
Module: check_mk
Branch: master
Commit: 56edfc200d4d485789095db2a156fd97693dbdb1
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=56edfc200d4d48…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Jan 25 10:21:36 2013 +0100
fixed bug: removing pending log in distr. setup
---
ChangeLog | 1 +
web/htdocs/wato.py | 6 +++---
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 9772273..81e2cd1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -28,6 +28,7 @@
* FIX: Fixed problem on user profile page when no alias set for a user
* FIX: list valuespecs could not be extended after once saving
* FIX: fix title of foldable areas contained in list valuespecs
+ * FIX: Fixed bug where pending log was not removed in multisite setup
1.2.1i5:
Core:
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index f5da593..fd309f9 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -6677,11 +6677,11 @@ def mode_edit_site(phase):
save_sites(sites)
- # Own site needs SYNCRESTART in any case
+ # Own site needs RESTART in any case
update_replication_status(our_site_id(), { "need_restart" : True })
-
if new:
- update_replication_status(id, { "need_sync" : True, "need_restart" : True })
+ if not site_is_local(id):
+ update_replication_status(id, { "need_sync" : True, "need_restart" : True })
log_pending(AFFECTED, None, "edit-sites", _("Created new connection to site %s" % id))
else:
log_pending(AFFECTED, None, "edit-sites", _("Modified site connection %s" % id))
Module: check_mk
Branch: master
Commit: 0911dcca3d2256664fffacc8645760ecd66f4327
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0911dcca3d2256…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Jan 24 16:47:01 2013 +0100
Updated bug entries #0886
---
.bugs/886 | 98 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 98 insertions(+), 0 deletions(-)
diff --git a/.bugs/886 b/.bugs/886
new file mode 100644
index 0000000..d1aa9e9
--- /dev/null
+++ b/.bugs/886
@@ -0,0 +1,98 @@
+Title: Manual installion of EC without OMD
+Component: docu
+State: open
+Date: 2013-01-24 16:46:23
+Targetversion: 1.2.3
+Class: todo
+
+ch versuche mich gerade an der Event Console (mkeventd).
+Ich habe jedoch massive Probleme in einer nicht OMD Umgebung.
+
+Hier mal die Schritte welche ich durchgeführt habe.
+
+Check_MK 1.2.1i4 installiert
+
+mkeventd-1.2.1i4.tar.gz geladen und entpackt.
+cd mkevent
+rsync -av bin/* /usr/local/bin/
+rsync -av checks/* /usr/share/check_mk/checks/
+rsync -av lib/* /usr/local/nagios/libexec/
+rsync -av web/* /usr/share/check_mk/web/
+
+Multisite Integration:
+======================
+cat > /etc/check_mk/multisite.mk
+mkeventd_enabled = True
+EOF
+
+service httpd restart
+
+Leere Config Datei erstellen:
+=============================
+touch /etc/check_mk/mkeventd.mk
+
+
+WATO in Multisite geöffnet:
+===========================
+Multisite -> Event Console -> New Rule -> Save
+>>> Nun kommen einige Fehlermeldungen.
+Your web server cannot create the directory /etc/check_mk/mkeventd.d, or cannot set the group to nagcmd or cannot set the permissions to 0770. Please make sure that:
+the base directory is writable by the web server.
+Both Nagios and the web server are in the group nagcmd.
+Reason: [Errno 13] Permission denied: '/etc/check_mk/mkeventd.d'
+
+>>> Umgehungslösung:
+mkdir -p /etc/check_mk/mkeventd.d/wato
+touch /etc/check_mk/mkeventd.d/wato/global.mk
+chgrp -R apache /etc/check_mk/mkeventd.d/wato
+chmod g+w /etc/check_mk/mkeventd.d/wato/global.mk
+
+Internal error:: [Errno 13] Permission denied: '/etc/check_mk/mkeventd.d/wato/rules.mk' (Retry with debug mode)
+touch /etc/check_mk/mkeventd.d/wato/rules.mk
+chgrp -R apache /etc/check_mk/mkeventd.d/wato
+chmod g+w /etc/check_mk/mkeventd.d/wato/rules.mk
+
+Daemon start:
+=============
+mkeventd -P /var/run/mkeventd/events -S /var/run/mkeventd/status --pidfile /var/run/mkeventd/mkeventd.pid
+
+Multisite im Browser geöffnet:
+==============================
+Multisite -> Event Console -> Events
+
+>>> Nun kommt in Multisite folgende Meldung:
+Cannot connect to event daemon: [Errno 2] No such file or directory
+
+Ursache: Socket und Pipe Path unbekannt (run_dir Variable ist falsch)
+
+>>> Umgehungslösung:
+In der Datei /usr/share/check_mk/web/htdocs/mkeventd.py
+except:
+ run_dir = defaults.livestatus_unix_socket.rsplit("/",1)[0]
+ socket_path = run_dir + "/mkeventd/status"
+ pipe_path = run_dir + "/mkeventd/events"
+ändern auf
+ socket_path = "/var/run/mkeventd/status"
+ pipe_path = "/var/run/mkeventd/events"
+
+service httpd restart
+
+>>> Nun kommt in Multisite folgende Meldung:
+Cannot connect to event daemon: [Errno 13] Permission denied
+
+Ursache: Kann nicht in den Socket schreiben.
+
+>>> Umgehungslösung:
+chmod o+w /var/run/mkeventd/status
+
+Dies muss nach jeden Neustart des Daemons durchgeführt werden.
+
+
+Nun scheint alles so zu funktionieren wie es soll.
+
+Wäre toll wenn man die Umgehungslösungen in mkevent einpflegen könnte.
+
+
+Versionsinfos:
+CentOS 6.2
+check_MK 1.2.1i4