Droping online time

Continuing the discussion from My uptime should be 100% on all satellites i have not gotten any uptime robot notifications of downtime in months:

Hello,

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

Is something wrong in the script?

You need install jq program, if it’s ubuntu/debian just type sudo apt-get update; sudo apt-get install jq

2 Likes
"id": "12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S",
"auditHistory": [
    {
      "windowStart": "2024-05-13T12:00:00Z",
      "totalCount": 4,
      "onlineCount": 3
    },
    {
      "windowStart": "2024-05-17T00:00:00Z",
      "totalCount": 8,
      "onlineCount": 7

"id": "12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs",
  "auditHistory": [
    {
      "windowStart": "2024-05-14T12:00:00Z",
      "totalCount": 22,
      "onlineCount": 17
    },
    {
      "windowStart": "2024-05-15T00:00:00Z",
      "totalCount": 20,
      "onlineCount": 19
    },
    {
      "windowStart": "2024-05-15T12:00:00Z",
      "totalCount": 15,
      "onlineCount": 13
    },
    {
      "windowStart": "2024-05-16T12:00:00Z",
      "totalCount": 23,
      "onlineCount": 20
    }


So, what does it say to me? The ID isn’t my node.

These are the satellites.

1 Like

It says when your node was not available for these satellites. Next step is to check your router/firewall/system logs, why your node was down.