From 2274f84754d990907ea517a883e5e1a15a9763e9 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 22 Mar 2026 18:03:01 +0100 Subject: scripts/ping_hosts: Init That is a basic status checking script. It works good enough until monitoring is set-up. --- scripts/ping_hosts.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 scripts/ping_hosts.sh (limited to 'scripts') diff --git a/scripts/ping_hosts.sh b/scripts/ping_hosts.sh new file mode 100755 index 0000000..fba2490 --- /dev/null +++ b/scripts/ping_hosts.sh @@ -0,0 +1,12 @@ +#! /usr/bin/env sh + +user="${1-$USER}" +hosts="${2-server2 server3}" + +for host in $hosts; do + echo "Checking status of '$user@$host.vhack.eu' ..." + + ssh "$user@$host.vhack.eu" "set -x; systemctl --failed" +done + +# vim: ft=sh -- cgit 1.4.1