linux-nagios-Server Status Monitoring

Source: Internet
Author: User

Happy to remember

first of all ... Install Maysql PHP HTTP ... Well
-------------------------------------------------------------------------------
First install the Nagios server side
Create Nagios users

Useradd-s/sbin/nologin Nagios

Create The Nagios file and give it a bit of power

Mkdir/usr/local/nagios

Chown-r Nagios:nagios/usr/local/nagios
Unzip the Nagios file anywhere

Tar zxf nagios-4.0.1.tar.gz
Enter the extracted file to compile and install
./configure--prefix=/usr/local/nagios &&make All &&make install &&make Install-init & &make install-commandmode &&make install-config &&make install-webconf
Join the Service

Chkconfig--add Nagios


install another Nagios file plugins
 tar zxf nagios-plugins-1.5.tar.gz
Enter the file to compile and install ~ 

./configure--prefix=/usr/local/nagios &&make &&make Install
There is also a plug-in Nrpe used to collect computer state data
Tar zxf nrpe-2.15.tar.gz

Go to File compilation installation

./configure &&make All &&make install-plugin

Complete Installation ... To start modifying a configuration file

Enter httpd.conf document
Import a configuration text in the last line
r/etc/httpd/conf.d/nagios.conf
Then create the Nagios authorized user
/usr/bin/htpasswd-c/usr/local/nagios/etc/htpasswd.users nagiosadmin password
Open Two services so you can connect.
Service httpd Start
Service Nagios Start
Website Login Ip/nagios can

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/8F/12/wKioL1jTMu7yG1-qAAGVHuHSeSY987.png "title=" Picture 1.png "alt=" Wkiol1jtmu7yg1-qaagvhuhsesy987.png "/>

This article is from the "11627223" blog, please be sure to keep this source http://11637223.blog.51cto.com/11627223/1909495

linux-nagios-Server Status monitoring

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.