Open RiC0MD opened 6 months ago
im having almost similar issues thoug, also using a udm pro
Cannot execute script: Error: cannot get URL: URL using bad/illegal format or missing URL. at [anon] (httprequest.c:371) internal at [anon] () native strict preventsyield at [anon] (function:12) preventsyield tried with testing
xPost from the Zabbix forums. 401 error when testing the connection. curl from the Zabbix host shell with the same details gives an HTTP200
curl -k -X POST --data '{"username": "myUser", "password": "MySecurePassword"}' --header 'Content-Type: application/json' -c cookie.txt https://MyIP:443/api/auth/login
UnifiOS: 3.2.12 Network: 8.1.127 Controller hosted on a UDMPro
Modified the yaml to update the login endpoint to /api/auth/login and the content-type to application/json from x-www-form-urlencoded, but neither have had any change within Zabbix.
Sorry for late response. I got a lot of work to do. I have no UDM Pro Max to test with. Let me check if I can get a device this week to test it.
One thing I noticed besides this link is that the endpoints after login must have /proxy/network. eg.: 'https://host:port/proxy/network/api/stat/sites'
I have same problem like @fontexD I'm on controller version 8.4.62
I have same problem like @fontexD I'm on controller version 8.4.62
I might have time this week to test/debug it myself!
which Udm do u use ?
I’m using UDM-PRO the base version Sent from my iPhoneOn Sep 26, 2024, at 04:24, fontexD @.***> wrote:
I have same problem like @fontexD I'm on controller version 8.4.62
I might have time this week to test/debug it myself! which Udm do u use ?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>
Greetings, I recently upgraded to a UDM Pro Max, but I've not been able to get the template to query via the API,
Cannot execute script: Login failed with status code 401: {"error":{"code":401,"message":"Unauthorized"}}
Tried recreating the zabbix user, I am able to login to the console with the account so user/pass all seems correct, any other ideas?Console Code Version: UniFi OS 3.2.17 Network App: 8.1.127