Change network namespace

Change-Id: Idbd415a880e58b4df45fc894323679428a2c5a1e
This commit is contained in:
Olivier Bourdon 2017-02-17 12:20:50 +01:00
parent bc3816f5a7
commit c1a66324bd
3 changed files with 4 additions and 4 deletions

View File

@ -43,14 +43,14 @@ IP_BINARY="/sbin/ip"
SNMPD_BINARY="/usr/sbin/snmpd"
SNMPD_PID="/run/snmpd.pid"
#run snmpd process in the following namespace:
SNMPDNS="haproxy"
SNMPDNS="zabbix"
SNMPDRUN="yes"
SNMPDOPTS="-Lsd -Lf /dev/null -p $SNMPD_PID"
TRAPD_BINARY="/usr/sbin/snmptrapd"
TRAPD_PID="/run/snmptrapd.pid"
#run snmptrapd process in the following namespace:
TRAPDNS="haproxy"
TRAPDNS="zabbix"
TRAPDRUN="no"
TRAPDOPTS="-Lsd -p $TRAPD_PID"

View File

@ -41,7 +41,7 @@
. /etc/init.d/functions
#run service in the following network namespace:
NS="haproxy"
NS="zabbix"
OPTIONS="-Lsd -p /var/run/snmptrapd.pid"
if [ -e /etc/sysconfig/snmptrapd ]; then
. /etc/sysconfig/snmptrapd

View File

@ -51,7 +51,7 @@ Finding the management VIP to use to send SNMP traps
On the Fuel master node, use the primary controller node (here node-3)::
# ssh -q node-3 ip netns exec haproxy ifconfig b_zbx_vip_mgmt | \
# ssh -q node-3 ip netns exec zabbix ifconfig b_zbx_vip_mgmt | \
grep 'inet addr:' | sed -e 's/[^:]*://' -e 's/ .*//'
192.168.0.3