Install Adagios from Source on Debian Jessie

Adagios is a web based Nagios configuration interface built to be simple and intuitive in design, exposing less of the clutter under the hood of nagios. Additionally adagios has a rest interface for both status and configuration data as well a feature complete status interface that can be used as an alternative to nagios web interface.

If you want to manage all your Nagios Core configuration and you don’t use WATO or Check MK, you could just use Adagios to do it.

Installing Adagios

Install Dependencies

apt-get install git libapache2-mod-wsgi python-django python-simplejson libgmp-dev python-dev python-paramiko

Install pynag

It looks like the version of pynag installed from the repos is an old version (even though pynag hasn’t been touched in a while).

I used these steps to download and install the current version of pynag:

git clone
cd pynag
python build
python install

This put all the proper code under /usr/local/lib/python2.7/dist-packages/pynag.

Getting Adagios source

Get latest bleeding-edge source from github:

cd /opt/
git clone

Configuring Adagios

Create a configuration directory for adagios and edit paths:

cp -r /opt/adagios/adagios/etc/adagios /etc/
chown -R nagios /etc/adagios/
cd /etc/adagios
sed -i 's|/etc/nagios/nagios.cfg|/usr/local/nagios/nagios.cfg|;' adagios.conf
sed -i 's|sudo /etc/init.d/nagios|sudo /etc/init.d/nagios|;' adagios.conf
sed -i 's|nagios_url = "/nagios"|nagios_url = "/nagios"|;' adagios.conf


Add adagios configuration and restart nagios to load new configuration:

pynag config --append cfg_dir=/etc/adagios
service nagios restart

Configuring 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 /usr/local/nagios/etc/htpasswd.users
 Require valid-user
Print Friendly, PDF & Email

Pablo Javier Furnari

Linux System Administrator at La Plata Linux
I'm a Linux Sysadmin with 8 years of experience. I work with several clients as a consulter here in Argentina and oversea (I have clients in the United States, Mexico, Pakistan and Germany).

I know my strengths and weaknesses. I'm a quick learner, I know how to work with small and big teams. I'm hard worker, proactive and I achieve everything I propose.

Leave a Reply

Your email address will not be published. Required fields are marked *

Reload Image