Branch: refs/heads/2.2.0
Home:
https://github.com/Checkmk/checkmk
Commit: 86745cbad7ae679fae665a2089f98f28e33e9757
https://github.com/Checkmk/checkmk/commit/86745cbad7ae679fae665a2089f98f28e…
Author: Wontek Hong <wontek.hong(a)checkmk.com>
Date: 2023-08-04 (Fri, 04 Aug 2023)
Changed paths:
A .werks/16016
M agents/plugins/mk_postgres.py
M tests/agent-plugin-unit/test_mk_postgres.py
Log Message:
-----------
16016 FIX mk_postgres: addition of option to specify instance name
The migration of the postgres_instances check plugin to the new CheckAPI broke the
discovery
mechanism of the plugin as it previously allowed an instance to have no specified name.
This
werk introduces the option to specify an explicit name for an instance. The mk_postgres
plugin
is adjusted accordingly and raises an error if the name cannot be inferred from .env file.
To
benefit from this change and also resolve the error, the user should adjust or bake the
config
file again and roll out the newly adapted plugin.
SUP-14739
Change-Id: I4f04bdd7a2d7b524b288812fc3d98800116728b2