Add a user to nagios to define a region

This will add another user to the nagios start up script
to allow a region to be defined based on a region
environment variable.

Change-Id: Ic067ef5052a684b918851a3b8fb1e4956225364c
This commit is contained in:
Meg Heisler
2020-06-26 11:25:51 -05:00
parent 543ed9c941
commit da3e1bea7e

View File

@@ -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