aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/do-pool-status
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/do-pool-status')
-rwxr-xr-xscripts/do-pool-status12
1 files changed, 11 insertions, 1 deletions
diff --git a/scripts/do-pool-status b/scripts/do-pool-status
index a217357..d58c03b 100755
--- a/scripts/do-pool-status
+++ b/scripts/do-pool-status
@@ -1,3 +1,13 @@
#!/bin/bash
-echo "Kirby:" > /var/www/time.mattrude.com/logs/pool_status.txt && ntpq -p >> /var/www/time.mattrude.com/logs/pool_status.txt && echo "" >> /var/www/time.mattrude.com/logs/pool_status.txt && echo "Twyla:" >>/var/www/time.mattrude.com/logs/pool_status.txt && ssh twyla ntpq -p >> /var/www/time.mattrude.com/logs/pool_status.txt
+LOG='/var/www/time.mattrude.com/logs/pool_status.txt'
+
+echo "" > $LOG
+echo -n "Last ran: " >> $LOG
+date >> $LOG
+echo "" >> $LOG
+echo "Kirby:" >> $LOG
+ntpq -p >> $LOG
+echo "" >> $LOG
+echo "Twyla:" >> $LOG
+ssh twyla ntpq -p >> $LOG