Module: check_mk
Branch: master
Commit: a98f9cda36e03da4ee91baa386487a15990d54d3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a98f9cda36e03d…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Fri Apr 15 09:43:55 2016 +0200
Simplified downtime/comment handling.
Nagios has different ID namespaces for downtimes and comments, but these
namespaces contain things for both hosts and services. In other words:
Within downtimes, each downtime ID alone is a unique key, and the same holds
for comments and their commend IDs. Therefore we can remove the
host/service flag from the key in our internal data structures, making
things much clearer.
Various minor cleanups on the way.
---
livestatus/src/DownCommColumn.cc | 44 ++++++++---------
livestatus/src/DownCommColumn.h | 4 ++
livestatus/src/TableDownComm.cc | 101 ++++++++++++++++++--------------------
livestatus/src/TableDownComm.h | 21 ++++----
4 files changed, 83 insertions(+), 87 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=a98f9cda36…