Skip to main content

A monitoring system built on top of Salt.

Project description

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

The project currently isn’t much more than proof-of-concept. I’m interested in exploring its usefulness as both an alerting system like monit and a monitoring system like munin (perhaps using Graphite’s whisper database).

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

Installation

It’s expected that you’ll run this on the same server as the Salt master.

To bootstrap the project:

virtualenv salmon
source salmon/bin/activate
pip install -e git+https://github.com/lincolnloop/salmon.git#egg=salmon
salmon init
salmon upgrade

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

salmon-0.1.tar.gz (57.5 kB view details)

Uploaded Source

File details

Details for the file salmon-0.1.tar.gz.

File metadata

  • Download URL: salmon-0.1.tar.gz
  • Upload date:
  • Size: 57.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for salmon-0.1.tar.gz
Algorithm Hash digest
SHA256 e9021b65b11013e4e230bfe4e2e8c00c7a79449a1dc7e5fd4fc84deb57db7db6
MD5 69dd092617dd48ce2e6301a4256ce34e
BLAKE2b-256 357fa2db3af85091956c3d01f3abf75da083c2d0d9fe5a2119beb0ca378671fe

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page