zbx-sadman / unifi_proxy

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

Zabbix Server does not get data #30

Closed amosfolz closed 5 years ago

amosfolz commented 5 years ago

Hello,

Can you please check my configuration? I have been struggling to get Unifi_Proxy to work for many hours now. I can run the test command in documentation and get a response OK: image

Then on my Zabbix Server I have created a new host and applied the templates you provided: image

But no data is ever gathered, only "Unifi System Info": image

zbx-sadman commented 5 years ago

Hello Amos

Seems like Zabbix's active check feature setup is not complete. See ServerActive option in the agent's config file or just use "Passive_Checks" templates

amosfolz commented 5 years ago

Thanks for the suggestion. I do have ServerActive and Hostname values set in my zabbix_agentd.conf file.

Any other ideas?

amosfolz commented 5 years ago

Sadman,

Thanks for the pointers. With your help I was able to determine I had the wrong configuration. I checked error log at var/log/zabbix/zabbix_agent.log and noticed the below error message:

  4427:20190508:160207.282 sending [{"request":"active checks","host":"SRV6"}]
  4427:20190508:160207.282 before read
  4427:20190508:160207.284 got [{"response":"failed","info":"host [SRV6] not found"}]

This is due to me being new to Zabbix, but I thought the config Hostname value should equal DNS server hostname. This is incorrect. Here is a summary in case it helps someone in the future.

image

zbx-sadman commented 5 years ago

Amos, all right now.

"Host interface" field's DNS Name used to make passive checks only (via DNS resolving). You can use "Visible name" field and "assign" human-readable name to host.

Please close issue if no problem still there and good luck with UniFi works in the Marion city.