mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-09 20:28:33 +01:00
188 lines
4.3 KiB
Plaintext
188 lines
4.3 KiB
Plaintext
object CheckCommand "gateway" {
|
|
command = [ "/etc/icinga2/icinga-webhook-gateway/icinga-gateway-command.py" ]
|
|
arguments = {
|
|
"--protocol" = "$protocol$",
|
|
"--host" = "$host$",
|
|
"--port" = "$port$",
|
|
"--service" = "$service_name$"
|
|
}
|
|
}
|
|
|
|
object Host "THS" {
|
|
|
|
import "generic-host"
|
|
|
|
address = "localhost"
|
|
name = "THS"
|
|
vars.async = "true"
|
|
vars.linux = "true"
|
|
|
|
vars.ssl_address = "async-icinga.atlantishq.de"
|
|
vars.ssl_port = "443"
|
|
|
|
check_command = "http"
|
|
|
|
max_check_attempts = 5
|
|
retry_interval = 1m
|
|
|
|
}
|
|
|
|
object Host "atlantispc" {
|
|
|
|
import "generic-host"
|
|
|
|
address = "localhost"
|
|
name = "atlantispc"
|
|
vars.async = "true"
|
|
vars.linux = "true"
|
|
|
|
vars.ssl_address = "async-icinga.atlantishq.de"
|
|
vars.ssl_port = "443"
|
|
|
|
check_command = "http"
|
|
|
|
max_check_attempts = 5
|
|
retry_interval = 1m
|
|
|
|
}
|
|
|
|
object Host "atlantislaptop" {
|
|
|
|
import "generic-host"
|
|
|
|
address = "localhost"
|
|
name = "atlantislaptop"
|
|
vars.async = "true"
|
|
vars.linux = "true"
|
|
|
|
vars.ssl_address = "async-icinga.atlantishq.de"
|
|
vars.ssl_port = "443"
|
|
|
|
check_command = "http"
|
|
|
|
max_check_attempts = 5
|
|
retry_interval = 1m
|
|
|
|
}
|
|
|
|
object Host "kathilaptop" {
|
|
|
|
import "generic-host"
|
|
|
|
address = "localhost"
|
|
name = "kathilaptop"
|
|
vars.async = "true"
|
|
vars.linux = "true"
|
|
|
|
vars.ssl_address = "async-icinga.atlantishq.de"
|
|
vars.ssl_port = "443"
|
|
vars.owner = "kathi"
|
|
|
|
check_command = "http"
|
|
|
|
max_check_attempts = 5
|
|
retry_interval = 1m
|
|
|
|
}
|
|
|
|
apply Service "backup_kathi_laptop" {
|
|
import "generic-service"
|
|
check_command = "gateway"
|
|
vars.owner = "kathi"
|
|
vars.protocol = "https"
|
|
vars.host = "async-icinga.atlantishq.de"
|
|
vars.service_name = "backup_kathi_laptop"
|
|
assign where host.name == "kathi"
|
|
}
|
|
|
|
apply Service "backup_kathi_server" {
|
|
import "generic-service"
|
|
check_command = "gateway"
|
|
vars.protocol = "https"
|
|
vars.owner = "kathi"
|
|
vars.host = "async-icinga.atlantishq.de"
|
|
vars.service_name = "backup_kathi_laptop"
|
|
assign where host.name == "kathi"
|
|
}
|
|
|
|
apply Service "apt_atlantis_laptop" {
|
|
import "generic-service"
|
|
check_command = "gateway"
|
|
vars.protocol = "https"
|
|
vars.host = "async-icinga.atlantishq.de"
|
|
vars.service_name = "apt_atlantis_laptop"
|
|
assign where host.name == "atlantislaptop"
|
|
}
|
|
|
|
apply Service "apt_atlantis_pc" {
|
|
import "generic-service"
|
|
check_command = "gateway"
|
|
vars.protocol = "https"
|
|
vars.host = "async-icinga.atlantishq.de"
|
|
vars.service_name = "apt_atlantis_pc"
|
|
assign where host.name == "atlantispc"
|
|
}
|
|
|
|
apply Service "backup_atlantis_laptop" {
|
|
import "generic-service"
|
|
check_command = "gateway"
|
|
vars.protocol = "https"
|
|
vars.host = "async-icinga.atlantishq.de"
|
|
vars.service_name = "backup_atlantis_laptop"
|
|
assign where host.name == "atlantispc"
|
|
}
|
|
|
|
apply Service "backup_ths_storrage_box" {
|
|
import "generic-service"
|
|
check_command = "gateway"
|
|
vars.protocol = "https"
|
|
vars.host = "async-icinga.atlantishq.de"
|
|
vars.service_name = "backup_ths_storrage_box"
|
|
assign where host.name == "atlantispc"
|
|
}
|
|
|
|
apply Service "backup_ths" {
|
|
import "generic-service"
|
|
check_command = "gateway"
|
|
vars.protocol = "https"
|
|
vars.host = "async-icinga.atlantishq.de"
|
|
vars.service_name = "backup_ths"
|
|
assign where host.name == "THS"
|
|
}
|
|
|
|
apply Service "ths_auftragsdatenbank" {
|
|
import "generic-service"
|
|
check_command = "gateway"
|
|
vars.protocol = "https"
|
|
vars.host = "async-icinga.atlantishq.de"
|
|
vars.service_name = "ths_auftragsdatenbank"
|
|
assign where host.name == "THS"
|
|
}
|
|
|
|
apply Service "mail_atlantishq" {
|
|
import "generic-service"
|
|
check_command = "gateway"
|
|
vars.protocol = "https"
|
|
vars.host = "async-icinga.atlantishq.de"
|
|
vars.service_name = "mail_atlantishq"
|
|
assign where host.name == "async_icinga"
|
|
}
|
|
|
|
apply Service "ths_caldav_backup" {
|
|
import "generic-service"
|
|
check_command = "gateway"
|
|
vars.protocol = "https"
|
|
vars.host = "async-icinga.atlantishq.de"
|
|
vars.service_name = "ths_caldav_backup"
|
|
assign where host.name == "async_icinga"
|
|
}
|
|
|
|
apply Service "slapd_backup" {
|
|
import "generic-service"
|
|
check_command = "gateway"
|
|
vars.protocol = "https"
|
|
vars.host = "async-icinga.atlantishq.de"
|
|
vars.service_name = "slapd_backup"
|
|
assign where host.name == "async_icinga"
|
|
}
|