binarybear-de / cmk_check_unifi-controller

Local Check for Check_MK to get information about UniFi devices from Controller
22 stars 2 forks source link

Errors checking devices #15

Open PeterSikora opened 2 years ago

PeterSikora commented 2 years ago

First of all, thanks for that nice plugin!

I installed the script and tried to run it, but it seems that I get some errors:

0 UniFi-Controller - Hostname: XXXHOSTNAMEXXX, Build atag_6.4.54_16067, Check-Script BUILD 2021-11-04-v3 jq: error (at :1): null (null) and string ("E063DAA6D031") cannot have their containment checked 0 UniFiAP-012 clients=0|score=-1;;;-10;100 CONNECTED, Site: default, Clients: 0, Firmware: 6.0.15.13647 (6.0.19.13671 avaible) jq: error (at :1): string ("E063DAA6D031") and null (null) cannot have their containment checked 3 UniFi clients=|score=;;;-10;100 Unkown state ()!, Site: default, Clients: , Firmware: jq: error (at :1): null (null) and string ("78455823F6AF") cannot have their containment checked 3 UniFi clients=|score=;;;-10;100 Unkown state ()!, Site: default, Clients: , Firmware: jq: error (at :1): null (null) and string ("74ACB9C9D56C") cannot have their containment checked 3 UniFi clients=|score=;;;-10;100 Unkown state ()!, Site: default, Clients: , Firmware: ... a lot more, same errors

It seems that for some AP it get's some data. for AP E063DAA6D031 it doesn't get data, it's online and has the same firmware that AP-012 for which I get details. For me it's random. Do you need more information and details? Thanks a lot!