a13m / openshift-zabbix-cartridge

Zabbix server cartridge
Other
5 stars 4 forks source link

ZABBIX_SERVER_IP doesn't use EXTERNAL_ETH_DEV #3

Open LudoMeurillon opened 10 years ago

LudoMeurillon commented 10 years ago

On openshift, nodes can be configured with a different network device than the default one (eth1 instead of eth0 for example).

On zabbix server cartridge it is important to use this explicit device defined in /etc/openshift/node.conf on nodes, if he code use the wrong ip address, somme zabbix agents will not be able to push metrics to zabbix server correctly.

Possible solution :

Today, zabbix server cartridge code use facter to define ZABBIX_SERVERIP and it's possible to do : facter -p "ipaddress$EXTERNAL_ETH_DEV" in a shell to get the correct ip.