Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Install Dependencies:
- apt-get install git libapache2-mod-wsgi python-django python-simplejson libgmp-dev python-dev
- apt-get install pynag python-paramiko
- Get Adagios source:
- cd /opt/
- git clone https://github.com/opinkerfi/adagios.git
- Create a config directory and edit paths:
- cp -r /opt/adagios/adagios/etc/adagios /etc/
- chown -R naemon /etc/adagios/
- cd /etc/adagios
- sed -i 's|/etc/nagios/nagios.cfg|/etc/naemon/naemon.cfg|;' adagios.conf
- sed -i 's|sudo /etc/init.d/nagios|sudo /etc/init.d/naemon|;' adagios.conf
- sed -i 's|nagios_url = "/nagios"|nagios_url = "/naemon"|;' adagios.conf
- Edit/etc/naemon/naemon.cfg:
- In the OBJECT CONFIGURATION FILE(S) section, add:
- cfg_dir=/etc/adagios
- Create the following file:
- /etc/apache2/conf-available/adagios.conf
- Add the following contents to the file and save:
- #******************************************
- WSGISocketPrefix /var/run/apache2/wsgi
- WSGIDaemonProcess adagios user=naemon group=naemon 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 "Naemon Access"
- AuthType Basic
- AuthUserFile /etc/naemon/htpasswd
- Require valid-user
- </Location>
- #******************************************
- Link conf-available file to conf-enabled:
- ln -sf /etc/apache2/conf-available/adagios.conf /etc/apache2/conf-enabled/adagios.conf
- Restart Apache and Naemon
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement