Skip to content

Latest commit

 

History

History
55 lines (30 loc) · 1.48 KB

README.md

File metadata and controls

55 lines (30 loc) · 1.48 KB

Logwatch configuration for Rsnapshot logfiles

What does it do?

This is a logwatch filter for Rsnapshot logfiles. It reports successfull executions of rsnapshot and any error that appears in the logfiles.

Example output

Success

[04/Aug/2017:03:40:02] /usr/bin/rsnapshot daily: started
[04/Aug/2017:03:44:14] /usr/bin/rsnapshot daily: completed successfully

Error

--------------------- RSNAPSHOT Begin ------------------------

4 rsnapshot error(s):

[04/May/2015:08:07:48] /usr/bin/rsnapshot daily: ERROR: /usr/bin/rsync returned 255 while processing user@192.168.2.1:/my/dir1
[04/May/2015:08:07:48] /usr/bin/rsnapshot daily: ERROR: /usr/bin/rsync returned 255 while processing user@192.168.2.1:/my/dir2
[04/May/2015:08:07:48] /usr/bin/rsnapshot daily: ERROR: /usr/bin/rsync returned 255 while processing user@192.168.2.1:/my/dir3
[04/May/2015:08:24:30] /usr/bin/rsnapshot daily: ERROR: /usr/bin/rsnapshot daily: completed, but with some errors

---------------------- RSNAPSHOT End -------------------------

Installation

Execute create_symlinks.sh or create symlinks yourself:

  1. Files from conf/logfiles/ to /etc/logwatch/conf/logfiles
  2. Files from conf/services/ to /etc/logwatch/conf/services
  3. Files from scripts/services/ to /etc/logwatch/scripts/services

Usage

Display logfile entries (default output)

~# logwatch --service rsnapshot

Feedback / Improvements

See original repo: https://github.com/derhansen/logwatch-rsnapshot