zbx-sadman / unifi_proxy

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

unifi.proxy empty values or 0 #45

Open jbfabbe opened 3 years ago

jbfabbe commented 3 years ago

Hi, I installed the miner.pl but I receive a lot of 0 values and even no values. I'm uqing the commands unifi.proxy, when using it in command line with zabbix_agentd -t unifi.proxy I receive the correct values but not in the zabbix interface.

Screenshot 2021-06-30 at 16 15 47
zbx-sadman commented 3 years ago

Hello

Try to test keys with ''zabbix_get'' utility from the Zabbix Server host.

jbfabbe commented 3 years ago

This is working : zabbix_get -s 127.0.0.1 -k unifi.proxy[sum,uap,firkkarq,num_sta,,0] 28

zbx-sadman commented 3 years ago

I guess that you do not set up Zabbix Agent for working in Active mode and Items with "Zabbix Agent (active)" type does not get metric values.

jbfabbe commented 2 years ago

Thanks ! In the meantime I want to use the unifi_proxy instead if the miner. But what's not clear to me is where I need to install the unifi_proxy ? On the unifi controller or the zabbix server ?

zbx-sadman commented 2 years ago

If your UniFi server host has enough resources (memory, cpu) - put UniFi Proxy on it. Otherwise you can place Proxy on Zabbix Server or any other Linux box.

I think so.