I have installed the Linux Agent on a Linux machine. The agent also checks the disks. Now I have the problem that the service recognises all partitions and often reports alarms in Icinga, which bothers me. Is it possible to modify the check to only one partition?
My Linux is: Debian10
Monitoring success with an agent
object Host "hostA" {
...
vars.client_disk["All-discs"] = {
disk_wfree = "20%",
disk_cfree = "10%",
disk_partition = ["/","/boot"], //Define more/less partitions, use mount points
//You can add more custom variables from 'disk' check command
}
}
Service definition
apply Service "Disc-" for (key => config in host.vars.client_disk){
command_endpoint = host.vars.client_endpoint
check_command = "disk"
vars += config
}