nagios check for Bacula Pool volumes

I’m thinking about a Nagios check to let me know the status of various Bacula pools. As in, how many volumes are left, versus the maximum number of volumes permitted in this pool.

Here is the bconsole command I would use:

$ echo 'list pool=IncrFile' | bconsole  
Connecting to Director bacula.unixathome.org:9101
1000 OK: bacula-dir Version: 5.2.12 (12 September 2012)
Enter a period to cancel a command.
list pool=IncrFile
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
+--------+----------+---------+---------+----------+-------------+
| poolid | name     | numvols | maxvols | pooltype | labelformat |
+--------+----------+---------+---------+----------+-------------+
|     24 | IncrFile |      87 |      95 | Backup   | IncrAuto-   |
+--------+----------+---------+---------+----------+-------------+

And here’s the command line bit which might work:

$ echo 'list pool=IncrFile' | bconsole | head -10 | tail -1 | awk '{print $6, $8}'
87 95

I’ll ponder this a bit longer, and decide if I really want this monitored.

Website Pin Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google StumbleUpon Premium Responsive

Leave a Comment

Scroll to Top