Werk #14684: Fixed handling of Livestatus socket specification in livedump/cmc

Komponente Livestatus
Titel Fixed handling of Livestatus socket specification in livedump/cmc
Datum 13.10.2022
Checkmk-Version 2.2.0b1 2.1.0p14 2.0.0p30
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen
Affected 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)
2.0.0p30 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

There were a few tiny bugs plus some surprising behavior when specifying the Livestatus socket for livedump/cmcdump. With this change, the rules are simple and consistent now: If there is a -s/--socket commandline option, use that. Otherwise derive the UNIX socket from the OMD_ROOT environment variable if that is set (probably the common case). And finally: If there is no -s/--socket option and no OMD_ROOT, complain and exit.

Zur Liste aller Werks