Module: check_mk
Branch: master
Commit: 6a780bf88fabb8f950facd984303bd611f39f88e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6a780bf88fabb8…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Nov 14 10:28:31 2017 +0100
5459 FIX Disallow group-related wait objects, avoiding crashes
Using wait objects on some tables (hostsbygroup, servicesbygroup,
servicesbyhostgroup) doesn't really make sense: Hosts and services can be
part of many groups, so we would have to conjure up a random group out of
thin air. Consequently, we forbid wait objects on these tables now.
Previously, the monitoring core crashed when we would try to wait on such an
object, anyway.
Change-Id: I75308e7c43abc4550693294fae9c0948078931ff
---
.werks/5459 | 15 ++++++++++
livestatus/src/Makefile.am | 1 -
livestatus/src/TableContactGroups.cc | 4 ++-
livestatus/src/TableHostsByGroup.cc | 5 +---
livestatus/src/TableHostsByGroup.h | 6 ++--
livestatus/src/TableServices.cc | 18 ++++++++++--
livestatus/src/TableServicesByGroup.cc | 6 +---
livestatus/src/TableServicesByGroup.h | 6 ++--
livestatus/src/TableServicesByHostGroup.cc | 6 +---
livestatus/src/TableServicesByHostGroup.h | 6 ++--
livestatus/src/WorldNagios.cc | 44 ------------------------------
livestatus/src/WorldNagios.h | 34 -----------------------
12 files changed, 49 insertions(+), 102 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=6a780bf88f…