-
Notifications
You must be signed in to change notification settings - Fork 74
Installing Adagios from source on Debian
andresriancho edited this page May 22, 2013
·
37 revisions
Install nagios3 and mk-livestatus if you don't already have it:
apt-get install nagios3 check-mk-livestatus
Install Dependencies:
apt-get install git apache2 libapache2-mod-wsgi python-django
Install pynag
apt-get install python-pip
pip install pynag
Get latest bleeding-edge source from github:
cd /opt/
git clone https://github.com/opinkerfi/adagios.git
create a configuration directory for adagios:
cp -r /opt/adagios/adagios/etc/adagios /etc/
chown -R nagios /etc/adagios/
# Edit paths to /etc/nagios3/nagios.cfg and /etc/init.d/nagios3
cd /etc/adagios
sed -i 's|/etc/nagios/nagios.cfg|/etc/nagios3/nagios.cfg|;' adagios.conf
sed -i 's|sudo /etc/init.d/nagios|sudo /etc/init.d/nagios3|;' adagios.conf
If you haven't already done so, enable mk-livestatus broker_module:
pynag config --append "broker_module=/usr/lib/check_mk/livestatus.o /var/lib/nagios3/rw/livestatus"
Configure Apache to load Adagios in wsgi:
cat << EOF > /etc/apache2/conf.d/adagios.conf
WSGISocketPrefix /var/run/apache2/wsgi
WSGIDaemonProcess adagios user=nagios group=nagios processes=1 threads=25 python-path=/opt/adagios:/opt/adagios/adagios
WSGIProcessGroup adagios
WSGIScriptAlias /adagios /opt/adagios/adagios/apache/adagios.wsgi
Alias /adagios/media /opt/adagios/adagios/media
<Location /adagios>
AuthName "Adagios Access"
AuthType Basic
AuthUserFile /etc/nagios3/htpasswd.users
Require valid-user
</Location>
EOF
Update Adagios' configuration to point to nagios3:
sed -i s/nagios/nagios3/ /etc/adagios/adagios.conf
Restart Apache:
service apache2 restart