tripleo-common/healthcheck/gnocchi-statsd
Martin Mágr 218065b63e Fix gnocchi_statsd and ceilometer_agent_ipmi healthcheck
- statsd is connecting to redis only when it receives a data,
  hence to avoid false negatives we will rather test if the service
  is listening on proper port

- ceilometer_agent_ipmi connects to Redis instead of Rabbit for coordination
  now.

Closes-Bug: #1781108
Change-Id: I4414bac82981c30ba6b7c1c8b406baa7a0900e5a
2018-07-11 16:38:14 +02:00

12 lines
343 B
Bash
Executable File

#!/bin/bash
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
process='gnocchi-statsd'
bind_port=$(get_config_val /etc/gnocchi/gnocchi.conf statsd port 8125)
if ! healthcheck_listen $process $bind_port; then
echo "There is no $process process listening on ports $bind_port in the container."
exit 1
fi