From e6c9b337210d63c648ecb40eb961584d131ec365 Mon Sep 17 00:00:00 2001 From: Remus Bunduc Date: Wed, 17 Oct 2018 12:35:33 +0300 Subject: [PATCH] healthcheck: fail on supervisorctl errors --- probe.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/probe.sh b/probe.sh index 49c45c2f..21be7d71 100644 --- a/probe.sh +++ b/probe.sh @@ -1,2 +1,3 @@ #! /bin/sh +/opt/datadog-agent/embedded/bin/python /opt/datadog-agent/bin/supervisorctl -c /etc/dd-agent/supervisor.conf status || exit 1 test $(/opt/datadog-agent/embedded/bin/python /opt/datadog-agent/bin/supervisorctl -c /etc/dd-agent/supervisor.conf status | awk '{print $2}' | egrep -v 'RUNNING|EXITED' | wc -l) = 0 || exit 1