From ed62bb1e38e386adbd60ad3008c7855c8892d0b8 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Tue, 30 Jul 2019 00:44:37 -0600 Subject: [PATCH] update logwatch integration --- etc/logwatch/conf/logfiles/{backup.conf => seafbackup.conf} | 4 ++-- etc/logwatch/conf/services/{backup.conf => seafbackup.conf} | 2 +- etc/logwatch/scripts/services/{backup => seafbackup} | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename etc/logwatch/conf/logfiles/{backup.conf => seafbackup.conf} (82%) rename etc/logwatch/conf/services/{backup.conf => seafbackup.conf} (87%) rename etc/logwatch/scripts/services/{backup => seafbackup} (97%) diff --git a/etc/logwatch/conf/logfiles/backup.conf b/etc/logwatch/conf/logfiles/seafbackup.conf similarity index 82% rename from etc/logwatch/conf/logfiles/backup.conf rename to etc/logwatch/conf/logfiles/seafbackup.conf index ed36c40..0fe89f6 100644 --- a/etc/logwatch/conf/logfiles/backup.conf +++ b/etc/logwatch/conf/logfiles/seafbackup.conf @@ -1,9 +1,9 @@ # Location of your script's log file, -l parameter -LogFile = /path/to/your/backup.log +LogFile = /path/to/your/seafbackup.log # Format of logrotate archives for your script. Example assumes compression and # extension preservation -Archive = /path/to/your/logfile.ext.?.gz +Archive = /path/to/your/seafbackup.log.?.gz # Apply the correct date/time filtering to match the format of the script's log # We are using a custom pl script in /etc/logwatch/scripts/shared/ You don't diff --git a/etc/logwatch/conf/services/backup.conf b/etc/logwatch/conf/services/seafbackup.conf similarity index 87% rename from etc/logwatch/conf/services/backup.conf rename to etc/logwatch/conf/services/seafbackup.conf index e06ad32..f27537c 100644 --- a/etc/logwatch/conf/services/backup.conf +++ b/etc/logwatch/conf/services/seafbackup.conf @@ -1,5 +1,5 @@ # Name of the logfile group without any extension -LogFile = backup +LogFile = seafbackup # Heading displayed on Logwatch's report for this service Title = "System and Seafile Backup" diff --git a/etc/logwatch/scripts/services/backup b/etc/logwatch/scripts/services/seafbackup similarity index 97% rename from etc/logwatch/scripts/services/backup rename to etc/logwatch/scripts/services/seafbackup index 28e4f28..dfffc16 100644 --- a/etc/logwatch/scripts/services/backup +++ b/etc/logwatch/scripts/services/seafbackup @@ -34,7 +34,7 @@ if ($detailLevel == 0) { elsif ($ThisLine =~ /\-- \[WARNING\] /) { $summaryWarn++; } - elsif ($ThisLine =~ /All processes completed successfully/) { + elsif ($ThisLine =~ /All processes completed/) { $summarySuccess++; } }