From 70c2d2583757b053dca57c5f59c184bafcd0c349 Mon Sep 17 00:00:00 2001 From: Alexis Ben Miloud--Josselin Date: Mon, 18 Dec 2023 18:05:36 +0100 Subject: [PATCH] evolinux-base: Check for syntax error in cron.log --- evolinux-base/templates/log2mail/evolinux-defaults.j2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/evolinux-base/templates/log2mail/evolinux-defaults.j2 b/evolinux-base/templates/log2mail/evolinux-defaults.j2 index c030ed41..e5e15d10 100644 --- a/evolinux-base/templates/log2mail/evolinux-defaults.j2 +++ b/evolinux-base/templates/log2mail/evolinux-defaults.j2 @@ -8,4 +8,9 @@ template = /etc/log2mail/mail file = /var/log/syslog pattern = "memory read error" mailto = {{ log2mail_alert_email or general_alert_email | mandatory }} -template = /etc/log2mail/mail \ No newline at end of file +template = /etc/log2mail/mail + +file = /var/log/cron.log +pattern = "Syntax error" +mailto = {{ log2mail_alert_email or general_alert_email | mandatory }} +template = /etc/log2mail/mail