Hi
I’m writing my node monitoring. How can I check status Online or Offline from API?
Thanks
Hi
I’m writing my node monitoring. How can I check status Online or Offline from API?
Thanks
How often nodes are pinged?
You can check your audits history, the interval is not hardcoded
See
foreach ($item in ((Invoke-WebRequest http://localhost:14002/api/sno).Content | ConvertFrom-Json).satellites.id) {
$item;
((Invoke-WebRequest http://localhost:14002/api/sno/satellite/$item).Content | ConvertFrom-Json).auditHistory.windows}
}
for item in `curl -sL http://localhost:14002/api/sno | jq '.satellites[].id' -r`; do
curl -s http://localhost:14002/api/sno/satellite/$item | \
jq '{id: .id, auditHistory: .auditHistory.windows}'
done
Thank you very much, Alexey.
I was wondering if I can use this information to check if my NODE is online.
For example:
Check “lastPinged” every 60 seconds and if the value changed then it is Online.