## Describe the bug
We have an unexpected behavior with tiemperiods exclusion…. When it comes to a day in the exclusion timeperiod, the exclusion effects also the next day
## To Reproduce
This is ouer Icinga Holiday/exclusion timeperiod
```
object TimePeriod "Feiertage" {
import "legacy-timeperiod"
display_name = "Gesetzliche Feiertage; keine Meldungen"
ranges = {
"january 1" = "00:00-24:00" //Neujahr
"january 6" = "00:00-24:00" //Heilige Drei Könige
"april 25" = "00:00-24:00" //Tag der Befreiung Italiens
"april 5" = "00:00-24:00" //Ostern
"may 1" = "00:00-24:00" //Tag der arbeiter
"june 2" = "00:00-24:00" //Tag der Republik Italien
"august 15" = "00:00-24:00" //Ferragosto
"november 1" = "00:00-24:00" //Allerheiligen
"december 8" = "00:00-24:00" //Maria Empfängnis
"december 25" = "00:00-24:00" //Weihnachten
"december 26" = "00:00-24:00" //Stephanstag
}
```
this timeperiod are excluded in ouer work day timeperiod
```
object TimePeriod "7to5" {
import "legacy-timeperiod"
display_name = "Icinga 2 7to5 TimePeriod"
excludes = [ "Feiertage" ]
ranges = {
"monday" = "07:00-17:00"
"tuesday" = "07:00-17:00"
"wednesday" = "07:00-17:00"
"thursday" = "07:00-17:00"
"friday" = "07:00-17:00"
}
}
```
if it comes to a day, in ouer exclusion timeperiod, for exemple the 25 april, the timeperiod 7to5 remains inactive, also for the 26 april the whole day. Except if I restart the Icinga service.
Here is the output of the timeperiods status, retrived with the Icinga REST API
https://localhost:5665/v1/objects/timeperiods
```
{
"results": [
{
"attrs": {
"__name": "7to22",
"active": true,
"display_name": "Icinga 2 7to22 TimePeriod",
"excludes": [
"Feiertage"
],
"ha_mode": 0,
"includes": [],
"is_inside": false,
"name": "7to22",
"original_attributes": null,
"package": "director",
"paused": false,
"prefer_includes": true,
"ranges": {
"friday": "07:00-22:00",
"monday": "07:00-22:00",
"thursday": "07:00-22:00",
"tuesday": "07:00-22:00",
"wednesday": "07:00-22:00"
},
"segments": [
{
"begin": 1619499600,
"end": 1619553600
}
],
"source_location": {
"first_column": 1,
"first_line": 65,
"last_column": 25,
"last_line": 65,
"path": "/var/lib/icinga2/api/packages/director/976217a9-344b-4408-b31a-ba7b054e0f90/zones.d/ris-global/custom-objects/templates/timeperiods.conf"
},
"templates": [
"7to22",
"legacy-timeperiod",
"legacy-timeperiod"
],
"type": "TimePeriod",
"update": {
"arguments": [
"tp",
"begin",
"end"
],
"deprecated": false,
"name": "Internal#LegacyTimePeriod",
"side_effect_free": false,
"type": "Function"
},
"valid_begin": 1619438079.284048,
"valid_end": 1619553600,
"vars": null,
"version": 0,
"zone": "ris-global"
},
"joins": {},
"meta": {},
"name": "7to22",
"type": "TimePeriod"
},
{
"attrs": {
"__name": "7to5",
"active": true,
"display_name": "Icinga 2 7to5 TimePeriod",
"excludes": [
"Feiertage"
],
"ha_mode": 0,
"includes": [],
"is_inside": false,
"name": "7to5",
"original_attributes": null,
"package": "director",
"paused": true,
"prefer_includes": true,
"ranges": {
"friday": "07:00-17:00",
"monday": "07:00-17:00",
"thursday": "07:00-17:00",
"tuesday": "07:00-17:00",
"wednesday": "07:00-17:00"
},
"segments": [
{
"begin": 1619499600,
"end": 1619535600
}
],
"source_location": {
"first_column": 1,
"first_line": 39,
"last_column": 24,
"last_line": 39,
"path": "/var/lib/icinga2/api/packages/director/976217a9-344b-4408-b31a-ba7b054e0f90/zones.d/ris-global/custom-objects/templates/timeperiods.conf"
},
"templates": [
"7to5",
"legacy-timeperiod",
"legacy-timeperiod"
],
"type": "TimePeriod",
"update": {
"arguments": [
"tp",
"begin",
"end"
],
"deprecated": false,
"name": "Internal#LegacyTimePeriod",
"side_effect_free": false,
"type": "Function"
},
"valid_begin": 1619438079.284048,
"valid_end": 1619535600,
"vars": null,
"version": 0,
"zone": "ris-global"
},
"joins": {},
"meta": {},
"name": "7to5",
"type": "TimePeriod"
},
{
"attrs": {
"__name": "TABS-Bereitschaft",
"active": true,
"display_name": "TABS-Bereitschaft TimePeriod",
"excludes": [],
"ha_mode": 0,
"includes": [],
"is_inside": false,
"name": "TABS-Bereitschaft",
"original_attributes": null,
"package": "director",
"paused": true,
"prefer_includes": true,
"ranges": {
"friday": "17:00-22:00",
"monday": "17:00-22:00",
"thursday": "17:00-22:00",
"tuesday": "17:00-22:00",
"wednesday": "17:00-22:00"
},
"segments": [
{
"begin": 1619449200,
"end": 1619467200
},
{
"begin": 1619535600,
"end": 1619553600
}
],
"source_location": {
"first_column": 1,
"first_line": 97,
"last_column": 37,
"last_line": 97,
"path": "/var/lib/icinga2/api/packages/director/976217a9-344b-4408-b31a-ba7b054e0f90/zones.d/ris-global/custom-objects/templates/timeperiods.conf"
},
"templates": [
"TABS-Bereitschaft",
"legacy-timeperiod",
"legacy-timeperiod"
],
"type": "TimePeriod",
"update": {
"arguments": [
"tp",
"begin",
"end"
],
"deprecated": false,
"name": "Internal#LegacyTimePeriod",
"side_effect_free": false,
"type": "Function"
},
"valid_begin": 1619438079.284048,
"valid_end": 1619553600,
"vars": null,
"version": 0,
"zone": "ris-global"
},
"joins": {},
"meta": {},
"name": "TABS-Bereitschaft",
"type": "TimePeriod"
},
{
"attrs": {
"__name": "never",
"active": true,
"display_name": "Icinga 2 never TimePeriod",
"excludes": [],
"ha_mode": 0,
"includes": [],
"is_inside": false,
"name": "never",
"original_attributes": null,
"package": "director",
"paused": false,
"prefer_includes": true,
"ranges": {},
"segments": [],
"source_location": {
"first_column": 1,
"first_line": 110,
"last_column": 25,
"last_line": 110,
"path": "/var/lib/icinga2/api/packages/director/976217a9-344b-4408-b31a-ba7b054e0f90/zones.d/ris-global/custom-objects/templates/timeperiods.conf"
},
"templates": [
"never",
"legacy-timeperiod",
"legacy-timeperiod"
],
"type": "TimePeriod",
"update": {
"arguments": [
"tp",
"begin",
"end"
],
"deprecated": false,
"name": "Internal#LegacyTimePeriod",
"side_effect_free": false,
"type": "Function"
},
"valid_begin": 1619438079.284048,
"valid_end": 1619528079.284048,
"vars": null,
"version": 0,
"zone": "ris-global"
},
"joins": {},
"meta": {},
"name": "never",
"type": "TimePeriod"
},
{
"attrs": {
"__name": "6to22",
"active": true,
"display_name": "Icinga 2 6to22 TimePeriod",
"excludes": [],
"ha_mode": 0,
"includes": [],
"is_inside": true,
"name": "6to22",
"original_attributes": null,
"package": "director",
"paused": true,
"prefer_includes": true,
"ranges": {
"friday": "06:00-22:00",
"monday": "06:00-22:00",
"saturday": "07:00-22:00",
"sunday": "07:00-22:00",
"thursday": "06:00-22:00",
"tuesday": "06:00-22:00",
"wednesday": "06:00-22:00"
},
"segments": [
{
"begin": 1619409600,
"end": 1619467200
},
{
"begin": 1619496000,
"end": 1619553600
}
],
"source_location": {
"first_column": 1,
"first_line": 81,
"last_column": 25,
"last_line": 81,
"path": "/var/lib/icinga2/api/packages/director/976217a9-344b-4408-b31a-ba7b054e0f90/zones.d/ris-global/custom-objects/templates/timeperiods.conf"
},
"templates": [
"6to22",
"legacy-timeperiod",
"legacy-timeperiod"
],
"type": "TimePeriod",
"update": {
"arguments": [
"tp",
"begin",
"end"
],
"deprecated": false,
"name": "Internal#LegacyTimePeriod",
"side_effect_free": false,
"type": "Function"
},
"valid_begin": 1619438079.284048,
"valid_end": 1619553600,
"vars": null,
"version": 0,
"zone": "ris-global"
},
"joins": {},
"meta": {},
"name": "6to22",
"type": "TimePeriod"
},
{
"attrs": {
"__name": "Feiertage",
"active": true,
"display_name": "Gesetzliche Feiertage; keine Meldungen",
"excludes": [],
"ha_mode": 0,
"includes": [],
"is_inside": false,
"name": "Feiertage",
"original_attributes": null,
"package": "director",
"paused": false,
"prefer_includes": true,
"ranges": {
"april 25": "00:00-24:00",
"april 5": "00:00-24:00",
"august 15": "00:00-24:00",
"december 25": "00:00-24:00",
"december 26": "00:00-24:00",
"december 8": "00:00-24:00",
"january 1": "00:00-24:00",
"january 6": "00:00-24:00",
"june 2": "00:00-24:00",
"may 1": "00:00-24:00",
"november 1": "00:00-24:00"
},
"segments": [],
"source_location": {
"first_column": 1,
"first_line": 118,
"last_column": 29,
"last_line": 118,
"path": "/var/lib/icinga2/api/packages/director/976217a9-344b-4408-b31a-ba7b054e0f90/zones.d/ris-global/custom-objects/templates/timeperiods.conf"
},
"templates": [
"Feiertage",
"legacy-timeperiod",
"legacy-timeperiod"
],
"type": "TimePeriod",
"update": {
"arguments": [
"tp",
"begin",
"end"
],
"deprecated": false,
"name": "Internal#LegacyTimePeriod",
"side_effect_free": false,
"type": "Function"
},
"valid_begin": 1619438079.284048,
"valid_end": 1619528079.284048,
"vars": null,
"version": 0,
"zone": "ris-global"
},
"joins": {},
"meta": {},
"name": "Feiertage",
"type": "TimePeriod"
},
{
"attrs": {
"__name": "24x7",
"active": true,
"display_name": "Icinga 2 24x7 TimePeriod",
"excludes": [],
"ha_mode": 0,
"includes": [],
"is_inside": true,
"name": "24x7",
"original_attributes": null,
"package": "director",
"paused": true,
"prefer_includes": true,
"ranges": {
"friday": "00:00-24:00",
"monday": "00:00-24:00",
"saturday": "00:00-24:00",
"sunday": "00:00-24:00",
"thursday": "00:00-24:00",
"tuesday": "00:00-24:00",
"wednesday": "00:00-24:00"
},
"segments": [
{
"begin": 1619388000,
"end": 1619560800
}
],
"source_location": {
"first_column": 1,
"first_line": 8,
"last_column": 24,
"last_line": 8,
"path": "/var/lib/icinga2/api/packages/director/976217a9-344b-4408-b31a-ba7b054e0f90/zones.d/ris-global/custom-objects/templates/timeperiods.conf"
},
"templates": [
"24x7",
"legacy-timeperiod",
"legacy-timeperiod"
],
"type": "TimePeriod",
"update": {
"arguments": [
"tp",
"begin",
"end"
],
"deprecated": false,
"name": "Internal#LegacyTimePeriod",
"side_effect_free": false,
"type": "Function"
},
"valid_begin": 1619438079.284048,
"valid_end": 1619560800,
"vars": null,
"version": 0,
"zone": "ris-global"
},
"joins": {},
"meta": {},
"name": "24x7",
"type": "TimePeriod"
},
{
"attrs": {
"__name": "non-wrk-houers",
"active": true,
"display_name": "Icinga 2 Non Work Houers TimePeriod",
"excludes": [
"7to5"
],
"ha_mode": 0,
"includes": [
"24x7"
],
"is_inside": true,
"name": "non-wrk-houers",
"original_attributes": null,
"package": "director",
"paused": true,
"prefer_includes": false,
"ranges": null,
"segments": [
{
"begin": 1619388000,
"end": 1619499600
},
{
"begin": 1619535600,
"end": 1619560800
}
],
"source_location": {
"first_column": 1,
"first_line": 55,
"last_column": 34,
"last_line": 55,
"path": "/var/lib/icinga2/api/packages/director/976217a9-344b-4408-b31a-ba7b054e0f90/zones.d/ris-global/custom-objects/templates/timeperiods.conf"
},
"templates": [
"non-wrk-houers",
"legacy-timeperiod",
"legacy-timeperiod"
],
"type": "TimePeriod",
"update": {
"arguments": [
"tp",
"begin",
"end"
],
"deprecated": false,
"name": "Internal#LegacyTimePeriod",
"side_effect_free": false,
"type": "Function"
},
"valid_begin": 1619438079.284048,
"valid_end": 1619560800,
"vars": null,
"version": 0,
"zone": "ris-global"
},
"joins": {},
"meta": {},
"name": "non-wrk-houers",
"type": "TimePeriod"
},
{
"attrs": {
"__name": "9to5",
"active": true,
"display_name": "Icinga 2 9to5 TimePeriod",
"excludes": [
"Feiertage"
],
"ha_mode": 0,
"includes": [],
"is_inside": false,
"name": "9to5",
"original_attributes": null,
"package": "director",
"paused": true,
"prefer_includes": true,
"ranges": {
"friday": "09:00-17:00",
"monday": "09:00-17:00",
"thursday": "09:00-17:00",
"tuesday": "09:00-17:00",
"wednesday": "09:00-17:00"
},
"segments": [
{
"begin": 1619506800,
"end": 1619535600
}
],
"source_location": {
"first_column": 1,
"first_line": 23,
"last_column": 24,
"last_line": 23,
"path": "/var/lib/icinga2/api/packages/director/976217a9-344b-4408-b31a-ba7b054e0f90/zones.d/ris-global/custom-objects/templates/timeperiods.conf"
},
"templates": [
"9to5",
"legacy-timeperiod",
"legacy-timeperiod"
],
"type": "TimePeriod",
"update": {
"arguments": [
"tp",
"begin",
"end"
],
"deprecated": false,
"name": "Internal#LegacyTimePeriod",
"side_effect_free": false,
"type": "Function"
},
"valid_begin": 1619438079.284048,
"valid_end": 1619535600,
"vars": null,
"version": 0,
"zone": "ris-global"
},
"joins": {},
"meta": {},
"name": "9to5",
"type": "TimePeriod"
}
]
}
```
Here we can see, that for the timeperiod 7to5 is_inside": false"
After the restart of the Icinga service, the 7to5 returns to is_inside": true"
```
{
"results": [
{
"attrs": {
"__name": "TABS-Bereitschaft",
"active": true,
"display_name": "TABS-Bereitschaft TimePeriod",
"excludes": [],
"ha_mode": 0,
"includes": [],
"is_inside": false,
"name": "TABS-Bereitschaft",
"original_attributes": null,
"package": "director",
"paused": true,
"prefer_includes": true,
"ranges": {
"friday": "17:00-22:00",
"monday": "17:00-22:00",
"thursday": "17:00-22:00",
"tuesday": "17:00-22:00",
"wednesday": "17:00-22:00"
},
"segments": [
{
"begin": 1619449200,
"end": 1619467200
},
{
"begin": 1619535600,
"end": 1619553600
}
],
"source_location": {
"first_column": 1,
"first_line": 97,
"last_column": 37,
"last_line": 97,
"path": "/var/lib/icinga2/api/packages/director/9aff8467-3c4e-4d7b-8737-21f553e9b553/zones.d/ris-global/custom-objects/templates/timeperiods.conf"
},
"templates": [
"TABS-Bereitschaft",
"legacy-timeperiod",
"legacy-timeperiod"
],
"type": "TimePeriod",
"update": {
"arguments": [
"tp",
"begin",
"end"
],
"deprecated": false,
"name": "Internal#LegacyTimePeriod",
"side_effect_free": false,
"type": "Function"
},
"valid_begin": 1619438679.288072,
"valid_end": 1619553600,
"vars": null,
"version": 0,
"zone": "ris-global"
},
"joins": {},
"meta": {},
"name": "TABS-Bereitschaft",
"type": "TimePeriod"
},
{
"attrs": {
"__name": "7to5",
"active": true,
"display_name": "Icinga 2 7to5 TimePeriod",
"excludes": [
"Feiertage"
],
"ha_mode": 0,
"includes": [],
"is_inside": true,
"name": "7to5",
"original_attributes": null,
"package": "director",
"paused": true,
"prefer_includes": true,
"ranges": {
"friday": "07:00-17:00",
"monday": "07:00-17:00",
"thursday": "07:00-17:00",
"tuesday": "07:00-17:00",
"wednesday": "07:00-17:00"
},
"segments": [
{
"begin": 1619413200,
"end": 1619449200
},
{
"begin": 1619499600,
"end": 1619535600
}
],
"source_location": {
"first_column": 1,
"first_line": 39,
"last_column": 24,
"last_line": 39,
"path": "/var/lib/icinga2/api/packages/director/9aff8467-3c4e-4d7b-8737-21f553e9b553/zones.d/ris-global/custom-objects/templates/timeperiods.conf"
},
"templates": [
"7to5",
"legacy-timeperiod",
"legacy-timeperiod"
],
"type": "TimePeriod",
"update": {
"arguments": [
"tp",
"begin",
"end"
],
"deprecated": false,
"name": "Internal#LegacyTimePeriod",
"side_effect_free": false,
"type": "Function"
},
"valid_begin": 1619413200,
"valid_end": 1619535600,
"vars": null,
"version": 0,
"zone": "ris-global"
},
"joins": {},
"meta": {},
"name": "7to5",
"type": "TimePeriod"
},
{
"attrs": {
"__name": "7to22",
"active": true,
"display_name": "Icinga 2 7to22 TimePeriod",
"excludes": [
"Feiertage"
],
"ha_mode": 0,
"includes": [],
"is_inside": true,
"name": "7to22",
"original_attributes": null,
"package": "director",
"paused": false,
"prefer_includes": true,
"ranges": {
"friday": "07:00-22:00",
"monday": "07:00-22:00",
"thursday": "07:00-22:00",
"tuesday": "07:00-22:00",
"wednesday": "07:00-22:00"
},
"segments": [
{
"begin": 1619413200,
"end": 1619467200
},
{
"begin": 1619499600,
"end": 1619553600
}
],
"source_location": {
"first_column": 1,
"first_line": 65,
"last_column": 25,
"last_line": 65,
"path": "/var/lib/icinga2/api/packages/director/9aff8467-3c4e-4d7b-8737-21f553e9b553/zones.d/ris-global/custom-objects/templates/timeperiods.conf"
},
"templates": [
"7to22",
"legacy-timeperiod",
"legacy-timeperiod"
],
"type": "TimePeriod",
"update": {
"arguments": [
"tp",
"begin",
"end"
],
"deprecated": false,
"name": "Internal#LegacyTimePeriod",
"side_effect_free": false,
"type": "Function"
},
"valid_begin": 1619413200,
"valid_end": 1619553600,
"vars": null,
"version": 0,
"zone": "ris-global"
},
"joins": {},
"meta": {},
"name": "7to22",
"type": "TimePeriod"
},
{
"attrs": {
"__name": "never",
"active": true,
"display_name": "Icinga 2 never TimePeriod",
"excludes": [],
"ha_mode": 0,
"includes": [],
"is_inside": false,
"name": "never",
"original_attributes": null,
"package": "director",
"paused": false,
"prefer_includes": true,
"ranges": {},
"segments": [],
"source_location": {
"first_column": 1,
"first_line": 110,
"last_column": 25,
"last_line": 110,
"path": "/var/lib/icinga2/api/packages/director/9aff8467-3c4e-4d7b-8737-21f553e9b553/zones.d/ris-global/custom-objects/templates/timeperiods.conf"
},
"templates": [
"never",
"legacy-timeperiod",
"legacy-timeperiod"
],
"type": "TimePeriod",
"update": {
"arguments": [
"tp",
"begin",
"end"
],
"deprecated": false,
"name": "Internal#LegacyTimePeriod",
"side_effect_free": false,
"type": "Function"
},
"valid_begin": 1619438679.288072,
"valid_end": 1619528706.79531,
"vars": null,
"version": 0,
"zone": "ris-global"
},
"joins": {},
"meta": {},
"name": "never",
"type": "TimePeriod"
},
{
"attrs": {
"__name": "24x7",
"active": true,
"display_name": "Icinga 2 24x7 TimePeriod",
"excludes": [],
"ha_mode": 0,
"includes": [],
"is_inside": true,
"name": "24x7",
"original_attributes": null,
"package": "director",
"paused": true,
"prefer_includes": true,
"ranges": {
"friday": "00:00-24:00",
"monday": "00:00-24:00",
"saturday": "00:00-24:00",
"sunday": "00:00-24:00",
"thursday": "00:00-24:00",
"tuesday": "00:00-24:00",
"wednesday": "00:00-24:00"
},
"segments": [
{
"begin": 1619388000,
"end": 1619560800
}
],
"source_location": {
"first_column": 1,
"first_line": 8,
"last_column": 24,
"last_line": 8,
"path": "/var/lib/icinga2/api/packages/director/9aff8467-3c4e-4d7b-8737-21f553e9b553/zones.d/ris-global/custom-objects/templates/timeperiods.conf"
},
"templates": [
"24x7",
"legacy-timeperiod",
"legacy-timeperiod"
],
"type": "TimePeriod",
"update": {
"arguments": [
"tp",
"begin",
"end"
],
"deprecated": false,
"name": "Internal#LegacyTimePeriod",
"side_effect_free": false,
"type": "Function"
},
"valid_begin": 1619388000,
"valid_end": 1619560800,
"vars": null,
"version": 0,
"zone": "ris-global"
},
"joins": {},
"meta": {},
"name": "24x7",
"type": "TimePeriod"
},
{
"attrs": {
"__name": "non-wrk-houers",
"active": true,
"display_name": "Icinga 2 Non Work Houers TimePeriod",
"excludes": [
"7to5"
],
"ha_mode": 0,
"includes": [
"24x7"
],
"is_inside": false,
"name": "non-wrk-houers",
"original_attributes": null,
"package": "director",
"paused": true,
"prefer_includes": false,
"ranges": null,
"segments": [
{
"begin": 1619388000,
"end": 1619413200
},
{
"begin": 1619449200,
"end": 1619499600
},
{
"begin": 1619535600,
"end": 1619560800
}
],
"source_location": {
"first_column": 1,
"first_line": 55,
"last_column": 34,
"last_line": 55,
"path": "/var/lib/icinga2/api/packages/director/9aff8467-3c4e-4d7b-8737-21f553e9b553/zones.d/ris-global/custom-objects/templates/timeperiods.conf"
},
"templates": [
"non-wrk-houers",
"legacy-timeperiod",
"legacy-timeperiod"
],
"type": "TimePeriod",
"update": {
"arguments": [
"tp",
"begin",
"end"
],
"deprecated": false,
"name": "Internal#LegacyTimePeriod",
"side_effect_free": false,
"type": "Function"
},
"valid_begin": 1619388000,
"valid_end": 1619560800,
"vars": null,
"version": 0,
"zone": "ris-global"
},
"joins": {},
"meta": {},
"name": "non-wrk-houers",
"type": "TimePeriod"
},
{
"attrs": {
"__name": "6to22",
"active": true,
"display_name": "Icinga 2 6to22 TimePeriod",
"excludes": [],
"ha_mode": 0,
"includes": [],
"is_inside": true,
"name": "6to22",
"original_attributes": null,
"package": "director",
"paused": true,
"prefer_includes": true,
"ranges": {
"friday": "06:00-22:00",
"monday": "06:00-22:00",
"saturday": "07:00-22:00",
"sunday": "07:00-22:00",
"thursday": "06:00-22:00",
"tuesday": "06:00-22:00",
"wednesday": "06:00-22:00"
},
"segments": [
{
"begin": 1619409600,
"end": 1619467200
},
{
"begin": 1619496000,
"end": 1619553600
}
],
"source_location": {
"first_column": 1,
"first_line": 81,
"last_column": 25,
"last_line": 81,
"path": "/var/lib/icinga2/api/packages/director/9aff8467-3c4e-4d7b-8737-21f553e9b553/zones.d/ris-global/custom-objects/templates/timeperiods.conf"
},
"templates": [
"6to22",
"legacy-timeperiod",
"legacy-timeperiod"
],
"type": "TimePeriod",
"update": {
"arguments": [
"tp",
"begin",
"end"
],
"deprecated": false,
"name": "Internal#LegacyTimePeriod",
"side_effect_free": false,
"type": "Function"
},
"valid_begin": 1619409600,
"valid_end": 1619553600,
"vars": null,
"version": 0,
"zone": "ris-global"
},
"joins": {},
"meta": {},
"name": "6to22",
"type": "TimePeriod"
},
{
"attrs": {
"__name": "9to5",
"active": true,
"display_name": "Icinga 2 9to5 TimePeriod",
"excludes": [
"Feiertage"
],
"ha_mode": 0,
"includes": [],
"is_inside": true,
"name": "9to5",
"original_attributes": null,
"package": "director",
"paused": true,
"prefer_includes": true,
"ranges": {
"friday": "09:00-17:00",
"monday": "09:00-17:00",
"thursday": "09:00-17:00",
"tuesday": "09:00-17:00",
"wednesday": "09:00-17:00"
},
"segments": [
{
"begin": 1619420400,
"end": 1619449200
},
{
"begin": 1619506800,
"end": 1619535600
}
],
"source_location": {
"first_column": 1,
"first_line": 23,
"last_column": 24,
"last_line": 23,
"path": "/var/lib/icinga2/api/packages/director/9aff8467-3c4e-4d7b-8737-21f553e9b553/zones.d/ris-global/custom-objects/templates/timeperiods.conf"
},
"templates": [
"9to5",
"legacy-timeperiod",
"legacy-timeperiod"
],
"type": "TimePeriod",
"update": {
"arguments": [
"tp",
"begin",
"end"
],
"deprecated": false,
"name": "Internal#LegacyTimePeriod",
"side_effect_free": false,
"type": "Function"
},
"valid_begin": 1619420400,
"valid_end": 1619535600,
"vars": null,
"version": 0,
"zone": "ris-global"
},
"joins": {},
"meta": {},
"name": "9to5",
"type": "TimePeriod"
},
{
"attrs": {
"__name": "Feiertage",
"active": true,
"display_name": "Gesetzliche Feiertage; keine Meldungen",
"excludes": [],
"ha_mode": 0,
"includes": [],
"is_inside": false,
"name": "Feiertage",
"original_attributes": null,
"package": "director",
"paused": false,
"prefer_includes": true,
"ranges": {
"april 25": "00:00-24:00",
"april 5": "00:00-24:00",
"august 15": "00:00-24:00",
"december 25": "00:00-24:00",
"december 26": "00:00-24:00",
"december 8": "00:00-24:00",
"january 1": "00:00-24:00",
"january 6": "00:00-24:00",
"june 2": "00:00-24:00",
"may 1": "00:00-24:00",
"november 1": "00:00-24:00"
},
"segments": [],
"source_location": {
"first_column": 1,
"first_line": 118,
"last_column": 29,
"last_line": 118,
"path": "/var/lib/icinga2/api/packages/director/9aff8467-3c4e-4d7b-8737-21f553e9b553/zones.d/ris-global/custom-objects/templates/timeperiods.conf"
},
"templates": [
"Feiertage",
"legacy-timeperiod",
"legacy-timeperiod"
],
"type": "TimePeriod",
"update": {
"arguments": [
"tp",
"begin",
"end"
],
"deprecated": false,
"name": "Internal#LegacyTimePeriod",
"side_effect_free": false,
"type": "Function"
},
"valid_begin": 1619438679.288072,
"valid_end": 1619528706.796931,
"vars": null,
"version": 0,
"zone": "ris-global"
},
"joins": {},
"meta": {},
"name": "Feiertage",
"type": "TimePeriod"
}
]
}
```
for completition, her is the content, of ouer timeperiods.conf file
```
/**
* Sample timeperiods for Icinga 2 requiring
* 'legacy-timeperiod' template from the Icinga
* Template Library (ITL).
* Check the documentation for details.
*/
object TimePeriod "24x7" {
import "legacy-timeperiod"
display_name = "Icinga 2 24x7 TimePeriod"
ranges = {
"monday" = "00:00-24:00"
"tuesday" = "00:00-24:00"
"wednesday" = "00:00-24:00"
"thursday" = "00:00-24:00"
"friday" = "00:00-24:00"
"saturday" = "00:00-24:00"
"sunday" = "00:00-24:00"
}
}
object TimePeriod "9to5" {
import "legacy-timeperiod"
display_name = "Icinga 2 9to5 TimePeriod"
excludes = [ "Feiertage" ]
ranges = {
"monday" = "09:00-17:00"
"tuesday" = "09:00-17:00"
"wednesday" = "09:00-17:00"
"thursday" = "09:00-17:00"
"friday" = "09:00-17:00"
}
}
object TimePeriod "7to5" {
import "legacy-timeperiod"
display_name = "Icinga 2 7to5 TimePeriod"
excludes = [ "Feiertage" ]
ranges = {
"monday" = "07:00-17:00"
"tuesday" = "07:00-17:00"
"wednesday" = "07:00-17:00"
"thursday" = "07:00-17:00"
"friday" = "07:00-17:00"
}
}
object TimePeriod "non-wrk-houers" {
import "legacy-timeperiod"
display_name = "Icinga 2 Non Work Houers TimePeriod"
includes = [ "24x7" ]
excludes = [ "7to5" ]
prefer_includes = false
}
object TimePeriod "7to22" {
import "legacy-timeperiod"
display_name = "Icinga 2 7to22 TimePeriod"
excludes = [ "Feiertage" ]
ranges = {
"monday" = "07:00-22:00"
"tuesday" = "07:00-22:00"
"wednesday" = "07:00-22:00"
"thursday" = "07:00-22:00"
"friday" = "07:00-22:00"
}
}
object TimePeriod "6to22" {
import "legacy-timeperiod"
display_name = "Icinga 2 6to22 TimePeriod"
ranges = {
"monday" = "06:00-22:00"
"tuesday" = "06:00-22:00"
"wednesday" = "06:00-22:00"
"thursday" = "06:00-22:00"
"friday" = "06:00-22:00"
"saturday" = "07:00-22:00"
"sunday" = "07:00-22:00"
}
}
object TimePeriod "TABS-Bereitschaft" {
import "legacy-timeperiod"
display_name = "TABS-Bereitschaft TimePeriod"
ranges = {
"monday" = "17:00-22:00"
"tuesday" = "17:00-22:00"
"wednesday" = "17:00-22:00"
"thursday" = "17:00-22:00"
"friday" = "17:00-22:00"
}
}
object TimePeriod "never" {
import "legacy-timeperiod"
display_name = "Icinga 2 never TimePeriod"
ranges = {
}
}
object TimePeriod "Feiertage" {
import "legacy-timeperiod"
display_name = "Gesetzliche Feiertage; keine Meldungen"
ranges = {
"january 1" = "00:00-24:00" //Neujahr
"january 6" = "00:00-24:00" //Heilige Drei Könige
"april 25" = "00:00-24:00" //Tag der Befreiung Italiens
"april 5" = "00:00-24:00" //Ostern
"may 1" = "00:00-24:00" //Tag der arbeiter
"june 2" = "00:00-24:00" //Tag der Republik Italien
"august 15" = "00:00-24:00" //Ferragosto
"november 1" = "00:00-24:00" //Allerheiligen
"december 8" = "00:00-24:00" //Maria Empfängnis
"december 25" = "00:00-24:00" //Weihnachten
"december 26" = "00:00-24:00" //Stephanstag
}
}
```
## Your Environment
* Version used (`icinga2 --version`): **version: 2.12.3**
* Operating System and version: **Red Hat Enterprise Linux Server release 7.9 (Maipo)**
* Enabled features (`icinga2 feature list`): ***Enabled features: api checker ido-mysql mainlog notification perfdata***
* Icinga Web 2 version and modules (System - About): ***2.8.2***
* Config validation (`icinga2 daemon -C`):
```
[2021-04-27 11:45:19 +0200] information/cli: Icinga application loader (version: 2.12.3)
[2021-04-27 11:45:19 +0200] information/cli: Loading configuration file(s).
[2021-04-27 11:45:20 +0200] information/ConfigItem: Committing config item(s).
[2021-04-27 11:45:20 +0200] information/ApiListener: My API identity: icingam01-p.ad.raiffeisen.it
[2021-04-27 11:45:30 +0200] information/WorkQueue: #4 (DaemonUtility::LoadConfigFiles) items: 0, rate: 23.75/s (1425/min 1425/5min 1425/15min);
[2021-04-27 11:45:30 +0200] information/WorkQueue: #6 (ApiListener, RelayQueue) items: 0, rate: 0/s (0/min 0/5min 0/15min);
[2021-04-27 11:45:30 +0200] information/WorkQueue: #7 (ApiListener, SyncQueue) items: 0, rate: 0/s (0/min 0/5min 0/15min);
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'disable-nsclient-service-checks' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/ris-global/custom-objects/services/dependencies.conf: 23:1-23:61) for type 'Dependency' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'disable-esx-alarms-vcenter2-c' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/ris-global/custom-objects/services/dependencies.conf: 187:1-187:59) for type 'Dependency' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'disable-vsan-cluster-n4' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/ris-global/custom-objects/services/dependencies.conf: 212:1-212:53) for type 'Dependency' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'disable-vsan-cluster-vdia' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/ris-global/custom-objects/services/dependencies.conf: 224:1-224:55) for type 'Dependency' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'call-to-host-' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/master/custom-objects/notifications/call_ris-produktion.conf: 12:1-12:91) for type 'Notification' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'call-to-cto-host-work-hours' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/master/custom-objects/notifications/call_ris-produktion.conf: 31:1-31:56) for type 'Notification' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'mail-to-ris-dba' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/master/custom-objects/notifications/mail_ris-ssm.conf: 15:1-15:47) for type 'Notification' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'sms-to-dns-admin-service' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/master/custom-objects/notifications/sms_ris-plattformen.conf: 52:1-52:56) for type 'Notification' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'sms-datacenter-dr-10m_delay-host' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/master/custom-objects/notifications/sms_ris-produktion.conf: 29:1-29:61) for type 'Notification' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'sms-to-utscb' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/master/custom-objects/notifications/sms_ris-produktion.conf: 82:1-82:44) for type 'Notification' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'sms-test-to-unarm' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/master/custom-objects/notifications/sms_ris-produktion.conf: 96:1-96:49) for type 'Notification' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'sms-to-wdl-host' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/master/custom-objects/notifications/sms_wdl.conf: 1:0-1:43) for type 'Notification' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'sms-to-wdl-service' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/master/custom-objects/notifications/sms_wdl.conf: 12:1-12:50) for type 'Notification' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'vmware-cluster-clu-ast-downtime' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/ris-global/custom-objects/downtimes/downtimes.conf: 13:1-13:68) for type 'ScheduledDowntime' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'http-rcard' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/service_apply.conf: 52:1-52:26) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'http-portal-menu' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/service_apply.conf: 64:1-64:32) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'AX32Serv-service' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/service_apply.conf: 141:1-141:32) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'AOS-service' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/service_apply.conf: 153:1-153:27) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'ReportServer-AX-service' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/service_apply.conf: 165:1-165:39) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'ReportServer-BI-service' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/service_apply.conf: 177:1-177:39) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'ETLJob-Status' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/service_apply.conf: 189:1-189:29) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'SQLJob-Status' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/service_apply.conf: 202:1-202:29) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'SQLPerformanceCounter' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/service_apply.conf: 214:1-214:37) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'balancer-port' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/service_apply.conf: 396:1-396:29) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule '' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/service_apply.conf: 430:1-430:56) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'solaris-global-fs-assimoco' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/service_apply.conf: 535:1-535:42) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'ac-hiross' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/service_apply.conf: 556:1-556:25) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'fireeye-activevms' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/service_apply.conf: 579:1-579:33) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'rdp-status' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/service_apply.conf: 729:1-729:26) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'd3-web' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/service_apply.conf: 784:1-784:22) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'timeweb' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/service_apply.conf: 829:1-829:23) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule '' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/service_apply.conf: 942:1-942:62) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'ReportServer$AX2012' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/service_apply.conf: 1006:1-1006:35) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'ReportServer$BI_PROD' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/service_apply.conf: 1017:1-1017:36) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'BI Job Status' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/service_apply.conf: 1159:1-1159:29) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'apache-status' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 434:1-434:29) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'arx3200-retransmission_delay' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 628:1-628:44) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'arx3200-server_response_time' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 646:1-646:44) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'arx3200-user_response_time' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 664:1-664:42) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'assisini3-webserver' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 700:1-700:35) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'assisini3-connectdb' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 712:1-712:35) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'am-eloam-status' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 1026:1-1026:31) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'dm-rvs-status' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 1040:1-1040:29) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'ix-rvs-dbstatus' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 1054:1-1054:31) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'https-status-elobase' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 1065:1-1065:36) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'https-cert-expiration-elobase' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 1076:1-1076:45) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'ix-rvs-status-9091' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 1130:1-1130:34) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'ix-rvs-status-9092' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 1146:1-1146:34) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'ix-rvs-dbstatus-9091' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 1162:1-1162:36) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'ix-rvs-dbstatus-9092' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 1174:1-1174:36) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'dm-rvstest-status' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 1192:1-1192:33) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'ft-rvstest-status' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 1206:1-1206:33) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'is-rvstest-status' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 1220:1-1220:33) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'ix-rvstest-status' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 1234:1-1234:33) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'sx-rvstest-status' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 1248:1-1248:33) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'tr-rvstest-status' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 1262:1-1262:33) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'am-eloam-status' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 1276:1-1276:31) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'muleesb-pec-manager-wsdl' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 1420:1-1420:40) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'hp-procurve-status' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 1729:1-1729:34) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'hp-procurve-cpu' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 1740:1-1740:31) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'hp-procurve-mem' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 1756:1-1756:31) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'klima-status-all' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 1893:1-1893:32) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'rvs-klima-temp' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 1904:1-1904:30) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'ups-health' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 1989:1-1989:26) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'ups-battery-status' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 2003:1-2003:34) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'esx-multipath' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 2600:1-2600:29) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'esx-alarms' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 2612:1-2612:26) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'esx-health' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 2624:1-2624:26) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'esx-readytime' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 2638:1-2638:29) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'esx-cpu-usage' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 2652:1-2652:29) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'esx-mem-usage' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 2666:1-2666:29) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'esx-services' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 2680:1-2680:28) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'esx-service-DCUI' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 2691:1-2691:32) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'esx-service-ntpd' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 2703:1-2703:32) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'esx-service-vpxa' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 2715:1-2715:32) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'VSAN Health online' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 3311:1-3311:34) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'VSAN Health build' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 3326:1-3326:33) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'VSAN Health network' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 3340:1-3340:35) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'VSAN Health physical' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 3355:1-3355:36) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'VSAN Health data' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 3369:1-3369:32) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'VSAN Health cluster' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 3384:1-3384:35) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'VSAN Health limits' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 3398:1-3398:34) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'VSAN Health hardware' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 3412:1-3412:36) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'VSAN Health performance' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 3426:1-3426:39) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'CPU Usage' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 3851:1-3851:25) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'Disks' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 3859:1-3859:21) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'Memory' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 3867:1-3867:22) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'Event Log' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 3875:1-3875:25) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'Services' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 3883:1-3883:24) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] warning/ApplyRule: Apply rule 'Ris Process' (in /var/lib/icinga2/api/packages/director/400c8f3c-2c62-49ab-92a5-ecec2fa62ec7/zones.d/director-global/servicesets.conf: 3891:1-3891:27) for type 'Service' does not match anywhere!
[2021-04-27 11:45:32 +0200] information/ConfigItem: Instantiated 1 NotificationComponent.
[2021-04-27 11:45:32 +0200] information/ConfigItem: Instantiated 1320 Hosts.
[2021-04-27 11:45:32 +0200] information/ConfigItem: Instantiated 822 Downtimes.
[2021-04-27 11:45:32 +0200] information/ConfigItem: Instantiated 13 NotificationCommands.
[2021-04-27 11:45:32 +0200] information/ConfigItem: Instantiated 1 FileLogger.
[2021-04-27 11:45:32 +0200] information/ConfigItem: Instantiated 101 Comments.
[2021-04-27 11:45:32 +0200] information/ConfigItem: Instantiated 20823 Notifications.
[2021-04-27 11:45:32 +0200] information/ConfigItem: Instantiated 1 IcingaApplication.
[2021-04-27 11:45:32 +0200] information/ConfigItem: Instantiated 46 HostGroups.
[2021-04-27 11:45:32 +0200] information/ConfigItem: Instantiated 1 PerfdataWriter.
[2021-04-27 11:45:32 +0200] information/ConfigItem: Instantiated 4181 Dependencies.
[2021-04-27 11:45:32 +0200] information/ConfigItem: Instantiated 1 CheckerComponent.
[2021-04-27 11:45:32 +0200] information/ConfigItem: Instantiated 5 Zones.
[2021-04-27 11:45:32 +0200] information/ConfigItem: Instantiated 5 Endpoints.
[2021-04-27 11:45:32 +0200] information/ConfigItem: Instantiated 1 IdoMysqlConnection.
[2021-04-27 11:45:32 +0200] information/ConfigItem: Instantiated 4 ApiUsers.
[2021-04-27 11:45:32 +0200] information/ConfigItem: Instantiated 1 ApiListener.
[2021-04-27 11:45:32 +0200] information/ConfigItem: Instantiated 398 CheckCommands.
[2021-04-27 11:45:32 +0200] information/ConfigItem: Instantiated 9 TimePeriods.
[2021-04-27 11:45:32 +0200] information/ConfigItem: Instantiated 3 UserGroups.
[2021-04-27 11:45:32 +0200] information/ConfigItem: Instantiated 51 Users.
[2021-04-27 11:45:32 +0200] information/ConfigItem: Instantiated 10734 Services.
[2021-04-27 11:45:32 +0200] information/ConfigItem: Instantiated 20 ServiceGroups.
[2021-04-27 11:45:32 +0200] information/ConfigItem: Instantiated 1 ScheduledDowntime.
[2021-04-27 11:45:34 +0200] information/ScriptGlobal: Dumping variables to file '/var/cache/icinga2/icinga2.vars'
[2021-04-27 11:45:34 +0200] information/cli: Finished validating the configuration file(s).
```
* If you run multiple Icinga 2 instances, the `zones.conf` file (or `icinga2 object list --type Endpoint` and `icinga2 object list --type Zone`) from all affected nodes.
***Icinga Master 1 (icingam01-p)***
```
object Zone "director-global" {
global = true
}
object Zone "ris-global" {
global = true
}
object Endpoint "icingam01-p.ad.raiffeisen.it" {
host = "icingam01-p.ad.raiffeisen.it"
}
object Endpoint "icingam02-p.ad.raiffeisen.it" {
host = "icingam02-p.ad.raiffeisen.it"
}
object Zone "master" {
endpoints = [ "icingam01-p.ad.raiffeisen.it", "icingam02-p.ad.raiffeisen.it" ]
}
object Endpoint "icingas01-p.ad.raiffeisen.it" {
host = "icingas01-p.ad.raiffeisen.it"
log_duration = 0
}
object Endpoint "icingas02-p.ad.raiffeisen.it" {
host = "icingas02-p.ad.raiffeisen.it"
log_duration = 0
}
object Zone "production" {
endpoints = [ "icingas01-p.ad.raiffeisen.it", "icingas02-p.ad.raiffeisen.it" ]
parent = "master"
}
object Endpoint "icingas09-p.ad.raiffeisen.it" {
host = "icingas09-p.ad.raiffeisen.it"
log_duration = 0
}
object Zone "test" {
endpoints = [ "icingas09-p.ad.raiffeisen.it" ]
parent = "master"
}
```
***Icinga Master 2 (icingam02-p)***
```
object Zone "director-global" {
global = true
}
object Zone "ris-global" {
global = true
}
object Endpoint "icingam01-p.ad.raiffeisen.it" {
host = "icingam01-p.ad.raiffeisen.it"
}
object Endpoint "icingam02-p.ad.raiffeisen.it" {
host = "icingam02-p.ad.raiffeisen.it"
}
object Zone "master" {
endpoints = [ "icingam01-p.ad.raiffeisen.it", "icingam02-p.ad.raiffeisen.it" ]
}
object Endpoint "icingas01-p.ad.raiffeisen.it" {
host = "icingas01-p.ad.raiffeisen.it"
log_duration = 0
}
object Endpoint "icingas02-p.ad.raiffeisen.it" {
host = "icingas02-p.ad.raiffeisen.it"
log_duration = 0
}
object Zone "production" {
endpoints = [ "icingas01-p.ad.raiffeisen.it", "icingas02-p.ad.raiffeisen.it" ]
parent = "master"
}
object Endpoint "icingas09-p.ad.raiffeisen.it" {
host = "icingas09-p.ad.raiffeisen.it"
log_duration = 0
}
object Zone "test" {
endpoints = [ "icingas09-p.ad.raiffeisen.it" ]
parent = "master"
}
```