ctucx.git: ansible-configs

My personal ansible roles and playbooks

commit df82f419dc8dfebc6a470c48117098d2db27c8c6
parent 58adea6f2b8553649dc0933e532fdf65d92b0515
Author: Leah (ctucx) <leah@ctu.cx>
Date: Mon, 25 Jan 2021 22:50:39 +0100

add server-status.sh
1 file changed, 27 insertions(+), 0 deletions(-)
A
scripts/server-status.sh
|
27
+++++++++++++++++++++++++++
diff --git a/scripts/server-status.sh b/scripts/server-status.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+HOSTNAME=`hostname`
+
+echo "From: ${HOSTNAME}.ctu.cx <${HOSTNAME}@ctu.cx>"
+echo "To: leah <le0nth3in@gmail.com>"
+echo "Subject: Server-Status: ${HOSTNAME}"
+echo "Date: `date -R`"
+echo ""
+
+echo "Server-Status: $(hostname)"
+echo "================================="
+echo "Storage:"
+echo "Matrix-Server:		$(du -hs /var/lib/synapse)"
+echo "Mail-Server:		$(du -hs /var/lib/maddy)"
+echo "Pleroma-Data:		$(du -hs /var/lib/pleroma)"
+echo "Gitolite-Data:		$(du -hs /var/lib/git)"
+echo "Webroot-Data:		$(du -hs /var/lib/websites)"
+echo "Logfiles:		$(du -hs /var/log)"
+echo "Oeffisearch-Data:	$(du -hs /var/lib/oeffisearch)"
+echo "PostgreSQL-Data:	$(du -hs /var/lib/postgresql)"
+echo "Prometheus-Data:	$(du -hs /var/lib/prometheus)"
+echo ""
+echo "Uptime: $(uptime -p)"
+echo "Last backup: $(cat /root/backup.last-run)"
+echo ""
+echo "$(df -h)"+
\ No newline at end of file