Environment:
Zabbix 1.8.3
Agent 1.8.3
HAProxy(pulling the data using socat and Unix Socket Commands)
Things I've checked:
Hostname in zabbix_agentd.conf matches the Host in Zabbix Frontend.
UserParameter is in the zabbix_agentd.conf running on the HAProxy server.
I'm trying to write a UserParameter that will monitor the Status of proxies in HAProxy.
UserParameter=haproxy.blah01.status, echo "show stat" | socat stdio /tmp/proxystats | grep -i 'www.blah.com,www.blah.com.01' | sed 's/,/\ /g' | awk '{print $31}'
This is unsupported by zabbix, but if I do the following in CLI it returns the value i'm looking for.
echo "show stat" | socat stdio /tmp/proxystats | grep -i 'www.blah.com,www.blah.com.01' | sed 's/,/\ /g' | awk '{print $31}'
L7OK
Zabbix 1.8.3
Agent 1.8.3
HAProxy(pulling the data using socat and Unix Socket Commands)
Things I've checked:
Hostname in zabbix_agentd.conf matches the Host in Zabbix Frontend.
UserParameter is in the zabbix_agentd.conf running on the HAProxy server.
I'm trying to write a UserParameter that will monitor the Status of proxies in HAProxy.
UserParameter=haproxy.blah01.status, echo "show stat" | socat stdio /tmp/proxystats | grep -i 'www.blah.com,www.blah.com.01' | sed 's/,/\ /g' | awk '{print $31}'
This is unsupported by zabbix, but if I do the following in CLI it returns the value i'm looking for.
echo "show stat" | socat stdio /tmp/proxystats | grep -i 'www.blah.com,www.blah.com.01' | sed 's/,/\ /g' | awk '{print $31}'
L7OK
Comment