Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.73 KB

README.md

File metadata and controls

44 lines (28 loc) · 1.73 KB

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 archive 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: isdc1101.isdc.unige.ch-backup, OK, 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 (optional, if not given, check all jobs found for FD)
  • -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
  • --bareos if bareos, remove the -n option from bconsole

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