Permalink
Browse files

Added cron

  • Loading branch information...
1 parent b99aa7b commit 204731912cbfb39a0a7daef874dc1984c1e05306 Andrew Johnstone committed Oct 17, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 cron.sh
View
@@ -0,0 +1,7 @@
+/usr/sbin/logster -D --metric-prefix="servers.`hostname`.apache.error_log" --output=graphite --graphite-host=graphite.everlution.com:2003 ApacheErrorLogster /var/log/apache2/error.log
+
+for i in $(ls /var/www/vhosts/); do
+ sanitized_name=$(echo $i | sed 's/[.]/_/g;');
+ /usr/sbin/logster -D --metric-prefix="servers.`hostname`.project.${sanitized_name}.apache.error_log" --output=graphite --graphite-host=graphite.everlution.com:2003 ApacheErrorLogster /var/www/vhosts/$i/statistics/logs/error.log
+done;
+

0 comments on commit 2047319

Please sign in to comment.