Code Monkey home page Code Monkey logo

salmon's Introduction

salmon

https://secure.travis-ci.org/lincolnloop/salmon.png?branch=master

A multi-server monitoring system built on top of Salt using Django.

It can serve both as an alerting system like monit and a monitoring system like munin (using Graphite's whisper database).

It aims to be simpler, easier to setup, and more efficient than its predecessors by taking advantage of Salt for data gathering and transport.

http://cl.ly/image/3s340i0W0N06/content.png

Installation

It's expected that you'll run this on the same server as the Salt master, however it is also possible to run on a host capable of SSHing to the master.

To bootstrap the project:

virtualenv salmon
source salmon/bin/activate
pip install salmon
salmon init
salmon upgrade
salmon collectstatic

Fire up the web server with:

salmon start

Now create a config file for your checks. There is a commented example in the repo. Store this in the same directory as your conf.py file (default: ~/.salmon/checks.yaml).

Once you have your checks defined, you can run manage.py run_checks periodically with cron and view the status at http://localhost:9000.

Configuring Salt

For security reasons, you shouldn't run this as root on your server. Instead, use (or create) a less privileged user and modify your Salt master config to only provide access to the specific functions it needs to check. For example, you could create /etc/salt/master.d/monitor_acl.conf with the following contents:

client_acl:
  youruser:
    - '*':
      - test.ping
      - service.status
      - disk.usage
      - 'ps.*'
      - file.check_hash

Be sure to restart the salt-master for configuration changes to take effect. For more details, read the docs on Salt's client_acl.

salmon's People

Contributors

ipmb avatar yml avatar nicolaslara avatar supervacuo avatar

Watchers

Brandon Adams avatar James Cloos 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.