Script for Audits stat by satellites - only overall audits


Have another issue with audits_satellite.sh on Ubuntu Server…
The script shows only the overall Audits, not separately for each satellite.

This time i read the README first without success.

Any idea?

It’s outdated, because dev changed a way how to log information.
Better to request your storagenode API:

Docker version (bash)

for sat in `docker exec -i storagenode wget -qO - localhost:14002/api/dashboard | jq .data.satellites[].id -r`; do docker exec -i storagenode wget -qO - localhost:14002/api/satellite/$sat | jq .data.id,.data.audit; done

Docker version (Powershell)

(docker exec -i storagenode wget -qO - localhost:14002/api/dashboard | ConvertFrom-Json).data.satellites.id | %{"$_"; (docker exec -i storagenode wget -qO - localhost:14002/api/satellite/$_ | ConvertFrom-Json).data.audit}

Dashboard is port mapped (bash)

for sat in `wget -qO - localhost:14002/api/dashboard | jq .data.satellites[].id -r`; do wget -qO - localhost:14002/api/satellite/$sat | jq .data.id,.data.audit; done

Dashboard is port mapped or Windows GUI (Powershell)

((curl http://127.0.0.1:14002/api/dashboard).Content | ConvertFrom-Json).data.satellites.id | %{"$_"; ((curl http://127.0.0.1:14002/api/satellite/$_).Content | ConvertFrom-Json).data.audit}
1 Like