Skip to content

ausinch/check_backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

check_backup

Nagios check of backup results On this server all backups create a one line status file in a status directory.
This check looks at that file, Nagios displays the result.
For a green Ok status the file must contain Success and not be older than warn_level

Below we see all backups were successful but 2 machines are in a critical state as the backups occured longer than parameter crit_level

Nagios_servers

Nagios_backups

Nagios cfg example

 define service {
     use generic-service
     host_name Backups
     service_description VM Center Backups
     check_command check_backup!debian10-vm.local!2880!4320
     notifications_enabled   1
     }

 define service {
     use generic-service
     host_name Backups
     service_description Onsite Backups
     check_command check_backup!onsite!10080!20160 # Warn after 1 weeks. Critical after 2 weeks
     notifications_enabled   1
     }

 define service {
     use generic-service
     host_name Backups
     service_description Offsite Backups
     check_command check_backup!offsite!30240!60480 # Warn after 3 weeks. Critical after 6 weeks
     notifications_enabled   1
     }

Break down

check_command check_backup!onsite!10080!20160 # Warn after 1 weeks. Critical after 2 weeks

Where:
onsite = file to check
10080 = warn_level
20160 = crit_level

in minutes.

onsite file contence

Success - Tue 28 Nov 15:38:34 CET 2023

There is one file for each device backed up and for the BTRFS snaps

About

Nagios check of BTRFS snaps and PC backups.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages