zbx-sadman / unifi_proxy

Fast client-server version of UniFi Miner
45 stars 21 forks source link

Issues with unifi.proxy #49

Open procajlok opened 1 year ago

procajlok commented 1 year ago

Hi! Have problem with Zabbix on Docker (192.168.x.x:8443) and unifi_proxy. obraz

Zabbix agent is run on 10050 port, but unifi-proxy cant reach data from unifi... Can You help?

zbx-sadman commented 1 year ago

aptitude install nc ? nc == netcat

procajlok commented 1 year ago

After install netcat i have this: obraz

zbx-sadman commented 1 year ago

You can test netcat just from shell with string from UserParameter: echo "discovery,wlan" | nc 127.0.0.1 ... On some Linux box not used '-q 1' argument of nc, for example.

procajlok commented 1 year ago

Ok, now i have this: obraz

What do I need to change in zabbix? Discovery keys?

zbx-sadman commented 1 year ago

May be it is file access issue. Zabbix can't run nc, for example. You need to read zabbix-agent log file with debug level 3 or more.

zbx-sadman commented 1 year ago

If your Zabbix is v6+, try UniFi Miner/Proxy 1.4.0 with reworked templates:

https://github.com/zbx-sadman/unifi_miner/tree/master/experimental https://github.com/zbx-sadman/unifi_proxy/tree/master/experimental https://github.com/zbx-sadman/unifi_proxy/tree/master/Zabbix_Templates/UniFi%20Proxy%201.4.0%20for%20Zabbix%20v6%2B/Ubiquiti_UniFi_Controller_v_5_6_7_Passive_Checks