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
New Android application : Find Android Skwissh on Google Play
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.
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', )
Change LOGIN_URL in settings.py in order to use skwissh integrated login:
LOGIN_URL = "/skwissh/login"
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 !
- 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).