Bacula Storage Daemon statistics

About

The bacula_sd plugin allows the munin monitor to graph statistics of the Bacula backup system. The bacula_sd plugin specifically charts the write throughput of the configured bacula-sd devices.

The plugin works by calling the bconsole program and screen scraping the output.

Screenshot

bacula_sd

Download

bacula_sd

Installation

  1. Make sure the bconsole binary is accessible in your path and the status command works as expected.
  2. Copy or link the bacula_sd script into your munin-node plugin directory, usually /etc/munin/plugins.
  3. Configure the munin-node to run the bacula_sd plugin as user root or another user able to execute bconsole and connect to the director:
    [bacula_*]
    user root
    
  4. If you want the munin plugin to output the hostname of the storage daemon, set the munin environment variable report_hostname to yes:
    [bacula_*]
    user root
    env.report_hostname yes
    
  5. Test the plugin by calling munin-run bacula_sd config and by executing munin-run bacula_sd. Both commands should output sensible data without failing.

Notes

  • The plugin is best run on the same system as the director. This way, no network latency is introduced into the measurement as the connection is considered to be local.
  • Due to the nature of bconsole, the reported write speed at the beginning and the end of a backup job might be a bit off. In reality however, the monitored speed matches up nicely with the write throughput reported by bacula at the end of a spooling run.
  • Due to the same design limit and the low sampling accurace tape changes will introduce a certain impreciseness. For system monitoring purposes however this should be negligible.

Author

The munin plugin was written by Andreas Thienemann for bawue.net.

License

The code is available as free software under the GPL Version 2.

Bugs and Contact

In case of bugs, please either open a ticket in this Trac instance or write to <andreas (at) bawue (dot) net>.