Extract alert addresses

This commit is contained in:
Jérémy Lecour 2016-11-07 14:07:32 +01:00 committed by Jérémy Lecour
parent dda436a53d
commit 44021346e6
3 changed files with 11 additions and 5 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
/.vagrant
*.retry
/vars/main.yml

View File

@ -5,3 +5,8 @@ mysql_custom_tmpdir: ''
mysql_thread_cache_size: '{{ ansible_processor_cores }}'
mysql_innodb_buffer_pool_size: '{{ (ansible_memtotal_mb * 0.3) | int }}M'
default_alert_mail: root
general_alert_mail: Null
log2mail_alert_mail: Null

View File

@ -1,24 +1,24 @@
file = /var/log/syslog
pattern = "is marked as crashed and should be repaired"
mailto = alert3@evolix.fr
mailto = {{ log2mail_alert_email | general_alert_email | default_alert_email }}
template = /etc/log2mail/mail
file = /var/log/syslog
pattern = "init function returned error"
mailto = alert3@evolix.fr
mailto = {{ log2mail_alert_email | general_alert_email | default_alert_email }}
template = /etc/log2mail/mail
file = /var/log/syslog
pattern = "try to repair it"
mailto = alert3@evolix.fr
mailto = {{ log2mail_alert_email | general_alert_email | default_alert_email }}
template = /etc/log2mail/mail
file = /var/log/syslog
pattern = "InnoDB: Fatal error"
mailto = alert3@evolix.fr
mailto = {{ log2mail_alert_email | general_alert_email | default_alert_email }}
template = /etc/log2mail/mail
file = /var/log/syslog
pattern = "as a STORAGE ENGINE failed"
mailto = alert3@evolix.fr
mailto = {{ log2mail_alert_email | general_alert_email | default_alert_email }}
template = /etc/log2mail/mail