Werk #14970: mk_postgres.py: Use PATH as fallback for psql binary location

Component Checks & agents
Title mk_postgres.py: Use PATH as fallback for psql binary location
Date Jan 11, 2023
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.0p21 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p34 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

This werk affects the monitoring of one or more PostgreSQL instances via agent plugin on linux if the changes made in werk #14975 are applied. The agent plugin will look for the "psql" binary under the path /{pg_database}/{pg_version}/bin/{binary_name}, using the configured values in the .env and .pgpass files. However, this path does not have to be correct, depending on the setup. In case it cannot be found the binary location from PATH is now used instead.

In order to apply this change you will need to reinstall the agent plugin.

To the list of all Werks