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

Login

Remember Me

check_bacula.py

Rating
0 votes
Favoured:
0
Current Version
1.0
Last Release Date
2017-04-03
Compatible With
  • Nagios 2.x
  • Nagios 3.x
Owner
License
GPL
Hits
802
This check script/plugin checks all backup jobs in a given timeframe (default: 2 days) and report an error or warning if one of the jobs failed, according to the bacula statuses.

Unlike other bacula check scripts it can check all jobs at once, eliminating the risk to manually confugure new/added backup jobs in icinga.

It is used as follows:
```bash
Usage: check_bacula [-H ] [-U ] [-P ] [-D ] [--warning-severity ] [--critical-severity ] [--days ] [--help] [-d] [--list-status]

Options:
-h, --help = Show this help
-H = Database hostname (default: localhost)
-U = Database username (default: read-only)
-P = Database password (default: read-only)
-D = Database name (default: bacula)
--warning-severity = From this number reports WARNING (default: 15)
--critical-severity = From this number reports CRITICAL (default: 25)
--days = Number of days to look back for jobs (default: 2)
-d = Show debug information
--list-status = List the available bacula statuses
```

Or added in icinga like this:
```
define service {
use backup-service
host_name backupserver
service_description Bacula-backup
check_command check_bacula!-U $USER28$ -P $USER29$ -D bacula --warning-severity=15 --critical-severity=25 --days=2
}
```