icinga2-checks/check_pve/icinga2/command.conf

75 lines
3.0 KiB
Plaintext

object CheckCommand "pve" {
import "plugin-check-command"
command = [ PluginDir + "/check_pve.py" ]
arguments = {
"-e" = {
value = "$pve_host$"
required = true
description = "Hostname for PVE API"
}
"-u" = {
value = "$pve_user$"
required = true
description = "API user (ex. monitoring@pve)"
}
"-p" = {
value = "$pve_password$"
required = true
description = "API user password"
}
"-k" = {
set_if = "$pve_insecure_connection$"
description = "Connect to this host instead of $pve_host$"
}
"-m" = {
value = "$pve_mode$"
required = true
description = "Check mode (cluster, version, updates, subscription, storage, cpu, memory, io_wait, vm, replication)"
}
"-n" = {
value = "$pve_node$"
description = "Node to check (necessary for all modes except cluster and version)"
}
"--name" = {
value = "$pve_resource_name$"
description = "Name of storage or vm to check"
}
"--expected-vm-status" = {
value = "$pve_expected_vm_status$"
description = "Expected status of the VM"
}
"--ignore-service" = {
repeat_key = true
value = "$pve_ignore_services$"
description = "Ignore services in check"
}
"--ignore-disk" = {
repeat_key = true
value = "$pve_ignore_disks$"
description = "Ignore disks in check"
}
"--ignore-vm-status" = {
set_if = "$pve_ignore_vm_status$"
description = "Ignore VM status in check"
}
"-w" = {
value = "$pve_warning$"
description = "Warning treshold"
}
"-c" = {
value = "$pve_critical$"
description = "Critical treshold"
}
"-M" = {
set_if = "$pve_tresholds_mb$"
description = "Unit of tresholds and values is MB"
}
"-V" = {
value = "$pve_min_version$"
description = "Minimal pve version. Everything lower than this will return CRITICAL."
}
}
}