Module: check_mk
Branch: master
Commit: da48b30e46f6da08efc00ec2cdc1b6ffb10e7f2c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=da48b30e46f6da…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Oct 5 17:57:06 2013 +0200
Livestatus: fix compatibility with CMC in statehist
---
livestatus/src/TableStateHistory.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/livestatus/src/TableStateHistory.cc b/livestatus/src/TableStateHistory.cc
index af6c2ae..4848bd5 100644
--- a/livestatus/src/TableStateHistory.cc
+++ b/livestatus/src/TableStateHistory.cc
@@ -454,8 +454,8 @@ void TableStateHistory::answerQuery(Query *query)
state->_host = entry->_host;
state->_service = entry->_service;
#ifdef CMC
- state->_host_name = entry->_host->name();
- state->_service_description = entry->_service != 0 ?
entry->_service->name() : "";
+ state->_host_name = entry->_host->_name;
+ state->_service_description = entry->_service != 0 ?
entry->_service->_name : "";
#else
state->_host_name = entry->_host->name;
state->_service_description = entry->_service != 0 ?
entry->_service->description : "";