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

Directory Tree

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
6704
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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
}
```