patricegautier/unifiZabbix

Channel Utilization na

tp-edjunior opened this issue · 20 comments

Hi Patrice.

All my implementation has done and everything is working but I'm missing some data related to channel interference and utilization on 5GHz spectrum.

My mcaDumpShort.err does not show nothing about it.

Zabbix is gathering data normally and the graphs are being populated as well as you can see in the image below, the ng spectrum are gathering but na don't.

Is there something I missed?

Thank you.

Screenshot 2023-08-15 at 14 52 21

Is the AP you are looking at active on that spectrum? does it have any clients? Also, do you see data for it in the Unifi site/app?

My main network is only 5GHz. There are 18 clients connected to this AP.

The ng network is for IoT only and yes it is showing on the controller data for 'na' and 'ng' networks.

Thank you Patrice.

Ok so to be clear, this AP has some NA clients, but only the Ng Zabbix items for usage,interference etc.. have been created? Or have the NA items been created and they are not populated?

The 'na' items have not been created. Just the 'ng'. Thank you.

Is zabbix reporting any issue on that AP with either the 'Active Radio' discovery rule, or any of the prototype items in that rule?

In the UI, you can go to the Host view for that AP, and then discovery rules on the top menu..

No errors or issues have been discovered.

All the items are working as expected as far as I can see unless the hostname.

Screenshot 2023-08-18 at 09 06 51
Screenshot 2023-08-18 at 09 08 28
Screenshot 2023-08-18 at 09 09 16

Ok. can you send the output, from your zabbixServer of:

mca-dump-short.sh -d <ip address of AP> -u <userName> -t AP

you might want to obfuscate private info in there..

Good morning Patrice. Follow the attachment suggested.
mca-dump-short.txt

I've removed the template from APs. Imported the new yaml and attach the new yaml to APs.

No 'na' on active radio discovery yet just 'ng' as before.

Please let me know if you need something more.

Thank you.

Screenshot 2023-08-21 at 17 11 29

Does not change. The same 37 items. Follow the attachments.

Can I provide some different log?
Screenshot 2023-08-21 at 17 26 28
Screenshot 2023-08-21 at 17 26 43

Patrice, I did a test on item prototype to check the data return and I got an error. Follow the screenshot.
Screenshot 2023-08-22 at 16 58 00

Can you confirm what the active radio discovery JSONPath preprocessing looks like on the AP template:

image

That should be:

$.radio_table.[?(@.athstats.name != "" && (@.athstats.noise_floor < 0 && @.athstats.noise_floor > -500 || @.cu_total > 0))]

and please give me another run of mca-dump-short on that AP.. Thanks

Follow the JSON Path:

$.radio_table.[?(@.athstats.name != "" && (@.athstats.noise_floor < 0 && @.athstats.noise_floor > -500 || @.cu_total > 0))]

And mac-dump attached.

mca-dump.txt

FYI

Those APs that isn't showing the active radio discovery are Long Range models.

Recently I have added a U6 Pro and adding to Zabbix. Follow the attachment with the output from ARD.

It's working now, please do not consider the attachment.

Screenshot 2023-09-18 at 16 55 14

Sorry now I am confused.. what's working and what's broken?

I've just noticed I'm missing 5GHz data for my U6 Lite.
Will investigate when I get back home.

┌──[12:39:38]─[0]─[rpi3:/usr/lib/zabbix/externalscripts]
└──| sudo -u zabbix ./mca-dump-short.sh -u pax -v -d 172.16.1.89 -t AP
pax@172.16.1.89's password: 
parse error: Invalid numeric literal at line 1, column 4
{ "at":"12:41:00", "r":"validationError: .vap_table? != null and .radio_table != null", "device":"172.16.1.89", "mcaDumpValidationError":"Error" }

mcaDumpShort.err.txt