nagios4.1.1 server and Monitoring side deployment (i)

Source: Internet
Author: User

Objective:

In the workplace, operation and maintenance of the rules is not allowed to not monitor the business on-line, ideal is perfect, the reality is not desired, many companies are in the business before the line is not well-monitored services ...

And as a monitoring service, my principle is simple enough, here is simple configuration is simple, maintenance is simple, enough to meet the needs of business monitoring can

NAGIOS3 version and PNP compatibility is better than NAGIOS4 and PNP compatibility, so why use the Nagios4 version here? The reason is very simple, my personal problem, the last company deployed a NAGIOS3 version of the monitoring, configuration PnP out of the time spent a lot of time, when the problem is fixed, and then want to deploy a NAGIOS4 version, and finally found that PnP and NAGIOS4 version of compatibility is not very much, It didn't go on. There is knot in the heart, always to solve, so there is this article

Body:

Specification: Downloaded files are stored in the/USR/LOCAL/SRC directory

Compiled files are stored in the/usr/local/software name directory

Preparing: Downloading Files

Nagios-4.1.1.tar.gz https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.1.1.tar.gz

rrdtool1.4.5 RRDtool's official website is inaccessible, this is a painful thing ...

pnp4nagios-0.6.2 http://jaist.dl.sourceforge.net/project/pnp4nagios/PNP-0.6/pnp4nagios-0.6.25.tar.gz

Nrpe-2.15.tar.gz http://jaist.dl.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz


Nagios Installation:

Nagios Web pages require web and PHP service support, using httpd, Nginx plus PHP, where you can install the httpd and PHP environments directly using Yum for quick installation and have time to change to Nginx later

The fun of compiling and installing is that every time you compile, you don't expect to report any errors, and you can solve them according to the error message, which is usually a dependency problem.

Unzip the Nagios file and compile the installation, according to the official documentation steps

yum install -y wget httpd php gcc  Glibc glibc-common gd gd-devel make net-snmp -yuseradd -m -s /bin /bash nagiosgroupadd nagiosusermod -g nagios nagiosgroupadd nagcmdusermod - a -g nagcmd nagiostar zxvf nagios-4.1.1.tar.gzcd nagios-4.1.1./configure -- With-command-group=nagcmdmake allmake installmake install-initmake install-configmake  install-commandmodemake install-webconfcp -r contrib/eventhandlers/ /usr/local/ Nagios/libexec/chown -r nagios:nagios /usr/local/nagios/libexec/eventhandlers//usr/local/nagios /bin/nagios -v /usr/local/nagios/etc/nagios.cfg service iptables stopservice  Httpd starthtpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin 

nagios-plugins-2.1.1 Installation

Tar zxvf nagios-plugins-2.1.1.tar.gz./configure--with-nagios-user=nagios--with-nagios-group=nagiosmake make Installchkconfig--add nagioschkconfig--level (nagios onchkconfig--add httpdchkconfig--level) httpd onsetenforce 0s Ervice Nagios Restart

RRDtool Installation

Yum-y install zlib libpng freetype libart_lgpl libart_lgpl-devel libxml* pango* perl-develtar zxvf rrdtool-1.4.5.tar.gz C D rrdtool-1.4.5./configure--prefix=/usr/local/rrdtoolmake && make install

Pnp4nagios Installation

Tar pnp4nagios-0.6.25./configure--prefix=/usr/local/pnp4nagios--with-nagios-user=nagios--with-nagios-group= Nagcmd--with-rrdtool=/usr/local/rrdtool/bin/rrdtool--with-perl_lib_path=/usr/local/rrdtool/lib/perl/5.10.1/x86 _64-linux-thread-multimake Allmake Fullinstall


Complete the above steps, you can visit Localhost/nagios to see the Nagios monitoring page, but now do not see the specific monitoring situation, because the monitoring host is not configured, the host configuration will be written tomorrow

Following configuration see nagios4.1.1 Server and monitor deployment (ii)

This article is from the "Morrowind" blog, make sure to keep this source http://morrowind.blog.51cto.com/1181631/1697949

nagios4.1.1 server and Monitoring side deployment (i)

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.