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:
@@ -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
|
||||
|
Reference in New Issue
Block a user