zbx-sadman / unifi_proxy

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

Trigger $FW_UAP_LATEST_VER} #17

Closed SeniorAnykey closed 6 years ago

SeniorAnykey commented 6 years ago

After setting up the monitoring, this trigger worked, because the firmware version was obsolete. However, after updating the firmware at all the access point - it also hangs in the list of problems.

zbx-sadman commented 6 years ago

This trigger was not a very good idea, because Zabbix can compare only equivalence of string values.

UniFi Controller v5 (5.6 branch at least) have new feature - checking UniFi site for latest firmware. So, new template (*UBNT_UniFi_UAP*.xml) have trigger (will created from prototype while LLD processed) which detect "upgradable" state of UAP. It say to you that FW is not latest.

zbx-sadman commented 6 years ago

You can see trigger from new template (for UniFi Controller v5) working example:

    {...:unifi.proxy[get,uap,default,upgradable,5523fe519932508ffaf3b404,0].last()}=1

image