mageuser / django-monitor

Web-based Django App to monitor hosts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Monitor

Join the chat at https://gitter.im/chonpz28/django-monitor

Monitor is a simple Web-based Django app to monitor hosts through ICMP packets (ping) using this daemon.

Monitor Index Page

How-To

  1. It's recommended to use pyenv for Python install. See this script to install it on Centos or this to install it on Ubuntu/Debian.

  2. Create a project:

    django-admin.py startproject foo_project
    
  3. Download and Install app from github:

    pip install https://github.com/chonpz28/django-monitor/raw/master/dist/django-monitor-0.1.6.tar.gz
    
  4. Add "monitor" to project's setting INSTALLED_APPS (/foo_project/foo_project/settings.py):

    INSTALLED_APPS = (
        ...
        'monitor',
    )
    
  5. Include the monitor URLconf in your project urls.py:

    url(r'^monitor/', include('monitor.urls', namespace='monitor')),
    
  6. Migrate hosts models to project's database:

    python manage.py migrate
    
  7. Create superuser if a new project was created:

    python manage.py createsuperuser
    
  8. Start the development server:

    python manage.py runserver 0.0.0.0:8000
    
  9. Visit http://localhost:8000/admin/ to create hosts and services (need the Admin app enabled).

  10. Run the monitor daemon to start monitoring:

    python manage.py monitord
    
  11. Visit http://localhost:8000/monitor/

  12. Enjoy!

About

Web-based Django App to monitor hosts

License:MIT License


Languages

Language:Python 65.6%Language:HTML 34.4%