Module: check_mk
Branch: master
Commit: 557e4e48928967266b6101de1fd5b7bd4e1eeedc
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=557e4e48928967…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Oct 2 18:24:50 2013 +0200
Support legacy mistypes log message intitial states
---
livestatus/src/LogEntry.cc | 35 ++++++++++++++++++++---------------
1 file changed, 20 insertions(+), 15 deletions(-)
diff --git a/livestatus/src/LogEntry.cc b/livestatus/src/LogEntry.cc
index 1744bab..1ef92e2 100644
--- a/livestatus/src/LogEntry.cc
+++ b/livestatus/src/LogEntry.cc
@@ -4,23 +4,24 @@
// | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
// | | |___| | | | __/ (__| < | | | | . \ |
// | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
+// | |_____| |
+// | __ __ _ ____ |
+// | | \/ (_) ___ _ __ ___ / ___|___ _ __ ___ |
+// | | |\/| | |/ __| '__/ _ \ | | / _ \| '__/ _ \ |
+// | | | | | | (__| | | (_) | | |__| (_) | | | __/ |
+// | |_| |_|_|\___|_| \___/ \____\___/|_| \___| |
// | |
// | Copyright Mathias Kettner 2013 mk(a)mathias-kettner.de |
// +------------------------------------------------------------------+
//
-// This file is part of Check_MK.
-// The official homepage is at http://mathias-kettner.de/check_mk.
+// This file is part of the Check_MK Micro Core. Copyright by Mathias
+// Kettner, Preysingstr. 74, 81667 München, Germany. All rights are
+// reserved. You may *not* redistribute or modify this software unless
+// you have a written permission of the owner. This file is *not*
+// available under GNU GPL. If you do not like this then please use a
+// different monitoring core.
//
-// check_mk is free software; you can redistribute it and/or modify it
-// under the terms of the GNU General Public License as published by
-// the Free Software Foundation in version 2. check_mk is distributed
-// in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
-// out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-// PARTICULAR PURPOSE. See the GNU General Public License for more de-
-// ails. You should have received a copy of the GNU General Public
-// License along with GNU Make; see the file COPYING. If not, write
-// to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
-// Boston, MA 02110-1301 USA.
+// Please note: This software is experimental. Use at your own risk.
#include <string.h>
#include <time.h>
@@ -323,13 +324,17 @@ inline bool LogEntry::handleExternalCommandEntry()
return false;
}
-inline bool LogEntry::handleTextEntry() {
- if (!strncmp(_text, "LOG VERSION: 2.0", 16)){
+inline bool LogEntry::handleTextEntry()
+{
+ if (!strncmp(_text, "LOG VERSION: 2.0", 16))
+ {
_logclass = LOGCLASS_PROGRAM;
_type = LOG_VERSION;
return true;
}
- else if (!strncmp(_text, "logging initial states", 22)){
+ else if (!strncmp(_text, "logging initial states", 22)
+ || !strncmp(_text, "logging intitial states", 23))
+ {
_logclass = LOGCLASS_PROGRAM;
_type = LOG_INITIAL_STATES;
return true;
Module: check_mk
Branch: master
Commit: 80dd5801d45743060753f710248b073999dd1bfe
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=80dd5801d45743…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Oct 2 10:16:05 2013 +0200
Notif-Konzept verfeinert
---
doc/drafts/LIESMICH.rule_based_notifications | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/doc/drafts/LIESMICH.rule_based_notifications b/doc/drafts/LIESMICH.rule_based_notifications
index 6a81979..89d3254 100644
--- a/doc/drafts/LIESMICH.rule_based_notifications
+++ b/doc/drafts/LIESMICH.rule_based_notifications
@@ -44,6 +44,8 @@ Wie bei bestehenden "Flexible Notifications":
* Service-Bedingungen wie bei den WATO-Regeln mit Regexen
Neu kommt dazu:
+* Eventuell: Ausgangszustand bzw. kompletter Ãœbergang, also nicht
+ nur "bei WARN", sondern bei "CRIT -> WARN".
* Eventuell: Bedingung über den Typ des Checks (z.B. nur df)
* Eventuell: enthalten in bestimmter Host oder Servicegruppe
* Eventuell: enthalten in bestimmter Kontaktgruppe
@@ -69,6 +71,9 @@ mit dem Aufbau
Kontakt, Plugin, Parameter
+Und eine Checkbox: [ ] Kann vom Benutzer deaktiviert werden.
+(siehe Auschlussregeln)
+
AUSSCHLUSS-REGELN
-----------------
@@ -90,7 +95,13 @@ ausgewertet werden, muss man hier die Ausnahmen *nach* den allgemeinen
Regeln definieren. So können spätere Regeln frühere immer wieder revidieren.
Auch bei Sperrregeln kann man ein Plugin auswählen. Dann werden nur die
-Notifikationen mit diesem Plugin gelöscht (um z.B. keine SMS zu bekommen)
+Notifikationen mit diesem Plugin gelöscht (um z.B. keine SMS zu bekommen).
+Wenn man kein Plugin auswählt, dann werden alle Notifikationen gelöscht.
+
+Positive Regeln und Ausschlussreglen können sich beliebig Abwechseln.
+Die Reihenfolge ist frei definierbar. Damit kann man z.B. erstmal alles
+zulassen, dann für eine Gruppe von Benutzern wieder abklemmen und
+dann für einen Benutzer doch wieder aktivieren.
BENUTZER-REGELN
@@ -109,6 +120,10 @@ Der Benutzer kann somit:
Merke: Der Benutzer kann so auch Notifikationen "abbonieren" für
Hosts/Services, für die er im Nagios kein Kontakt ist!
+Notifikationen, die der Admin gesperrt hat (siehe oben), können vom
+Benutzer nicht abgeklemmt werden.
+
+
FALLBACK
--------
Module: check_mk
Branch: master
Commit: ba9d4b22a67c4cc74e9e48b5c93da2dbdf569799
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ba9d4b22a67c4c…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Oct 1 23:17:09 2013 +0200
Fix help text in global settings of EC forwarding
---
mkeventd/web/plugins/wato/mkeventd.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/mkeventd/web/plugins/wato/mkeventd.py b/mkeventd/web/plugins/wato/mkeventd.py
index 44c5068..d546b46 100644
--- a/mkeventd/web/plugins/wato/mkeventd.py
+++ b/mkeventd/web/plugins/wato/mkeventd.py
@@ -1632,7 +1632,9 @@ register_configvar(group,
help = _("If you select a contact group here, then all notifications of "
"hosts and services in that contact group will be sent to the "
"event console. <b>Note</b>: you still need to create a rule "
- "matching those messages in order to have events created."),
+ "matching those messages in order to have events created. <b>Note (2)</b>: "
+ "If you are using the Check_MK Micro Core then this setting is deprecated. "
+ "Please use the notification plugin <i>Forward Notification to Event Console</i> instead."),
default_value = '',
),