Add systemd check, move root disk check to template

main
Jan Dittberner 10 months ago
parent 500099ae6e
commit 93e8ffaeaa

@ -103,3 +103,7 @@ object CheckCommand "pgsql_socket" {
vars.pgsql_username = "nagios"
}
object CheckCommand "systemd" {
command = [ PluginContribDir + "/check_systemd" ]
}

@ -20,6 +20,10 @@ template Host "linux-host" {
import "generic-host"
vars.os = "Linux"
vars.disks["/"] = {
disk_partitions = "/"
}
}
template Host "debian-host" {

@ -150,6 +150,14 @@ apply Service "ssh" {
assign where (host.address || host.address6) && host.vars.os == "Linux" && !host.vars.no_check_ssh
}
apply Service "systemd" {
import "generic-service"
check_command = "systemd"
assign where host.vars.debian_release && host.vars.debian_release >= 12
}
apply Service "users" {
import "generic-service"

@ -9,10 +9,8 @@ object Host "beholder" {
address6 = "::1"
vars.is_container = false
vars.debian_release = 12
vars.disks["/"] = {
disk_partitions = "/"
}
vars.disks["/boot/efi"] = {
disk_partitions = "/boot/efi"
}

Loading…
Cancel
Save