Wir nutzen Cookies, um Ihnen eine optimale Nutzung dieser Webseite zu ermöglichen. Mehr Informationen finden Sie im Datenschutzhinweis. Wir nehmen an, dass Sie damit einverstanden sind, falls Sie diese Webseite weiter besuchen.

Ihre Cookie-Einstellungen
Ihre Einstellungen wurden aktualisiert.
Damit die Änderungen wirksam werden, löschen Sie bitte Ihre Browser-Cookies und den Cache und laden dann die Seite neu.

Werk #0266: windows_agent: now supports MRPE include files

KomponenteChecks & Agents
Titelwindows_agent: now supports MRPE include files
Datum2014-01-24 16:27:25
Checkmk EditionCheckmk Raw Edition (CRE)
Checkmk Version1.2.5i1
LevelTrivial Change
KlasseNew Feature
KompatibilitätKompatibel - benötigt kein manuelles Eingreifen

This version introduces the mrpe configuration option include. With this option you can define addiontal include files and the user domain in which include files should be executed.

check_mk.ini
[mrpe]
# Run classical Nagios plugins. The word before the command
# line is the service description for Nagios. Use backslashes
# in Windows-paths.
check = Dummy mrpe\check_crit
check = IP_Configuration mrpe\check_ipconfig 1.2.3.4
check = Whatever c:\myplugins\check_whatever -w 10 -c 20

# Additional mrpe configs
# The include files can be changed during the runtime
include \\ab = C:\includes\ab_mrpe.cfg
include \\NT-AUTORITÄT\SYSTEM = C:\includes\system_mrpe.cfg

# If you omit the user the file is executed with the current user
include = C:\includes\default.cfg

The syntax in the mrpe include file is the same as in the mrpe section, with the exception that you cannot add further includes in a include file. There is also no need to define a [mrpe] section in an included file. You just need to define the check lines here.

ab_mrpe.cfg
check = Dummy mrpe\check_crit
check = IP_Configuration mrpe\check_ipconfig 1.2.3.4

Important: Keep in mind that the agent needs the permission to run scripts as other user. Internally it uses the windows command runas /User: which prompts for a password if agent has no permission to change to this user. In this case the check_mk agent will get stuck!