Since check_all_disks is internally defined in Nagios, you might well see a "duplicate definition" error if you define your own check_all_disks command. I'd recommend
define command{ command_name check_all_physical_disks command_line /usr/lib/nagios/plugins/check_disk -w '$ARG1$' -c '$ARG2$' -e -A --exclude-type=tracefs --exclude-type=cgroup --exclude_device=/run/lxcfs/controllers }
instead, and then call that in your host definition:
define service { use generic-service hostgroup_name all service_description Disk Space check_command check_all_physical_disks!6%!4% }
Since check_all_disks is internally defined in Nagios, you might well see a "duplicate definition" error if you define your own check_all_disks command. I'd recommend
define command{ physical_ disks nagios/ plugins/ check_disk -w '$ARG1$' -c '$ARG2$' -e -A --exclude- type=tracefs --exclude- type=cgroup --exclude_ device= /run/lxcfs/ controllers
command_name check_all_
command_line /usr/lib/
}
instead, and then call that in your host definition:
define service { description Disk Space physical_ disks!6% !4%
use generic-service
hostgroup_name all
service_
check_command check_all_
}