diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 11:32:39 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 11:32:39 +0000 |
commit | 56ae875861ab260b80a030f50c4aff9f9dc8fff0 (patch) | |
tree | 531412110fc901a5918c7f7442202804a83cada9 /test/config/templates.conf | |
parent | Initial commit. (diff) | |
download | icinga2-e6c8b97d844e301093c7e2c03da489629676e2c4.tar.xz icinga2-e6c8b97d844e301093c7e2c03da489629676e2c4.zip |
Adding upstream version 2.14.2.upstream/2.14.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | test/config/templates.conf | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/test/config/templates.conf b/test/config/templates.conf new file mode 100644 index 0000000..4a15bb8 --- /dev/null +++ b/test/config/templates.conf @@ -0,0 +1,80 @@ +/** + * test templates + */ + +template Service "test-generic-service" { + max_check_attempts = 3 + check_interval = 5m + retry_interval = 1m +} + +template Host "test-generic-host" { + check_command = "hostalive" +} + +template User "test-generic-user" { + +} + +template Notification "test-mail-host-notification" { + command = "mail-host-notification" + + states = [ Up, Down ] + types = [ Problem, Acknowledgement, Recovery, Custom, + FlappingStart, FlappingEnd, + DowntimeStart, DowntimeEnd, DowntimeRemoved ] + + period = "test-24x7" + + user_groups = [ "test-icingaadmins" ] +} + +/** + * Provides default settings for service notifications. + * By convention all service notifications should import + * this template. + */ +template Notification "test-mail-service-notification" { + command = "mail-service-notification" + + states = [ OK, Warning, Critical, Unknown ] + types = [ Problem, Acknowledgement, Recovery, Custom, + FlappingStart, FlappingEnd, + DowntimeStart, DowntimeEnd, DowntimeRemoved ] + + period = "test-24x7" + + user_groups = [ "test-icingaadmins" ] +} + + +/* users */ + +object User "test-icingaadmin" { + import "test-generic-user" + + display_name = "Test Icinga 2 Admin" + groups = [ "test-icingaadmins" ] + + email = "icinga@localhost" +} + +object UserGroup "test-icingaadmins" { + display_name = "Test Icinga 2 Admin Group" +} + +/* timeperiods */ +object TimePeriod "test-24x7" { + display_name = "Test 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" + } +} + |