graphene-os-server-infrastr.../nginx-stats
2023-07-08 01:03:22 -04:00

20 lines
284 B
Bash
Executable File

#!/bin/bash
set -o errexit -o nounset -o pipefail
[[ $# -ge 1 ]] || exit 1
user=root
. hosts.sh
declare -n hosts=hosts_$1
shift
for host in ${hosts[@]}; do
echo $host
echo
ssh $user@$host curl -sS --unix-socket /run/nginx/status.sock http://localhost/
echo
done