Skip to content

Install Adagios from source using virtualenv

Garðar Þorsteinsson edited this page Mar 5, 2017 · 10 revisions

yum install git python-pip python-virtualenv
mkdir code && cd code
virtualenv adagios-virt
source adagios-virt/bin/activate
pip install django==1.6
pip install simplejson
git clone https://github.com/opinkerfi/adagios.git
git clone https://github.com/pynag/pynag.git
cd pynag/
pip install -e .
cd ../adagios
pip install -e .
cd adagios
cp settings.py settings.py.bak

Change your settings.py so that it reflects your Nagios environment. You can also use the default settings below

cp -r etc/adagios /etc/

Add adagios folder to Nagios

mkdir /etc/nagios/adagios
echo "cfg_dir='/etc/nagios/adagios'" > /etc/nagios/nagios.cfg

Next restart your Nagios service and run the Django developement server

python manage.py runserver host_ip_address:8000