anapsix / zabbix-haproxy

HAProxy Zabbix Discovery and Template
170 stars 77 forks source link

After restart server, the directory "/var/run/haproxy" is removed. #40

Closed dkhromenko closed 7 years ago

dkhromenko commented 7 years ago

System - Oracle Linux 7.2/7.3, after restart OS, the directory "/var/run/haproxy" is removed. As a result, the haproxy doesn't start - "haproxy-systemd-wrapper [2655]: [ALERT] 198/015724 (2656): Starting frontend GLOBAL: can't bind UNIX socket [/var/run/haproxy/info.sock]" It may make sense to change the default path to the socket "/var/lib/haproxy/info.sock" instead of "/var/run/haproxy/info.sock" ?

noamik commented 7 years ago

You can put the socket where ever you want it to be. There is a parameter in the template for its location which you can adjust on your zabbix server.

dkhromenko commented 7 years ago

That's exactly what I did. I say that it might make sense to change the default path to lib instead of run?

anapsix commented 7 years ago

I realize some distributions might not have that dir, yet it makes more sense to store sockets in /var/run/ Unfortunately, there is no definitive place that would be default for all installs.