Home Directory Plugins Backup and Recovery check_burp_backup_age

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com


Remember Me


Current Version
Last Release Date
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x

Help Support Ethan Galstad's New Project:

Help Support Ethan

A Message From The Founder...

As the founder of Nagios, I'm asking for your help in a cause that's dear to my heart.

I'm launching a new project to help better the world by providing the information, ideas, and inspiration that I believe can improve the lives of people everywhere.

I know you're busy managing networks, but I would appreciate it if you would consider liking my Facebook page and showing your support for the content and messages I produce by sharing them with your friends and family.

You can learn more about my project by visiting ethangalstad.me/nagios. Thank you for your time. I wish you all the best in your endeavors, whatever they may be.

- Ethan

Nagios local check for burp's timestamps backup age.
Always check github for last version.
Burp backup project: (http://burp.grke.org/)
./check_burp_backup_age.py -h
usage: check_burp_backup_age [-h] [-v] -H [HOSTNAME] [-d [DIRECTORY]]
[-w [WARNING]] [-c [CRITICAL]]

Local check, Check freshness of last backup for a given host name. Running on
the backup server this program will check the timestamp file of the last
backup for a given host and get the age of this last successful run. This age
is then compared to thresolds to generate alerts.

optional arguments:
-h, --help show this help message and exit
-v, --version show program version
-H [HOSTNAME], --hostname [HOSTNAME]
hostname (directory name for burp) [default: None]
-d [DIRECTORY], --directory [DIRECTORY]
base directory path for backups (where are the
backups?) [default: /backups]
-w [WARNING], --warning [WARNING]
Warning thresold, time in minutes before going to
warning [default: 1560]
-c [CRITICAL], --critical [CRITICAL]
Critical thresold, time in minutes before going to
critical [default: 1800]

Note that this is a local check, running on the backup server. So the hostname argument is not used to perform any distant connection.

*This is a local check, so use it with NRPE or check_by_ssh or such tools.
* warning and critical thresolds are expressed in minutes, the default values are:
- warning: 26 hours so 1560 minutes
- critical: 30 hours so 1800 minutes


~# ./check_burp_backup_age.py -d /data/burp -H foo.example.com
BURP OK - Last backup is fresh enough: 0 day(s) 21 hour(s) 23 minute(s) (1283<1560)

~# ./check_burp_backup_age.py -d /data/burp -H foo.example.com -w 1200 -c 1500
BURP WARNING - Last backup starts to get old: 0 day(s) 21 hour(s) 23 minute(s) (1283>=1200)

~# ./check_burp_backup_age.py -d /data/burp -H foo.example.com -w 800 -c 1200
BURP CRITICAL - Last backup is too old: 0 day(s) 21 hour(s) 23 minute(s) (1283>=1200)

~# ./check_burp_backup_age.py -d /data/burp -H bar.example.com
BURP CRITICAL - Host backup directory /data/burp/bar.example.com does not exists

:~# ./check_burp_backup_age.py -d /backups -H bar.example.com
BURP CRITICAL - Base backup directory /backups does not exists