SSH monitoring Django application
Project description
DEMO SITE : Visit the Skwissh demo (username test / password test) to see Skwissh in action.
More info : Github Pages for Skwissh
Python Package Index : django-skwissh
Travis : Last build status
Introduction
A Django application for remotely monitoring servers using SSH.
In background (crontabed jobs) Skwissh uses Python Fabric to execute SSH commands, aka. “sensors”, get the output and store timestamped values. Measures are taken every minute.
On the other side, Skwissh is able to display nice charts (linechart, piechart or simple text) with aggregated measures.
Default sensors available (tested on Ubuntu 12.04) :
Memory
CPU
WaitIO
Load Averages
Disk usage
Top
But you can easily add your own ones !!
Follow @skwissh on Twitter to see latest updates.
Installation
Skwissh can be installed from Pypi:
pip install django-skwissh
Configure your Django project in a normal way (database, etc…).
Add skwissh and kronos to your Django INSTALLED_APPS:
INSTALLED_APPS = ( ... 'kronos', 'skwissh', )
Add Skwissh to your urls.py:
# Skwissh url(r'^skwissh/', include('skwissh.urls')),
Synchronize your database (this command will load defaut sensors through fixtures):
./manage.py syncdb
Install Skwissh tasks (will write to your user crontab, thanks to ‘django-kronos’):
./manage.py installtasks
You can check that 4 crontab job have been configured:
crontab -l
If you want to activate i18n (French & English currently supported), follow the next steps:
In your project settings.py, add the Django LocaleMiddleware and set the LANGUAGES variable:
MIDDLEWARE_CLASSES = ( ... 'django.middleware.locale.LocaleMiddleware', ... ) LANGUAGES = ( ('fr', 'Français'), ('en', 'English'), )
You’re ready to go ! Connect to the application and start configure your servers and sensors !
Screenshots
Load averages
Disk usage
Top output
Server edition
Sensor edition
Credits
Uses Django 1.4.1 (https://www.djangoproject.com).
Uses Django applications and addons :
django-kronos (https://github.com/jgorset/django-kronos) from Johannes Gorset (https://github.com/jgorset).
django-extra-views (https://github.com/AndrewIngram/django-extra-views) from Andrew Ingram (https://github.com/AndrewIngram).
Uses Fabric (http://fabfile.org) SSH Python library.
Uses jqPlot (http://www.jqplot.com) jQuery plotting and charting library.
Uses Zurb Foundation (http://foundation.zurb.com) responsive CSS/JS/HTML bootstrap.
Includes icons from TheNounProject (http://thenounproject.com).
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
File details
Details for the file django-skwissh-0.0.7.zip
.
File metadata
- Download URL: django-skwissh-0.0.7.zip
- Upload date:
- Size: 605.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58755e1ba62dc2a966477b198ce78095ba493b7f4f9a65ec2e23b8e482f46025 |
|
MD5 | ff6cb2d227c1e1367f4a0cfb45018214 |
|
BLAKE2b-256 | ee8de5cbeb560c1a8bb2a079f0aec6c30fff6302414d4601ccfd21b7cff8d0a3 |
File details
Details for the file django-skwissh-0.0.7.tar.gz
.
File metadata
- Download URL: django-skwissh-0.0.7.tar.gz
- Upload date:
- Size: 556.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 668fae0fd6626b0aa43e4905d339175e9278a58dfeb6f3c8f654efc9299f680d |
|
MD5 | 3b476970a67a3c03f9a83bb21f04b382 |
|
BLAKE2b-256 | 7adb9d0631c23b40e99d626b95f54c8344d4cc3c196fbe64b8f8799e0c006644 |