Advertisement
Guest User

Nagios install

a guest
Oct 6th, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. nagios-pkgs:
  2. pkg.installed:
  3. - pkgs:
  4. - httpd
  5. - php
  6. - gd
  7. - gd-devel
  8. - mod_ssl
  9. - mod_authz_ldap
  10.  
  11. install-nagios:
  12. cmd.run:
  13. - name: |
  14. /usr/sbin/usermod -G nagios apache
  15. cd /usr/local/src
  16. wget -c http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-4.0.8.tar.gz
  17. wget -c http://nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gz
  18. tar -xzf nagios-4.0.8.tar.gz
  19. cd nagios-4.0.8
  20. ./configure --with-command-group=nagios
  21. make all
  22. make install
  23. make install-config
  24. make install-commandmode
  25. mkdir /etc/httpd/certs/
  26. mkdir /etc/httpd/conf/extra
  27. - cwd: /usr/local/src
  28. - shell: /bin/bash
  29. - timeout: 300
  30. - unless: test -x /usr/local/nagios/bin/nagios
  31. - require:
  32. - nagios-pkgs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement