1 Title: runas: new plugin script to include and execute mrpe, local and plugin scripts as different user
8 With the new plugin <tt>runas</tt> you can configure additional include files and
9 directories for mrpe, local and plugin scripts. You can also change the user context
10 of each of these scripts. It allows non-root users to add additional scripts which might
11 get executed with reduced permissions.
13 This check is configured with the configuration file <tt>runas.cfg</tt>.
14 In a default installation this file is located within the Check_MK config directory under <tt>/etc/check_mk/runas.cfg</tt>.
16 The <tt>runas.cfg</tt> configuration syntax is as follow<br>
17 <tt>[Script type] [User context] [File/Directory]</tt>
19 The <tt>Script type</tt> can be set to <tt>mrpe</tt>, <tt>local</tt> and <tt>plugin</tt>.<br>
20 The <tt>User context</tt> represents the user. If you do not want to change the context set this field to "<tt>-</tt>"<br>
21 Depending on the script type the third value points to a file or directory.
22 The mrpe type requires a target file which contains the mrpe commands.
23 Local and plugins types require are target folder, which contains the executable local and plugin scripts.<br>
25 Here is an example configuration:
27 F+:/etc/check_mk/runas.cfg
28 mrpe ab /home/ab/mrpe_commands.cfg
29 mrpe lm /home/lm/mrpe_commands.cfg
30 mrpe - /root/mrpe/extra_commands.cfg
31 plugin ab /var/ab/plugins
32 local ab /var/ab/local
35 <b>Note:</b>You need to set up the local and plugin scripts in different folders, because the line<br>
36 <tt>plugin ab /var/ab/plugins</tt> indicates that all executable files within this folder are treated as plugins.