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%
}

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1516451

Title:
  check_disk plugin broken after upgrade to 15.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nagios-plugins/+bug/1516451/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to