From 2d07ff966be79ee1c0da4b0556b3a3e32510fb93 Mon Sep 17 00:00:00 2001 From: Colin Date: Mon, 3 Jun 2024 09:30:02 +0000 Subject: [PATCH] health-check: mention failed systemd services --- scripts/health-check | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/health-check b/scripts/health-check index bac79bdc..f9999269 100755 --- a/scripts/health-check +++ b/scripts/health-check @@ -1,5 +1,5 @@ #!/usr/bin/env nix-shell -#!nix-shell -i bash -p curl -p dig -p iputils -p lftp +#!nix-shell -i bash -p curl -p dig -p iputils -p lftp -p openssh echo "this script will check that uninsane.org is baseline operational" echo "it doesn't check all services, just the most critical ones" @@ -45,6 +45,10 @@ check "git.uninsane.org" git ls-remote origin --quiet check "ftp://uninsane.org" lftpget ftp://uninsane.org/README.md && rm README.md +echo "" +echo "systemctl --failed:" +ssh uninsane.org systemctl -q --failed + echo "" if [ $last_error -eq 0 ]; then echo "SUCCESS"