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.

bacula_zabbix_integration's People

Contributors

selivan avatar wavilen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bacula_zabbix_integration's Issues

Enhance docs

Hello.
I've set up this system. It sort of works, but I'm no quite sure. Can you elaborate on these issues:

  1. When should I expect the PROBLEM alert, and when will the trigger flip back into OK state?
  2. The readme speaks of "auto-generated" triggers (some of which should be disabled). There's only one trigger. Could you please explain?
  3. Is it really fool-proof? What happens if, say, bconsole times out (or any other issue occurs)? Shall I still get the alert?

zabbix-sender

Hi,

I wanted to try this out to monitor our Bacula servers. thing is that with the installation of the zabbix agent there was no zabbix_sender installed. Where do you get this? Zabbix is version 2.0

thnx

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.