django-smokeping is an app for Django to configure your Smokeping installation.
- django-mptt
Install the extension with pip
:
$ pip install git+git://github.com/julcollas/django-smokeping.git
or alternatively if you don't have pip installed :
$ python setup.py install
- Add "smokeping" and "mptt" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = ( ... 'mptt', 'smokeping', )
- Add "middleware" to your MIDDLEWARE_CLASSES setting like this:
MIDDLEWARE\_CLASSES = ( ... 'smokeping.middleware.StripWhitespaceMiddleware', )
- Include the polls URLconf in your project urls.py like this:
url(r'\^smokeping/', include('smokeping.urls')),
- Run
python manage.py syncdb
to create the smokeping models. - Start the development server and visit http://127.0.0.1:8000/admin/ to start with smokeping (you'll need the Admin app enabled).
- Visit http://127.0.0.1:8000/smokeping/ to view your configuration exported.
$ docker build . -t smokepingadmin
version: "3"
services:
smokepingadmin:
container_name: smokepingadmin
image: smokepingadmin
volumes:
- ./smokepingadmin/db/:/app/demo/db
depends_on:
- smokepingadmin_sync
smokepingadmin_sync:
image: smokepingadmin
command: bash -c "python manage.py syncdb --noinput"
volumes:
- ./smokepingadmin/db/:/app/demo/db
- You will find a config file example in "tools". Put it in your smokeping directory "/etc/smokeping/"
- You will find a get_config.py script example in "tools". Put it in your smokeping directory "/etc/smokeping/config.d/"
- You will find a smokeping-get-config.cron example in "tools". Put it in your cron directory "/etc/cron.d/"