Fix for livestatus icw nagios 4
Posted: Thu Nov 21, 2013 10:15 am
I got frustrated about this issue and fixed it the dirty way.
I'm not sure if this 100% works, but I do see the services and hosts in multisite.
git clone git://git.op5.org/nagios/livestatus.git
diff -Naur livestatus/src/TableHosts.cc livestatus.working/src/TableHosts.cc
--- livestatus/src/TableHosts.cc 2013-11-21 16:12:05.138951539 +0100
+++ livestatus.working/src/TableHosts.cc 2013-11-21 16:05:07.185093055 +0100
@@ -256,6 +256,9 @@
table->addColumn(new DownCommColumn(prefix + "comments_with_info",
"A list of all comments of the host with id, author and comment", indirect_offset, false, true));
+ table->addColumn(new DownCommColumn(prefix + "comments_with_extra_info",
+ "A list of all comments of the host with id, author, comment, entry type and entry time", indirect_offset, false, true));
+
table->addColumn(new CustomVarsColumn(prefix + "custom_variable_names",
"A list of the names of all custom variables", (char *)(&hst.custom_variables) - ref, indirect_offset, CVT_VARNAMES));
table->addColumn(new CustomVarsColumn(prefix + "custom_variable_values",
diff -Naur livestatus/src/TableServices.cc livestatus.working/src/TableServices.cc
--- livestatus/src/TableServices.cc 2013-11-21 16:12:05.138951539 +0100
+++ livestatus.working/src/TableServices.cc 2013-11-21 16:10:27.046093469 +0100
@@ -369,6 +369,9 @@
table->addColumn(new DownCommColumn(prefix + "comments_with_info",
"A list of all comments of the service with id, author and comment", indirect_offset, false, true));
+ table->addColumn(new DownCommColumn(prefix + "comments_with_extra_info",
+ "A list of all comments of the service with id, author, comment, entry type and entry time", indirect_offset, false, true));
+
if (add_hosts)
g_table_hosts->addColumns(this, "host_", (char *)(&svc.host_ptr) - ref);
I'm not sure if this 100% works, but I do see the services and hosts in multisite.
git clone git://git.op5.org/nagios/livestatus.git
diff -Naur livestatus/src/TableHosts.cc livestatus.working/src/TableHosts.cc
--- livestatus/src/TableHosts.cc 2013-11-21 16:12:05.138951539 +0100
+++ livestatus.working/src/TableHosts.cc 2013-11-21 16:05:07.185093055 +0100
@@ -256,6 +256,9 @@
table->addColumn(new DownCommColumn(prefix + "comments_with_info",
"A list of all comments of the host with id, author and comment", indirect_offset, false, true));
+ table->addColumn(new DownCommColumn(prefix + "comments_with_extra_info",
+ "A list of all comments of the host with id, author, comment, entry type and entry time", indirect_offset, false, true));
+
table->addColumn(new CustomVarsColumn(prefix + "custom_variable_names",
"A list of the names of all custom variables", (char *)(&hst.custom_variables) - ref, indirect_offset, CVT_VARNAMES));
table->addColumn(new CustomVarsColumn(prefix + "custom_variable_values",
diff -Naur livestatus/src/TableServices.cc livestatus.working/src/TableServices.cc
--- livestatus/src/TableServices.cc 2013-11-21 16:12:05.138951539 +0100
+++ livestatus.working/src/TableServices.cc 2013-11-21 16:10:27.046093469 +0100
@@ -369,6 +369,9 @@
table->addColumn(new DownCommColumn(prefix + "comments_with_info",
"A list of all comments of the service with id, author and comment", indirect_offset, false, true));
+ table->addColumn(new DownCommColumn(prefix + "comments_with_extra_info",
+ "A list of all comments of the service with id, author, comment, entry type and entry time", indirect_offset, false, true));
+
if (add_hosts)
g_table_hosts->addColumns(this, "host_", (char *)(&svc.host_ptr) - ref);