Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

twpayne/nagios-plugin-bacula

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

check_bacula_client

check_bacula_client is a Nagios plugin to check Bacula client backups. It will warn or indicate a critical state if the last successful backup for a client is older than a specified period. It uses the bconsole program to interact with the Bacula Director and therefore is independent of the client and the database used by the Bacula Director.

Dependencies

Installation

check_bacula_client assumes that the bconsole program can connect automatically without requiring a username or password. You may need to edit bconsole.conf to acheive this and add the nagios user to the bacula group. To test this, try running:

# su -s `which bconsole` nagios

This should drop you into the bconsole shell. If it does not, check the permissions on bconsole.conf and the Bacula management password.

Usage

Example

$ ./check_bacula_client -H isdc1101.isdc.unige.ch-fd -B isdc1101.isdc.unige.ch-backup -w 12h -c 1d
WARNING: Incr, 1493 files, 42.20MB, 2010-02-08 23:01:00 (14.4 hours ago)

Options

  • -H FD_NAME client file director name
  • -B BACKUP_NAME backup job name
  • -w PERIOD generate warning if last successful backup older than PERIOD
  • -c PERIOD generate critical if last successful backup older than PERIOD
  • -b PATH path to bconsole

PERIOD is an floating point number followed by m for minutes, h for hours, d for days, or w for weeks.

About

A Nagios plugin for checking Bacula client backups

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages