mirror of https://github.com/Icinga/icinga2.git
parent
ee37c8c68e
commit
0fc5db82dd
|
@ -176,6 +176,9 @@ void ScheduledDowntime::CreateNextDowntime()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Log(LogDebug, "ScheduledDowntime")
|
||||||
|
<< "Creating new Downtime for ScheduledDowntime \"" << GetName() << "\"";
|
||||||
|
|
||||||
std::pair<double, double> segment = FindNextSegment();
|
std::pair<double, double> segment = FindNextSegment();
|
||||||
|
|
||||||
if (segment.first == 0 && segment.second == 0) {
|
if (segment.first == 0 && segment.second == 0) {
|
||||||
|
|
|
@ -36,6 +36,10 @@ public:
|
||||||
|
|
||||||
class ScheduledDowntime : CustomVarObject < ScheduledDowntimeNameComposer
|
class ScheduledDowntime : CustomVarObject < ScheduledDowntimeNameComposer
|
||||||
{
|
{
|
||||||
|
// Scheduled Downtimes have a dependency on Downtimes. This is to make sure ScheduledDowntimes are activated after
|
||||||
|
// the Downtimes (and other checkables)
|
||||||
|
activation_priority 20;
|
||||||
|
|
||||||
load_after Host;
|
load_after Host;
|
||||||
load_after Service;
|
load_after Service;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue