Code Monkey home page Code Monkey logo

pywbacula's Introduction

pyWBacula v0.1

Another one simple bacula web reports interface.

I wasn't satisfied with current web interfaces for bacula. Cause they show default information which I can get from console and doesn't show really useful information (like big files in backup, long-running-backups etc).

So as a result I start writing own web reports interface.

#Requirements

  • Enabled bacula history for jobs
  • PostgreSQL database (I use postgres on all my servers with bacula)
  • python Flask

#Documentation Instalation notes

#Notes

  • requirements.txt contains modules which I use in my web interface
  • css is based on SemanticUI (http://semantic-ui.com/)
  • for database connection I use SQLAlchemy

Installation

Download

git clone https://github.com/l13t/pyWBacula.git

Prepare and enable virtual enviroment

cd pyWBacula
virtualenv venv
source venv/bin/activate

Install python modules

pip install -r requirements.txt

Modify configuration files

After downloading you should rename next configuration files:

cp config.py.example config.py cp app/config.py.example app/config.py

app/config.py syntax

  • DB_URI:

DB_URI = 'postgresql://<user>:<password>@<host>:<port>/<db_name>?client_encoding=utf8'

Currently only PostgreSQL supported.

Run application

Run in standalone mode

You can use run.py to start application:

./run.py

Or you can use gunicorn:

venv/bin/gunicorn --bind 0.0.0.0:15995 run:app

Run on startup

To run on startup just do next steps:

cp utils/pywbacula /etc/init.d/
chmod 755 /etc/init.d/pywbacula && chown root:root /etc/init.d/pywbacula
update-rc.d pywbacula defaults
update-rc.d pywbacula enable

Edit /etc/init.d/pywbacula to change WWW_HOME and APP_USER variables.

Grafana+InfluxDB reports

In utils you can find scripts which would help you create graph reports with Grafana+InfluxDB.

  • utils/bacula_to_influx - custom cronjob to push data to InfluxDB
  • utils/results_to_influx.sh - script which push data to InfluxDB
  • utils/grafana_panel_template.json - dashboard template for Grafana to show results

Known Vulnerabilities

pywbacula's People

Contributors

l13t avatar pyup-bot avatar snyk-bot avatar tkuehne-deliveryhero avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

pywbacula's Issues

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.