zbx-sadman / unifi_proxy

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

[1.3.7] Unable to import templates #29

Closed syphernl closed 5 years ago

syphernl commented 5 years ago

I am trying to import the new / updated templates in UniFi Proxy 1.3.0/UBNT_UniFi_Controller_v_5_Active_Checks but they do not seem to work:

Controller

Cannot find item "unifi.proxy[sum,uap,{#NAME},guest-num_sta,,0]" on "-Template UBNT UniFi Controller v5 - active checks" used in graph prototype "[{#DESC}] Connected clients to UAPs" of discovery rule "UniFi Sites discovery" on "Template UBNT UniFi Controller v5 - active checks". [conf.import.php:166 → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CConfiguration->import() → CConfigurationImport->import() → CConfigurationImport->processDiscoveryRules() in include/classes/import/CConfigurationImport.php:122]

UAP

Cannot find item "unifi.proxy[min,user,{#SITENAME},"[ap_mac={#MAC}]._uptime_by_uap",,0]" on "-Template UBNT UAP - UniFi Controller v5 - active checks" used in graph prototype "[{#SITEDESC}] UAP "{#NAME}" client connect duration" of discovery rule "UniFi Access Points discovery" on "Template UBNT UAP - UniFi Controller v5 - active checks". [conf.import.php:166 → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CConfiguration->import() → CConfigurationImport->import() → CConfigurationImport->processDiscoveryRules() in include/classes/import/CConfigurationImport.php:122]

USW

User

I'm running Zabbix 4.2.1 and I was able to import the old templates in to 4.0.x and upgrade to Zabbix 4.2 later on without any issues.

4.0 I have also tested this on Zabbix 4.0.7 but no luck either.

3.0 Tested this on 3.0.27 as well, getting errors there as well.

They import, but are showing the following errors:

Cannot find item "unifi.proxy[get,health,{#SITENAME},"[subsystem={#SUBSYSTEM}].status",,NOT_FOUND]" on "-Template UBNT UniFi Controller v5 - active checks" used in trigger prototype "Subsystem "{#SUBSYSTEM}" in warning state" of discovery rule "UniFi Health discovery" on "Template UBNT UniFi Controller v5 - active checks".

Cannot find item "unifi.proxy[get,uap,{#SITENAME},upgradable,{#ID},0]" on "-Template UBNT UAP - UniFi Controller v5 - active checks" used in trigger prototype "[{#SITEDESC}] UAP "{#NAME}" firmware is not latest" of discovery rule "UniFi Access Points discovery" on "Template UBNT UAP - UniFi Controller v5 - active checks".
zbx-sadman commented 5 years ago

Hello

My bad. I fixed it.

syphernl commented 5 years ago

Confirmed, they work fine now! Should've spotted that :smile: