Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A host status dashboard in Django
Python
branch: master

This branch is 5 commits ahead of kapsiry:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
hostmonitor
vahti
.gitignore updated requirements, Django 1.5 + iptools 2013b
LICENSE.txt Add LICENSE
README.md Cleaning README
fabfile.py Fix fabfile
manage.py JSON format private settings
requirements.txt updated requirements, Django 1.5 + iptools 2013b

README.md

Vahti

Host/IP address pool monitoring daemon and visualization.

Idea

The idea is to monitor used/unused pool of IP addresses. If the address becomes used, it will be recorded. The tool will list hosts and their DNS names and record changes.

Requirements

The following tools are required.

  • Foreman (only for starting processes)
  • sqlite3 (for development database)

Additionally some Python libs need to be installed with pip into a virtualenv environment.

Usage

$ mkvirtualenv vahti --no-site-packages
$ workon vahti
(vahti) $ cdvirtualenv 
(vahti) $ echo "export DJANGO_SETTINGS_MODULE=vahti.conf.dev" > bin/postactivate
(vahti) $ echo "unset DJANGO_SETTINGS_MODULE" > bin/postdeactivate
# Reload virtualenv hooks
(vahti) $ workon vahti

(vahti) $ pip install -r requirements.txt
(vahti) $ ./manage.py pinghosts --loop &
(vahti) $ ./manage.py runserver &    

For live deployments, use of supervisord is recommended.

For production, set the environment variable DJANGO_SETTINGS_MODULE and create vahti/conf/private.json with content:

{
    "ADMIN_EMAIL": [
        "foo <foo@example.com>"
    ],
    "SECRET_KEY": "generate a secret random key here"
}

Vahti screenshot

Something went wrong with that request. Please try again.