We use cookies to ensure that we give you the best experience on our website.  Visit our Privacy Policy to learn more. If you continue to use this site, we will assume that you are okay with it.

Your choices regarding cookies on this site.
Your preferences have been updated.
In order for the changes to take effect completely please clear your browser cookies and cache. Then reload the page.

Werk #0265: mpre_include: run additional mrpe configs within user context

ComponentChecks & Agents
Titlempre_include: run additional mrpe configs within user context
Date2014-01-24 13:56:27
Checkmk EditionCheckmk Raw Edition (CRE)
Checkmk Version1.2.5i1
LevelTrivial Change
ClassNew Feature
CompatibilityCompatible - no manual interaction needed

This version brings the new local check mrpe_include where you can configure additional include files for mrpe and under which user context the commands of these files are run. It allows non-root users to add additional mrpe commands without modifying the mrpe.cfg file. You can assign include files to users and define in which user context the commands should be executed.

This check is configured with the configuration file mrpe_include.cfg. In a default installation this file is located within the Check_MK config directory under /etc/check_mk/mrpe_include.cfg.

The mrpe_include.cfg does not contain the new mrpe commands, though a user name followed by a include path. Here is an example:

/etc/check_mk/mrpe_include.cfg
# Execute as user ab
ab /etc/check_mk/mrpe_ab_commands.cfg
# Execute as user lm
lm /etc/other/mrpe_lm.cfg
# Execute with no user context change
- /etc/mrpe_default.cfg

Each line consists of two parameters, the user followed by the include file. Each command within the include file is executed as this user. If you do not want to change the user context (default is root), you can set the user to -. The included files have the same configuration syntax as the mrpe.cfg.