Giter Site home page Giter Site logo

cloudxtreme / zfsmon Goto Github PK

View Code? Open in Web Editor NEW

This project forked from crbs/zfsmon

0.0 1.0 0.0 1.31 MB

Keep tabs on your ZFS storage with this lightweight script and webapp.

License: Other

Python 15.75% Shell 0.71% Ruby 43.59% JavaScript 11.42% HTML 28.53%

zfsmon's Introduction

zfsmon

zfs monitor (a catchier name may be forthcoming) is a combination of a Python script that runs on your storage servers as a cron job and a Sinatra-based webapp that runs elsewhere to monitor your ZFS storage.

A picture is worth a thousand words, so here are 5000 of them.

Installing

Storage server (client)

  1. Download the egg here.
  2. Make sure you have Python >= 2.6 and the requests library installed.
  3. easy_install zfsmond-0.3.1-py2.7.egg
  4. Copy zfsmond.example.conf to /etc/zfsmond.conf and edit as needed (you will definitely need to set your zfsmon server's hostname)
  5. Add /usr/bin/updater.py to the crontab of someone who can run zfs list and zpool list. Every 15 minutes is recommended.

zfsmon server

  1. Unzip the webapp tarball
  2. bundle install
  3. Add a file called auth.yml to this directory with username-password combos for anyone you want to have access to protected resources (deleting hosts, etc.) For example,
         rainbowdash: cool123
    
         someguy: changeme
    
  4. ruby start.rb start
  5. This will start a server on port 4567 using a sqlite database in the directory you unzipped to.
  6. Next, add a reverse proxy from nginx or Apache to the Thin server on 4567. With Apache, you can usually just add these lines to your httpd.conf or to the Vhost you want to host the webapp on:
    ProxyPass           / http://localhost:4567/
    
    ProxyPassReverse    / http://localhost:4567/
    
    ProxyVia            On
    

zfsmon's People

Contributors

jenrzzz avatar brandt avatar sybernot avatar enegado avatar

Watchers

Kevin Hatfield avatar

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.