Ad Widget
Collapse
Monitor UniFi Controller via API without additional scripts
Collapse
X
-
I've figured out what the error is, still working on next steps.
This is happening because I am using an internal address, and when you browse to it, you get a self-signed cert error. This is causing the issue with it saying unauthorised; if you test via a curl without -k, it generates the same error.
Anyone know how to get it to ignore the self-signed cert. When I looked it seems like you can't.Comment
-
I know there's a template out there for an older version of the API (v0.1)
This one worked as of 1.0 and doesn't use basic auth but uses the API key instead AND gets site names as 'Descriptions'.
Based off the one by Chises (I couldn't get that one to work)👍 1Comment
-
I don't think this is your real problem. I am pointing mine at the private IP of a server with a commercial cert = certificate error as you cannot get an IP as a name on a commercial cert. But Zabbix works just fine, discovered 900+ items with this.Comment
-
Thanks for the awesome template, after applied this template I've an issue with host discover item as below:I know there's a template out there for an older version of the API (v0.1)
This one worked as of 1.0 and doesn't use basic auth but uses the API key instead AND gets site names as 'Descriptions'.
Based off the one by Chises (I couldn't get that one to work)
Preprocessing failed for: {"data":{"id":"24b5215b-543d-4eb3-8af8-c96890988506:1456974794","hardwareId":"63457cb3-ad95-4ab1-...- Failed: TypeError: cannot read property 'forEach' of undefined
at [anon] (duktape.c:60534) internal
at [anon] (function:6) preventsyield
Comment
- Failed: TypeError: cannot read property 'forEach' of undefined
Comment