mirror of https://github.com/Icinga/icinga2.git
parent
00fd51e628
commit
323f3ec6c5
|
@ -16,4 +16,3 @@ template ScheduledDowntime "backup-downtime" {
|
||||||
sunday = "02:00-03:00"
|
sunday = "02:00-03:00"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,65 +10,59 @@ object Host "localhost" {
|
||||||
vars.address6 = "::1"
|
vars.address6 = "::1"
|
||||||
}
|
}
|
||||||
|
|
||||||
apply Service "icinga" {
|
object Service "icinga" {
|
||||||
import "generic-service"
|
import "generic-service"
|
||||||
|
|
||||||
|
host_name = "localhost"
|
||||||
check_command = "icinga"
|
check_command = "icinga"
|
||||||
|
|
||||||
assign where host.name == "localhost"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
apply Service "http" {
|
object Service "http" {
|
||||||
import "generic-service"
|
import "generic-service"
|
||||||
|
|
||||||
|
host_name = "localhost"
|
||||||
check_command = "http_ip"
|
check_command = "http_ip"
|
||||||
|
|
||||||
assign where host.name == "localhost"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
apply Service "ssh" {
|
object Service "ssh" {
|
||||||
import "generic-service"
|
import "generic-service"
|
||||||
|
|
||||||
|
host_name = "localhost"
|
||||||
check_command = "ssh"
|
check_command = "ssh"
|
||||||
|
|
||||||
assign where host.name == "localhost"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
apply Service "load" {
|
object Service "load" {
|
||||||
import "generic-service"
|
import "generic-service"
|
||||||
|
|
||||||
|
host_name = "localhost"
|
||||||
check_command = "load"
|
check_command = "load"
|
||||||
|
|
||||||
assign where host.name == "localhost"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
apply ScheduledDowntime "backup-downtime" to Service {
|
object ScheduledDowntime "backup-downtime" {
|
||||||
import "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"
|
import "generic-service"
|
||||||
|
|
||||||
|
host_name = "localhost"
|
||||||
check_command = "processes"
|
check_command = "processes"
|
||||||
|
|
||||||
assign where host.name == "localhost"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
apply Service "users" {
|
object Service "users" {
|
||||||
import "generic-service"
|
import "generic-service"
|
||||||
|
|
||||||
|
host_name = "localhost"
|
||||||
check_command = "users"
|
check_command = "users"
|
||||||
|
|
||||||
assign where host.name == "localhost"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
apply Service "disk" {
|
object Service "disk" {
|
||||||
import "generic-service"
|
import "generic-service"
|
||||||
|
|
||||||
|
host_name = "localhost"
|
||||||
check_command = "disk"
|
check_command = "disk"
|
||||||
|
|
||||||
assign where host.name == "localhost"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,6 @@ object User "icingaadmin" {
|
||||||
vars.notes = "This is the Icinga 2 Admin account."
|
vars.notes = "This is the Icinga 2 Admin account."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
object UserGroup "icingaadmins" {
|
object UserGroup "icingaadmins" {
|
||||||
display_name = "Icinga 2 Admin Group"
|
display_name = "Icinga 2 Admin Group"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue