From ae354d69c9db8e85907745c6b96324fd5393e5b1 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Sun, 13 Jul 2014 10:50:52 +0200 Subject: [PATCH] Daily serverstats email --- bin/crontab/serverstats | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 bin/crontab/serverstats diff --git a/bin/crontab/serverstats b/bin/crontab/serverstats new file mode 100755 index 0000000..1536d7d --- /dev/null +++ b/bin/crontab/serverstats @@ -0,0 +1,21 @@ +#!/bin/bash +DATESTAMP=`date +%Y\-%m\-%d\ %H\:%M` +echo "== Server stats ======" +echo "Stats for: $DATESTAMP" +echo "uptime:" +uptime +echo "======================" +echo "w:" +w +echo "======================" +echo "last -n 20:" +last -n 20 +echo "======================" +echo "vnstat" +/usr/bin/vnstat +echo "======================" +echo "top" +top -bn 1 +echo "======================" +echo "End of report" +echo "======================"