Werk #14762: mk_postgres.py: instances not found under Linux for PostgreSQL version >= 13

Component Checks & agents
Title mk_postgres.py: instances not found under Linux for PostgreSQL version >= 13
Date Aug 25, 2022
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p11 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p28 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

This fix only applies when your PostgreSQL server runs under Linux.

The plugin "mk_postgres.py" does not find any instances when PostgreSQL version >= 13 is installed. This has been fixed. If you require this fix, please update the agent plugin "mk_postgres.py" on the relevant host.

The problem was that in this version, the output of the "ps" command does not include the full path to the relevant binaries, and therefore they could not be correctly identified as PostgreSQL processes. For example:

[PID] /usr/bin/postmaster [OPTS] --> [PID] postmaster [OPTS]

To the list of all Werks