Module: check_mk
Branch: master
Commit: 9945220123e104d6c1a8a6459d70f2a46bdf114e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9945220123e104…
Author: Tom Baerwinkel <tb(a)mathias-kettner.de>
Date: Fri Aug 31 11:44:17 2018 +0200
6407 FIX mk_postgres, postgres_instances: output missing instance data
In the agent plugin mk_postgres a command line option for the output
of the postgres_instances check was missing. This resulted in missing
data for the postgres_instances checks.
To apply this fix the mk_postgres plugin on the affected hosts has to
be updated.
Change-Id: I10b8f84103c6f7cdc98571f11e8fc9cd87041190
---
.werks/6407 | 15 +++++++++++++++
agents/plugins/mk_postgres | 2 +-
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/.werks/6407 b/.werks/6407
new file mode 100644
index 0000000..049fa41
--- /dev/null
+++ b/.werks/6407
@@ -0,0 +1,15 @@
+Title: mk_postgres, postgres_instances: output missing instance data
+Level: 1
+Component: checks
+Class: fix
+Compatible: incomp
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1535708395
+
+In the agent plugin mk_postgres a command line option for the output
+of the postgres_instances check was missing. This resulted in missing
+data for the postgres_instances checks.
+To apply this fix the mk_postgres plugin on the affected hosts has to
+be updated.
diff --git a/agents/plugins/mk_postgres b/agents/plugins/mk_postgres
index 7d5dd08..f981bdf 100755
--- a/agents/plugins/mk_postgres
+++ b/agents/plugins/mk_postgres
@@ -67,7 +67,7 @@ function postgres_instances() {
if [ ! -z "${1}" ]; then
echo "[[[${1}]]]"
fi
- pgrep -lf bin/postgres
+ pgrep -laf bin/postgres
}