Die Checkmk-Konferenz #6 steht an! Regulärer Verkauf endet in . Tickets hier!
|Komponente||Checks & Agents|
|Titel||mpre_include: run additional mrpe configs within user context|
|Checkmk Edition||Checkmk Raw Edition (CRE)|
|Kompatibilität||Kompatibel - benötigt kein manuelles Eingreifen|
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:
# 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.