2.1 Nagios Installation

Source: Internet
Author: User

Nagios official website http://www.nagios.org

Server Configuration

Nagios also needs a apache+php environment, CentOS6 the default Yum source does not have Nagios-related RPM packages, so install a epel extension source.

[email protected] ~]# Yum install-y epel-release

Installing Nagios-related packages

[email protected] ~]# Yum install-y httpd nagios nagios-plugins nagios-plugins-all Nrpe Nagios-plugins-nrpe

Set up users and passwords to log in to Nagios background

[Email protected] ~]# htpasswd-c/etc/nagios/passwd nagiosadminnew password:re-type new password:adding password for use R Nagiosadmin

Check for a configuration file for problems

[Email protected] ~]# nagios-v/etc/nagios/nagios.cfgtotal warnings:0total errors:0things look okay-no serious pro Blems were detected during the pre-flight check

Start the service

[[Email protected] ~]# service httpd start; Service Nagios Start

Browser access: Http://ip/nagios

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/83/B1/wKiom1d6U-aQNF9CAABeJ18HdO8522.png "style=" float: none; "title=" 2.1-1.png "alt=" Wkiom1d6u-aqnf9caabej18hdo8522.png "/>


Enter the user name Nagiosadmin, the password is just set.

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/83/B1/wKiom1d6U-jx_vu7AAH0EEUdWcs769.png "style=" float: none; "title=" 2.1-2.png "alt=" Wkiom1d6u-jx_vu7aah0eeudwcs769.png "/>


At this point, nagios monitors only localhost, and there are no other client machines, and to add a monitoring client, you also need to install Nagios-related packages on the client side and need to be configured on the server.

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/83/AF/wKioL1d6U-mSEndiAACdAU7jQiI703.png "style=" float: none; "title=" 2.1-3.png "alt=" Wkiol1d6u-msendiaacdau7jqii703.png "/>


650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/83/AF/wKioL1d6U-rQ8YClAAE22jPTSI4001.png "style=" float: none; "title=" 2.1-4.png "alt=" Wkiol1d6u-rq8yclaae22jptsi4001.png "/>


This article is from the "Learn Notes for students" blog, please make sure to keep this source http://sanyisheng.blog.51cto.com/11154168/1795722

2.1 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.