2018-01-26 14:31:57 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
|
|
|
|
|
|
|
|
process='gnocchi-statsd'
|
2018-07-11 11:20:42 +00:00
|
|
|
bind_port=$(get_config_val /etc/gnocchi/gnocchi.conf statsd port 8125)
|
2018-01-26 14:31:57 +00:00
|
|
|
|
2018-07-11 11:20:42 +00:00
|
|
|
if ! healthcheck_listen $process $bind_port; then
|
|
|
|
echo "There is no $process process listening on ports $bind_port in the container."
|
2018-01-26 14:31:57 +00:00
|
|
|
exit 1
|
|
|
|
fi
|