I have also problems with the uptime of my Node. So I wanted to try the Script. But
#!/bin/bash
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[] | select(.totalCount != .onlineCount)]}'
done
uptime-logs.sh: 1: jq: not found
./uptime-logs.sh: line 3: jq: command not found