Catch up on the latest product updates, best practices, and expert insights from the Checkmk Conference #12 – Watch the livestream recordings now

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 Community, Checkmk Pro, Checkmk Ultimate, Checkmk Ultimate MT
2.1.0p11 Checkmk Community, Checkmk Pro, Checkmk Ultimate MT
2.0.0p28 Checkmk Community, Checkmk Pro, Checkmk Ultimate MT

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