With the new plugin runas you can configure additional include files and directories for mrpe, local and plugin scripts. You can also change the user context of each of these scripts. It allows non-root users to add additional scripts which might get executed with reduced permissions.
This check is configured with the configuration file runas.cfg. In a default installation this file is located within the Check_MK config directory under /etc/check_mk/runas.cfg.
The runas.cfg configuration syntax is as follow
The Script type can be set to mrpe, local and plugin.
Here is an example configuration:
mrpe ab /home/ab/mrpe_commands.cfg mrpe lm /home/lm/mrpe_commands.cfg mrpe - /root/mrpe/extra_commands.cfg plugin ab /var/ab/plugins local ab /var/ab/local
Note:You need to set up the local and plugin scripts in different folders, because the line