Include additional enviromental variables for use with
http endpoint topics Change-Id: I48a404e3ed9e6277cb64efb05bd157ba27527ee3
This commit is contained in:
parent
a262c243d2
commit
449b01a429
@ -41,6 +41,12 @@ fi
|
|||||||
if [ -n "$REGION" ]; then
|
if [ -n "$REGION" ]; then
|
||||||
echo "\$USER11\$=${REGION}" >> ${NAGIOS_HOME}/etc/resource.cfg
|
echo "\$USER11\$=${REGION}" >> ${NAGIOS_HOME}/etc/resource.cfg
|
||||||
fi
|
fi
|
||||||
|
if [ -n "$DCAE_TOPIC" ]; then
|
||||||
|
echo "\$USER12\$=${DCAE_TOPIC}" >> ${NAGIOS_HOME}/etc/resource.cfg
|
||||||
|
fi
|
||||||
|
if [ -n "$TSEE_TOPIC" ]; then
|
||||||
|
echo "\$USER13\$=${TSEE_TOPIC}" >> ${NAGIOS_HOME}/etc/resource.cfg
|
||||||
|
fi
|
||||||
|
|
||||||
touch ${NAGIOS_HOME}/etc/objects/prometheus_discovery_objects.cfg
|
touch ${NAGIOS_HOME}/etc/objects/prometheus_discovery_objects.cfg
|
||||||
chown nagios ${NAGIOS_HOME}/etc/objects/prometheus_discovery_objects.cfg
|
chown nagios ${NAGIOS_HOME}/etc/objects/prometheus_discovery_objects.cfg
|
||||||
|
Loading…
Reference in New Issue
Block a user