Add systemd check, move root disk check to template

This commit is contained in:
Jan Dittberner 2023-08-19 13:23:01 +02:00
parent 500099ae6e
commit 93e8ffaeaa
4 changed files with 17 additions and 3 deletions

View file

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

View file

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

View file

@ -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"

View file

@ -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"
}