Closed reginfo closed 5 years ago
Hello
I see no problem on my host
# zabbix_get -s 172.16.xxx.xxx -k unifi.proxy[discovery,uap,,vap_table]
{"data":[{"{#UAPMAC}":"00:27:22:d4:73:83","{#SITEID}":"5523f87e99320d293df816fd","{#ESSID}":"Airnet One","{#UP}":"1","{#STATE}":"RUN","{#SITEDESC}":"Default"....}]}
# zabbix_get -s 172.16.xxx.xxx -k unifi.proxy[discovery,uap]
{"data":[{"{#SITEID}":"5523f87e99320d293df816fd","{#STATE}":"1","{#SITEDESC}":"Default","{#IP}":"172.16.100.9","{#SITENAME}":"default", ... }]}
Discovery UAP works correctly. Only sometimes I receive this error from zabbix_server.log:
2311:20190515:125016.995 discovery rule "Unifi-ZBX:unifi.proxy[discovery,uap]" became not supported: Value should be a JSON object. 2313:20190515:131018.604 discovery rule "Unifi-ZBX:unifi.proxy[discovery,uap]" became supported
But about discovery,uap,,vap_table, can this problem be related with a lot of data?
Yes, output will be shrinked if data length is more than 64k (One of Zabbix's limit for incoming data).
Hmm, maybe. I`ve added one more unifi_proxy where only 40 APs and there is also some errors over time:
zbx:unifi.proxy[discovery,uap,,vap_table]" became not supported: Value should be a JSON object. zbx:unifi.proxy[discovery,uap,,vap_table]" became supported
So, i have ideas about JSON fix .
Some tests must be performed, but i have no access to controller on middle- and big-size UniFi networks at least to be done it.
And one more question, not related to these thread. Do you have UAP device state values? Just now one is having value of 10 and no trigger worked. So wondering to get all picture.
Yes, found it after posting it. :D
So, i have ideas about JSON fix .
It`s good news.
So, i have ideas about JSON fix .
It`s good news.
May be good, may be not, No tests - no fix. My UniFi network so small.
I can try to help with tests!
Unfortunately, now i have no time for utility improvement & testing for free.
You can wait or paid for my work time.
So...
Try v1.3.8 from experimental. Use JsonOutput option and refer to '-j' command line option description in the UniFi Miner 1.3.0 Russian Guide
Big Thanks!
Just installed. I will test it.
@reginfo It works?
No activity and feedback.
Sorry for not answering. A lot of e-mails coming and not notice yours. Yes, this version works perfectly . My backend is almost clean, receive some times errors about incorrect values and some errors in discovery about dublicates. But I am very thankful to you.
Unifi Proxy 1.3.7 LLD unifi.proxy[discovery,uap,,vap_table] is getting Error : "Value should be a JSON object".
Execution zabbix_get command, I`ve receive this end of script
"{#ID}":"5a965d0de4b06de808c4dad2","{#SITENAME}":"default","{#SITE
If I execute
zabbix_get -s 127.0.0.1 -k unifi.proxy[discovery,uap]
I receive :"{#ID}":"5a4e1a68e4b001a8cb53efb0"}]}