There is a predefined check command “disk” which uses check_disk. Now I’ve have a path that needs root-access. Of course I’ve added /usr/lib/nagios/plugins/check_disk to /etc/sudoers and the icinga user. But also I need to re define the object CheckCommand “disk” that the line is “sudo …check_disk”
But as far as I know, the checkcommand definition is part of the ITL. Do I need to redefine a new disk-checkcommand or is there an alternative?
I’ve found /usr/share/icinga2/include/command-plugins.conf - do I need to change that file and what happens, when a apt-get upgrade is running. I would prefer a way of “import” the disk CheckCommand and override the command property.