anapsix / zabbix-haproxy

HAProxy Zabbix Discovery and Template
170 stars 77 forks source link

zabbix user doesn't have enough permission to run the scripts #43

Closed angeloudy closed 6 years ago

angeloudy commented 6 years ago

The first error I got is "

  ERROR: cannot find socat binary

" Then I hardcoded the line SOCAT_BIN="/usr/local/bin/socat"

And then I got another error: ERROR: haproxy socket is not writable

So zabbix is checking if /var/run/haproxy.sock exists and returned false.

anapsix commented 6 years ago

Make sure you configure it to use the appropriate path to haproxy socket and set permissions on it as described in the readme

anapsix commented 6 years ago

Example:

stats socket /var/run/haproxy/info.sock  mode 666 level user
anapsix commented 6 years ago

going it assume it worked out