Just a quick question, has anyone written a JSON or other query that can test network availability in the Ubiquity UDM router? Just getting started with Uptime Kuma and since you can’t force a ping test to go out by ISP/gateway address one would have to reply on the internal mechanism of the UDM for availability. I was thinking it should be a simple JSON query of the object state in the gateway:
{
“method”: “GET”,
“url”: “https://<UDM_IP>/api/s/default/stat/device/<DEVICE_ID>”,
“headers”: {
“Content-Type”: “application/json”,
“Authorization”: “Bearer <YOUR_API_TOKEN>”
}
}
But of course you have to deal with security tokens etc so if there is an example out there I would appreciate it if you can point me to it.