add ssh, disk and http service

This commit is contained in:
Marco Kohn 2025-03-23 21:39:44 +01:00
parent 2100809f60
commit 787bafe0db

View File

@ -13,3 +13,29 @@ apply Service "ping6" {
assign where host.address6 assign where host.address6
} }
apply Service "ssh" {
import "generic-service"
check_command = "ssh"
assign where (host.address || host.address6) && host.vars.os == "Linux"
}
apply Service for (http_vhost => config in host.vars.http_vhosts) {
import "generic-service"
check_command = "http"
vars += config
}
apply Service for (disk => config in host.vars.disks) {
import "generic-service"
check_command = "disk"
vars += config
}