1.4-nagios Installation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.