1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31 #!/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 "Restic-Backup:"
echo "$(cat /root/backup.last-run)"
echo ""
echo "Etc:"
echo "Uptime: $(uptime -p)"
echo ""
echo "$(df -h)"