Commit 1eb4ef5c authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

User parameters for zabbix agent now live in separate file - /etc/zabbix_agentd.userparams.conf

parent fda476b2
......@@ -11,8 +11,8 @@ all: haproxy-cfg
@echo "$$HAPROXY_CFG" > /etc/haproxy/haproxy.cfg.template
install -v -Dm755 haproxy_discovery.sh /usr/bin
install -v -Dm755 haproxy_stats.sh /usr/bin
sed -e '/^UserParameter=device\.product.*/a UserParameter=haproxy.stats[*],/usr/bin/haproxy_stats.sh $$1 $$2 $$3 $$4' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=device\.product.*/a UserParameter=haproxy.list.discovery[*],/usr/bin/haproxy_discovery.sh $$1 $$2' -i /etc/zabbix_agentd.conf
echo 'UserParameter=haproxy.stats[*],/usr/bin/haproxy_stats.sh $$1 $$2 $$3 $$4' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=haproxy.list.discovery[*],/usr/bin/haproxy_discovery.sh $$1 $$2' >> /etc/zabbix_agentd.userparams.conf
rm -rf haproxy-2.4.1
haproxy-cfg:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment