send_logs_via_email:
ensure: 'present'
user: root
- command: 'echo -e "Sehr geehrte Damen und Herren,\n\nanbei die Logfiles vom `/bin/date -d "yesterday" "+%d.%m.%Y"`\n\nMit freundlichen Gruessen\nIT Service" | /usr/bin/mailx -s "Spar-Checker-Logs - Live : `/bin/date -d "yesterday" "+%d.%m.%Y"`" -a sparchecker_access.log-`/bin/date -d "yesterday" "+%Y%m%d"`.gz -a sparchecker_error.log-`/bin/date -d "yesterday" "+%Y%m%d"`.gz gerstenberg@pixelpark.com'
+ command: '/var/www/cgi-bin/send_logs_via_email.sh'
minute: '0'
- hour: '6'
+ hour: '8'
description: send webserver logs via email