diff --git a/nagios/scripts/entrypoint.sh b/nagios/scripts/entrypoint.sh index ba25c630..ef7eccc1 100755 --- a/nagios/scripts/entrypoint.sh +++ b/nagios/scripts/entrypoint.sh @@ -38,6 +38,9 @@ fi if [ -n "$CEPH_MGR_SERVICE" ]; then echo "\$USER10\$=${CEPH_MGR_SERVICE}" >> ${NAGIOS_HOME}/etc/resource.cfg fi +if [ -n "$REGION" ]; then + echo "\$USER11\$=${REGION}" >> ${NAGIOS_HOME}/etc/resource.cfg +fi touch ${NAGIOS_HOME}/etc/objects/prometheus_discovery_objects.cfg chown nagios ${NAGIOS_HOME}/etc/objects/prometheus_discovery_objects.cfg