First part: Nagios installation configuration:
Nagios official website http://www.nagios.org
1. Nagios Installation-Server
CENTOS6 The default Yum source does not have Nagios-related RPM packages, but we can install a epel extension source:
RPM-IVH Http://www.aminglinux.com/bbs/da ... ease-6-7.noarch.rpm
2. Nagios also needs the lamp environment, just don't need MySQL
Yum install-y httpd nagios nagios-plugins nagios-plugins-all Nrpe Nagios-plugins-nrpe
3. Set the user and password to log in to Nagios background
Htpasswd-c/etc/nagios/passwd Nagiosadmin
Enter the password after the carriage return
Configuration file path
Vim/etc/nagios/nagios.cfg
Detecting configuration files for errors
Nagios-v/etc/nagios/nagios.cfg
Start Services: Service httpd start; Service Nagios Start
Browser access: Http://ip/nagios
After-Class answers:
The 1.nagios installation does not require MySQL, but when Yum does not have PHP installed, can he automatically detect the previously installed PHP?
A: PHP that was previously installed in RPM will no longer be installed. Otherwise, PHP support is needed.
2. The lamp in the production environment must be the source code compiled and installed, does Nagios have to be compiled and installed?
A: Nagios can be installed with Yum. Lamp in production environment some enterprises do not require or can be installed Yum, I tend to compile themselves. But Nagios monitoring software I prefer yum installation because it is convenient.
3. If lamp source code is compiled. Does Nagios still fit in with Yum? Compile the word apache and PHP path is not the default path, then yum install Nagios also find Apache and PHP?
A: After installing Nagios, Yum will automatically install the RPM apache+php. But you want to use your own compilation to do this: http://www.apelearn.com/bbs/thread-8691-1-1.html
1.4-nagios Installation