Module: check_mk
Branch: master
Commit: b9d59f5e3331ac572d5fd57932f74f78fda86a5e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b9d59f5e3331ac…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Fri Jun 3 13:53:38 2016 +0200
Fetched Livestatus from downstream plus associated fixes.
---
livestatus/src/Makefile.am | 1 +
livestatus/src/Store.cc | 1 +
livestatus/src/Store.h | 2 ++
livestatus/src/TableEventConsoleReplication.cc | 35 +++++++++++++++++++++
livestatus/src/TableEventConsoleReplication.h | 40 ++++++++++++++++++++++++
5 files changed, 79 insertions(+)
diff --git a/livestatus/src/Makefile.am b/livestatus/src/Makefile.am
index aa20510..90452b9 100644
--- a/livestatus/src/Makefile.am
+++ b/livestatus/src/Makefile.am
@@ -114,6 +114,7 @@ livestatus_so_SOURCES = \
TableEventConsole.cc \
TableEventConsoleEvents.cc \
TableEventConsoleHistory.cc \
+ TableEventConsoleReplication.cc \
TableEventConsoleStatus.cc \
TableHostgroups.cc \
TableHosts.cc \
diff --git a/livestatus/src/Store.cc b/livestatus/src/Store.cc
index 6100d5d..9487427 100644
--- a/livestatus/src/Store.cc
+++ b/livestatus/src/Store.cc
@@ -92,6 +92,7 @@ Store::Store()
addTable(&_table_eventconsoleevents);
addTable(&_table_eventconsolehistory);
addTable(&_table_eventconsolestatus);
+ addTable(&_table_eventconsolereplication);
g_table_hosts = &_table_hosts;
g_table_services = &_table_services;
diff --git a/livestatus/src/Store.h b/livestatus/src/Store.h
index 26f6a2c..bac7e08 100644
--- a/livestatus/src/Store.h
+++ b/livestatus/src/Store.h
@@ -40,6 +40,7 @@
#include "TableDownComm.h"
#include "TableEventConsoleEvents.h"
#include "TableEventConsoleHistory.h"
+#include "TableEventConsoleReplication.h"
#include "TableEventConsoleStatus.h"
#include "TableHostgroups.h"
#include "TableHosts.h"
@@ -90,6 +91,7 @@ private:
TableEventConsoleEvents _table_eventconsoleevents;
TableEventConsoleHistory _table_eventconsolehistory;
TableEventConsoleStatus _table_eventconsolestatus;
+ TableEventConsoleReplication _table_eventconsolereplication;
std::map<std::string, Table *> _tables;
diff --git a/livestatus/src/TableEventConsoleReplication.cc
b/livestatus/src/TableEventConsoleReplication.cc
new file mode 100644
index 0000000..4b025b0
--- /dev/null
+++ b/livestatus/src/TableEventConsoleReplication.cc
@@ -0,0 +1,35 @@
+// +------------------------------------------------------------------+
+// | ____ _ _ __ __ _ __ |
+// | / ___| |__ ___ ___| | __ | \/ | |/ / |
+// | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
+// | | |___| | | | __/ (__| < | | | | . \ |
+// | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
+// | |
+// | Copyright Mathias Kettner 2014 mk(a)mathias-kettner.de |
+// +------------------------------------------------------------------+
+//
+// This file is part of Check_MK.
+// The official homepage is at
http://mathias-kettner.de/check_mk.
+//
+// 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.
+
+#include "TableEventConsoleReplication.h"
+
+const char *TableEventConsoleReplication::name() const {
+ return "eventconsoleevents";
+}
+
+const char *TableEventConsoleReplication::namePrefix() const {
+ return "eventconsoleevents_";
+}
+
+void TableEventConsoleReplication::answerQuery(Query *query) {}
diff --git a/livestatus/src/TableEventConsoleReplication.h
b/livestatus/src/TableEventConsoleReplication.h
new file mode 100644
index 0000000..3bc6144
--- /dev/null
+++ b/livestatus/src/TableEventConsoleReplication.h
@@ -0,0 +1,40 @@
+// +------------------------------------------------------------------+
+// | ____ _ _ __ __ _ __ |
+// | / ___| |__ ___ ___| | __ | \/ | |/ / |
+// | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
+// | | |___| | | | __/ (__| < | | | | . \ |
+// | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
+// | |
+// | Copyright Mathias Kettner 2014 mk(a)mathias-kettner.de |
+// +------------------------------------------------------------------+
+//
+// This file is part of Check_MK.
+// The official homepage is at
http://mathias-kettner.de/check_mk.
+//
+// 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.
+
+#ifndef TableEventConsoleReplication_h
+#define TableEventConsoleReplication_h
+
+#include "config.h" // IWYU pragma: keep
+#include "Table.h"
+
+class TableEventConsoleReplication : public Table {
+public:
+ const char *name() const override;
+ const char *namePrefix() const override;
+ void answerQuery(Query *query) override;
+
+private:
+};
+
+#endif // TableEventConsoleReplication_h