Update example config.

Refs #5925
This commit is contained in:
Gunnar Beutner 2014-04-05 22:20:57 +02:00
parent 00fd51e628
commit 323f3ec6c5
3 changed files with 17 additions and 25 deletions

View File

@ -16,4 +16,3 @@ template ScheduledDowntime "backup-downtime" {
sunday = "02:00-03:00"
}
}

View File

@ -10,65 +10,59 @@ object Host "localhost" {
vars.address6 = "::1"
}
apply Service "icinga" {
object Service "icinga" {
import "generic-service"
host_name = "localhost"
check_command = "icinga"
assign where host.name == "localhost"
}
apply Service "http" {
object Service "http" {
import "generic-service"
host_name = "localhost"
check_command = "http_ip"
assign where host.name == "localhost"
}
apply Service "ssh" {
object Service "ssh" {
import "generic-service"
host_name = "localhost"
check_command = "ssh"
assign where host.name == "localhost"
}
apply Service "load" {
object Service "load" {
import "generic-service"
host_name = "localhost"
check_command = "load"
assign where host.name == "localhost"
}
apply ScheduledDowntime "backup-downtime" to Service {
object ScheduledDowntime "backup-downtime" {
import "backup-downtime"
assign where host.name == "localhost" && service.name == "load"
host_name = "localhost"
service_name = "load"
}
apply Service "processes" {
object Service "processes" {
import "generic-service"
host_name = "localhost"
check_command = "processes"
assign where host.name == "localhost"
}
apply Service "users" {
object Service "users" {
import "generic-service"
host_name = "localhost"
check_command = "users"
assign where host.name == "localhost"
}
apply Service "disk" {
object Service "disk" {
import "generic-service"
host_name = "localhost"
check_command = "disk"
assign where host.name == "localhost"
}

View File

@ -16,7 +16,6 @@ object User "icingaadmin" {
vars.notes = "This is the Icinga 2 Admin account."
}
object UserGroup "icingaadmins" {
display_name = "Icinga 2 Admin Group"
}