mirror of https://github.com/Icinga/icinga2.git
81 lines
1.7 KiB
Plaintext
81 lines
1.7 KiB
Plaintext
/**
|
|
* 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"
|
|
}
|
|
}
|
|
|