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 - Stage : `/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'
- minute: '36'
- hour: '15'
+ command: '/var/www/cgi-bin/send_logs_via_email.sh'
+ minute: '37'
+ hour: '17'
description: send webserver logs via email