Deploying the Nagios Monitoring System

Source: Internet
Author: User

Check if the package is installed because Nagios needs to rely on these packages to provide services [[email protected] nagios]# rpm -q gcc glibc  Glibc-common gd gd-devel xinetd openssl-devel[[email protected] nagios] #yum  install -y  gd gd-devel xinetd openssl-devel Build Nagios Account [[email  protected] ~]# useradd nagios -s /sbin/nologin[[email protected] ~]#  mkdir /usr/local/nagios[[email protected] ~]# chown -r nagios.nagios /usr/ local/nagios/   you can download various plugins via the link address http://www.nagios.org/download/plugins/  below.    nagios addons is the nagios  extension project,      unzip the installation file   [[email  protected] nagios]# tar zxvf nagios-3.5.0.tar.gz[[email protected] nagios] # cd nagios compiling the installation package [[email protected] nagios]# ./configure --prefix=/usr/local/ Nagios/[[email protected] nagios]# make all[[email protected] nagios]# make install[[email protected] nagios]#  make install-init[[email protected] nagios]# make install-commandmode[[email  protected] nagios]# make install-config Installing the nagios  plug-in [[email protected]  Nagios]# tar zxvf nagios-plugins-1.4.16.tar.gz[[email protected] nagios]# cd  nagios-plugins-1.4.16[[email protected] nagios-plugins-1.4.16]# ./configure --prefix =/usr/local/nagios[[email protected] nagios] #make  && make installapache basic configuration [[ Email protected] nagios-plugins-1.4.16]# cd /usr/local/apache/conf/[[email protected]  conf]# vim httpd.confScriptAlias /nagios/cgi-bin  "/usr/local/nagios/sbin"  < directory  "/usr/local/nagios/sbin" >      AuthType Basic       options execcgi      allowoverride none       Order allow,deny      Allow from all       AuthName  "Nagios access"       authuserfile /usr /local/nagios/etc/htpasswd                  Require valid-user </Directory> Alias /nagios  "/usr/local/ Nagios/share " <Directory "/usr/local/nagios/share ">       authtype basic      options none       allowoverride none      order allow,deny       Allow from all      AuthName  "Nagios access"        authuserfile /usr/local/nagios/etc/htpasswd      require valid-user  </directory>[[email protected] conf]# htpasswd -c /usr/local/nagios/etc/ htpasswd nagios  Start the Nagios service [[Email protected] conf]# service nagios start

Client needs to install Nrpe plugin

Deploying the Nagios Monitoring System

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.