2014-05-02 01:03:03 +02:00
|
|
|
/**
|
|
|
|
* 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"
|
|
|
|
}
|
|
|
|
|
2014-08-05 16:37:30 +02:00
|
|
|
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"
|
2016-08-28 10:41:01 +02:00
|
|
|
|
2014-08-05 16:37:30 +02:00
|
|
|
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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|