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