graphene-os-server-infrastr.../nginx-stats

19 lines
278 B
Plaintext
Raw Permalink Normal View History

2023-07-08 05:03:22 +00:00
#!/bin/bash
set -o errexit -o nounset -o pipefail
2023-07-16 05:25:16 +00:00
[[ $# -eq 1 ]] || exit 1
2023-07-08 05:03:22 +00:00
user=root
. hosts.sh
declare -n hosts=hosts_$1
for host in ${hosts[@]}; do
echo $host
echo
ssh $user@$host curl -sS --unix-socket /run/nginx/status.sock http://localhost/
echo
done