Skip to content

Mq89/logwatch-rsnapshot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Logwatch script for RSnapshot logfiles

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Perl 73.3%
  • Shell 26.7%