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.
apt-get install git libapache2-mod-wsgi python-django python-simplejson libgmp-dev python-dev python-paramiko
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 https://github.com/pynag/pynag.git cd pynag python setup.py build python setup.py 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 https://github.com/opinkerfi/adagios.git
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 </Location> EOF
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.
Latest posts by Pablo Javier Furnari (see all)
- Create our own plugins for Check_MK and WATO - July 26, 2017
- Install Nagios Core 4.3.2 in Debian Stretch Part 2 - July 26, 2017
- Install Nagios Core 4.3.2 in Debian Stretch Part 1 - July 25, 2017