Werk #17124: mk_postgres: Fix 'Argument list too long'

Komponente Checks & agents
Titel mk_postgres: Fix 'Argument list too long'
Datum 04.07.2024
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen
Checkmk versions & editions
2.4.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p18 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p35 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

The execution of large queries might run into an OS specific restriction regarding the length of arguments. In order to bypass the above error we use psql -f <FILE_PATH> instead of using echo, cat or similar for passing the SQL to pyql.

Zur Liste aller Werks