update logwatch integration

This commit is contained in:
Asif Bacchus 2019-07-30 00:44:37 -06:00
parent 3a759f39ac
commit ed62bb1e38
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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"

View File

@ -34,7 +34,7 @@ if ($detailLevel == 0) {
elsif ($ThisLine =~ /\-- \[WARNING\] /) {
$summaryWarn++;
}
elsif ($ThisLine =~ /All processes completed successfully/) {
elsif ($ThisLine =~ /All processes completed/) {
$summarySuccess++;
}
}