Wednesday, January 20, 2016
Install Nagios on Rehat
1. /usr/local/nagios
2. monitor disk usage, cpu load, current usrs, total processes, etc
3. http://localhost/nagios
4. plugin 2.0.3
5. yum update
6. yum install -y
7. useradd nagios
8. groupadd nagcmd
9. usermod -G nagmd nagios apache
10. mkdir /root/nagios
wget http://prdownload.sourceforge.net/sourceforge/nagios/nagios-4.0.0.tar
wget http://www.nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gz
11. tar xvf nagios-4.0.8.tar.gz
12. tar -xvf nagios-plugins-2.0.3.tar.gz
13. cd nagios-4.0.1
14. ./configure --with-command-group=nagcmd
15. make all
16. make install
17. make install-init
18. make install-commandmode
19. make install-config
20. cd nagios-plugins-2.0.3
21. ./configure --with-command-group=nagcmd
22. make all
23. make install-init
24. make install-commandmode
25. make install-config
26. make install-webconf
27.
27. httpasswd -s -c /usr/local/nagios/etc/httpasswd.users nagiosadmin
28. service httpd restart
29. ./configure --with-nagios-user=nagios --with-nagios-group=nagios
30. make
31. make install
32. /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
33. chkconfig --add nagios
34. chkconfig --level 35 nagios on
35. chkconfig --add httpd on
36. chkconfig --level 35 httpd on
37. /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
38. systemctl start nagios.service
39. /etc/nagios3/htpasswd.users
40. /htpasswd /etc/nagios3/htpasswd.users nagiosadmin
41.
42.
43.
44.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment