Nagios on CentOS 5.6

1. install CentOS 5.6
2. yum update
3. add epel repository
4. yum update (normaly nothing to update)
5. install rpmfusion-free and -nonfree repository
6. yum update (normaly nothing to update)
7. yum install httpd gcc glibc glibc-common gd gd-devel php53 make openssl-devel
8. /usr/sbin/useradd -m nagios
9. passwd nagios
10. /usr/sbin/groupadd nagcmd
11. /usr/sbin/usermod -a -G nagcmd nagios
12. /usr/sbin/usermod -a -G nagcmd apache
13. mkdir ~/downloads
14. cd ~/downloads
15. wget nagios-*.tar.gz
16. tar xzf nagios-*.tar.gz
17. cd nagios-*/
18. ./configure –with-command-group=nagcmd
19. make all
20. make install
21. make install-init
22. make install-config
23. make install-commandmode
24 change the email address with “vi /usr/local/nagios/etc/objects/contacts.cfg”
25. make install-webconf
26. htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
27. service httpd restart
28. cd ~/downloads
29. tar xzf nagios-plugins-*.tar.gz
30. cd nagios-plugins-*/
31. ./configure –with-nagios-user=nagios –with-nagios-group=nagios
32. make
33. make install
34. chkconfig –add nagios
35. chkconfig nagios on
36. /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
37. service nagios start
38. open browser http://server/nagios

Speichere in deinen Favoriten diesen permalink.

Schreibe einen Kommentar