Werk #6410: Determine the parent process more reliably

Komponente Site management
Titel Determine the parent process more reliably
Datum 28.09.2018
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 1.5.0p6 1.6.0b1
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

Previously, the parent process was determined by parsing /proc/{PID}/stat and columns where assumed to be separated by space. This was unreliable because the filename in the second column may contain a space as well. If omd was issued e.g. from tmux the process name "tmux: server" was used. This resulted in a traceback during e.g. omd rm. Now the psutil module is used to determine the parent process.

Zur Liste aller Werks