Werk #14535: fix runas plugin

Komponente Agent bakery
Titel fix runas plugin
Datum 05.10.2022
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen
Checkmk versions & editions
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p14 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

This werk fixes a bug in the runas plugin that was preventing it to run the plugins as any user other than root.

This also impacted mrpe plugins included in the runas config when they were run asynchronously.

The error shown by the agent output in debug mode was 'check_mk_agent: line 211: su [RUNAS_USER] -c "[CHECK_FILE_PATH]": No such file or directory'

Zur Liste aller Werks