Module: check_mk
Branch: master
Commit: c279dd9d0bd43dd6990017108dfef03e8972f630
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c279dd9d0bd43d…
Author: Sven Nierlein <sven(a)nierlein.de>
Date: Thu Mar 15 12:53:02 2012 +0100
livestatus: added event_handler to hosts table
Signed-off-by: Sven Nierlein <sven(a)nierlein.de>
---
livestatus/src/TableHosts.cc | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/livestatus/src/TableHosts.cc b/livestatus/src/TableHosts.cc
index cd9be33..525fd61 100644
--- a/livestatus/src/TableHosts.cc
+++ b/livestatus/src/TableHosts.cc
@@ -89,6 +89,8 @@ void TableHosts::addColumns(Table *table, string prefix, int
indirect_offset)
"IP address", (char *)(&hst.address) - ref,
indirect_offset));
table->addColumn(new OffsetStringColumn(prefix + "check_command",
"Nagios command for active host check of this host", (char
*)(&hst.host_check_command) - ref, indirect_offset));
+ table->addColumn(new OffsetStringColumn(prefix + "event_handler",
+ "Nagios command used as event handler", (char
*)(&hst.event_handler) - ref, indirect_offset));
table->addColumn(new OffsetStringColumn(prefix + "notification_period",
"Time period in which problems of this host will be notified. If
empty then notification will be always", (char *)(&hst.notification_period) -
ref, indirect_offset));
table->addColumn(new OffsetStringColumn(prefix + "check_period",