Hello everybody,
i do have an issue with one of my icinga2 checks.
I am checking a hardware machine (Proxmox VE 7.4) on its disks.
The problem i have, is it shows “disk critical” even though it is fine.
As visible on the added picture, at the header “Plugin Output” i do get a “disk critical” for 0 MB free space on “/”.
And that even while a slight look down into “Performance data” there is the “/” with only 288 GiB out of 464 GiB full.
My apologies for my late reply.
the zone definition in the post definitely looks wrong, but that was only in the post here and not in my .conf file. sorry for the confusion
Check source is pointing to the correct hostname and IP address.
could you please tell me, is there anything else quite obviously wrong?
object Host "srv-loc-pve2" {
check_command = "hostalive"
/* Import the default host template defined in `templates.conf`. */
import "generic-host"
vars.client_endpoint = name
vars.proxmox = true
vars.servers = true
vars.all = true
vars.linuxbasics = true
vars.loc.w = true
/* Specify the address attributes for checks e.g. `ssh` or `http`. */
address = "192.168.40.101"
address6 = "::1"
/* Set custom attribute `os` for hostgroup assignment in `groups.conf`. */
vars.os = "Linux"
vars.disks["disk /"] = {
disk_partitions = "/"
}
vars.procs_warning = "500"
vars.procs_critical = "600"
/* Define notification mail attributes for notification apply rules in `notifications.conf`. */
vars.notification["mail"] = {
/* The UserGroup `icingaadmins` is defined in `users.conf`. */
groups = [ "icingaadmins" ]
}
}
object Endpoint "srv-loc-pve2" {
host = "srv-loc-pve2"
}
object Zone "srv-loc-pve2" {
endpoints = [ "srv-loc-pve2" ]
parent = "master"
}
You can remove that when you use command_endpoint = host.name in your services definition instead.
This is defined but not used.
However, both mistakes has nothing to do with your original issue. But, I have no idea what could be wrong. Maybe you try that check plugin manually, first as root second as user icinga or nagios (depending on your distribution).
as df -h shows “/” has 37% free space and that is the same as the picture provided above with “Performance data” showing the right result. but the check itself telling 0% free space.
i also tried to reinstall icinga host did not change my situation.