Giter Club home page Giter Club logo

rsnapshot_diamond_collector's Introduction

rsnapshot_diamond_collector

Overview

This collector will inspect a directory containing rsnapshot logs and post the last know runtime duration by taking the differnce in time from when a host started a rsnapshot job via echo pid > /var/run/rsnap_name.pid and the completion of that same job by finding rm -f /var/run/rsnap_name.pid that follows. All start times that don't have a corresponding stop time are thrown out as we assume the server had a failure mid rsnap job.

How to install

Puppet implementation

  • install garethr/garethr-diamond module

    # mod for managing diamond
      mod 'garethr-diamond',
        :git    => 'https://github.com/fasrc/garethr-diamond.git',
    
  • configuration in yaml format:

    profiles::diamond::collectors:
      'RsnapshotRuntimeCollector':
        options:
          path_prefix: "diamond.%{::datacenter}"
          rsnap_log_home: "/var/log/rsnapshot"
    profiles::diamond::collector_installs:
      'rsnapshot_diamond_collector':
        repo_url: 'https://github.com/fasrc/rsnapshot_diamond_collector.git'
        repo_revision: 'master'
    
#### Manual install

* installing diamond
 * Read the [documentation](http://diamond.readthedocs.org)
 * Install via `pip install diamond`.
   The releases on GitHub are not recommended for use.
   Use `pypi-install diamond` on Debian/Ubuntu systems with python-stdeb installed to build packages.
 * Copy the `diamond.conf.example` file to `diamond.conf`.
 * Optional: Run `diamond-setup` to help set collectors in `diamond.conf`.
 * Modify `diamond.conf` for your needs.
 * Run diamond with one of: `diamond` or `initctl start diamond` or `/etc/init.d/diamond restart`.

* Add the following lines to the daimond collectors config area:

 CentOS => /etc/diamond/collectors/RsnapshotRuntimeCollector.conf
 ```enabled=True
 path_prefix = <prefix_path>
 rsnap_log_home = </var/log/rsnapshot> 
  • Add the script to diamond collectors repository section:

CentOS => /usr/share/diamond/collectors/rsnapshotruntimecollector/rsnapshotruntimecollector.py

rsnapshot_diamond_collector's People

Contributors

luisilva avatar

Watchers

 avatar

Forkers

fasrc

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.