The master server framework for monitoring. Click the screenshot to see it running on production.
##Install Instructions :
- Clone the watch-master repository on your master node.
- Install the python modules described in requirements.txt
- Install rabbitmq-server on the master node.
- Run the django server :
cd watchmaster/
python manage.py runserver
- Run the celery beat and celery worker:
celery worker --app=watchmaster -l info --logfile="/tmp/worker.log"
celery -A watchmaster beat
##To Add A Slave Server :
- Set up Slave as per : Slave Repo
- Run the python shell prompt:
python manage.py shell
from slaves.models import slave
slave_new = slave( slave_hostname=<hostname>, slave_ip=<ip>, slave_location=<location>)
slave_new.save()
- Make the corresponding changes in the WATCH FRONTEND part as well.