<commit_before>=======
Monitor
=======

.. image:: https://badges.gitter.im/Join%20Chat.svg
   :alt: Join the chat at https://gitter.im/diegogslomp/django-monitor
   :target: https://gitter.im/diegogslomp/django-monitor?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge

Monitor is a simple Web-based `Django <https://www.djangoproject.com>`_ app to monitor hosts through ICMP packets (ping) using `this daemon <https://github.com/diegogslomp/django-monitor/blob/master/monitor/management/commands/monitord.py>`_. If there are registered ports, check status through telnet, tested on Enterasys S8, G3 and A4 series.

.. image:: https://raw.githubusercontent.com/diegogslomp/django-monitor/master/docs/host_list_example.png
    :alt: Monitor Index Page
    :width: 730
    :height: 290
    :align: center
      
How-To
-------

1. It's recommended to use `pyenv <https://github.com/yyuu/pyenv>`_ for Python install. See this `script <https://github.com/diegogslomp/django-monitor/blob/master/docs/centos_install.sh>`_ to install it on Centos or `this <https://github.com/diegogslomp/django-monitor/blob/master/docs/ubuntu_install.sh>`_ 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/diegogslomp/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::<commit_msg>new version 0.1.7<commit_after>=======
Monitor
=======

.. image:: https://badges.gitter.im/Join%20Chat.svg
   :alt: Join the chat at https://gitter.im/diegogslomp/django-monitor
   :target: https://gitter.im/diegogslomp/django-monitor?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge

Monitor is a simple Web-based `Django <https://www.djangoproject.com>`_ app to monitor hosts through ICMP packets (ping) using `this daemon <https://github.com/diegogslomp/django-monitor/blob/master/monitor/management/commands/monitord.py>`_. If there are registered ports, check status through telnet, tested on Enterasys S8, G3 and A4 series.

.. image:: https://raw.githubusercontent.com/diegogslomp/django-monitor/master/docs/host_list_example.png
    :alt: Monitor Index Page
    :width: 730
    :height: 290
    :align: center
      
How-To
-------

1. It's recommended to use `pyenv <https://github.com/yyuu/pyenv>`_ for Python install. See this `script <https://github.com/diegogslomp/django-monitor/blob/master/docs/centos_install.sh>`_ to install it on Centos or `this <https://github.com/diegogslomp/django-monitor/blob/master/docs/ubuntu_install.sh>`_ 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/diegogslomp/django-monitor/raw/master/dist/django-monitor-0.1.7.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::
{'fraction_non_alphanumeric': 0.1341019417475728, 'fraction_numerical': 0.012439320388349514, 'mean_word_length': 3.8556701030927836, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 20, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6215849', 'n_tokens_mistral': 1161, 'n_tokens_neox': 1094, 'n_words': 249}