Advertisement
Guest User

Non-working Install Adagios on Naemon

a guest
Feb 20th, 2015
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. Install Dependencies:
  2. apt-get install git libapache2-mod-wsgi python-django python-simplejson libgmp-dev python-dev
  3. apt-get install pynag python-paramiko
  4.  
  5. Get Adagios source:
  6. cd /opt/
  7. git clone https://github.com/opinkerfi/adagios.git
  8.  
  9. Create a config directory and edit paths:
  10. cp -r /opt/adagios/adagios/etc/adagios /etc/
  11. chown -R naemon /etc/adagios/
  12. cd /etc/adagios
  13. sed -i 's|/etc/nagios/nagios.cfg|/etc/naemon/naemon.cfg|;' adagios.conf
  14. sed -i 's|sudo /etc/init.d/nagios|sudo /etc/init.d/naemon|;' adagios.conf
  15. sed -i 's|nagios_url = "/nagios"|nagios_url = "/naemon"|;' adagios.conf
  16.  
  17. Edit/etc/naemon/naemon.cfg:
  18. In the OBJECT CONFIGURATION FILE(S) section, add:
  19. cfg_dir=/etc/adagios
  20.  
  21. Create the following file:
  22. /etc/apache2/conf-available/adagios.conf
  23.  
  24. Add the following contents to the file and save:
  25. #******************************************
  26. WSGISocketPrefix /var/run/apache2/wsgi
  27. WSGIDaemonProcess adagios user=naemon group=naemon processes=1 threads=25 python-path=/opt/adagios:/opt/adagios/adagios
  28. WSGIProcessGroup adagios
  29. WSGIScriptAlias /adagios /opt/adagios/adagios/apache/adagios.wsgi
  30.  
  31. Alias /adagios/media /opt/adagios/adagios/media
  32.  
  33. <Location /adagios>
  34. AuthName "Naemon Access"
  35. AuthType Basic
  36. AuthUserFile /etc/naemon/htpasswd
  37. Require valid-user
  38. </Location>
  39. #******************************************
  40.  
  41. Link conf-available file to conf-enabled:
  42. ln -sf /etc/apache2/conf-available/adagios.conf /etc/apache2/conf-enabled/adagios.conf
  43.  
  44. Restart Apache and Naemon
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement