Code Monkey home page Code Monkey logo

bacula_zabbix_integration's Introduction

WARNING: https://www.bareos.org/en/faq/why_fork.html You may be interested in using Bareos instead of original Bacula.

NOTICE: germanodlf created analogous tool based on this, which seems more mature and feature-reach: germanodlf/bacula-zabbix You may be interested to check it out.

bacula_zabbix_integration

Scripts and template to integrate bacula with zabbix.

Abilities

  • separate monitoring for each job
  • low-level auto-discovery of new jobs

Workflow

For each job it's exit status and parameters are forwarded to Zabbix.

Triggers

  • Job exit status indicates error
  • Job was not launched for 36 hours
  • FD non-fatal errors occured
  • SD errors occured
  • Verify job failed

Installation

  • Copy file somewhere. Default is /etc/bacula/bacula-to-zabbix
  • Make sure that zabbix user can launch bconsole and get output of 'show jobs' command.
  • Tweak conf.py:
    • path to zabbix_sender
    • bconsole config file
    • jobs list cache file. (!) This file should be avaliable for write to zabbix user.
    • timeout for bconsole command in seconds (default 5 seconds)
    • hostname for sending messages to zabbix
  • Add UserParameter from to zabbix_agentd.conf. Example in file conf-zabbix_agentd-userparam. Restart zabbix_agentd
  • Config Messages resuorce in bacula-director.conf. Example in file conf-bacula-dir-messages. You can directly include this file with @/etc/bacula/bacula-to-zabbix/conf-bacula-dir-messages. Reload config for bacula-director
  • Add template tmpl bacula-director.xml to zabbix. Assign it to host with bacula-director.
  • Disable auto-generated triggers for jobs that are not backup type(restore jobs, ...)

Feedback

Feel free to send bug reports and feature requests here.

P.S. If this code is useful for you - don't forget to put a star on it's github repo.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.