health-check: mention failed systemd services

This commit is contained in:
2024-06-03 09:30:02 +00:00
parent 83404f6769
commit 2d07ff966b

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env nix-shell #!/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 "this script will check that uninsane.org is baseline operational"
echo "it doesn't check all services, just the most critical ones" 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 check "ftp://uninsane.org" lftpget ftp://uninsane.org/README.md && rm README.md
echo ""
echo "systemctl --failed:"
ssh uninsane.org systemctl -q --failed
echo "" echo ""
if [ $last_error -eq 0 ]; then if [ $last_error -eq 0 ]; then
echo "SUCCESS" echo "SUCCESS"