Nagios Monitoring (medium and small business essential monitoring equipment) < on >

Source: Internet
Author: User
Tags rrdtool snmp

Cacti and nagios are the necessary monitoring software for SMEs, first of all to review the advantages and disadvantages of cacti monitoring: mainly monitoring graphics traffic, through the web interface to monitor traffic, (mainly monitoring CPU memory hard disk, traffic) based on SNMP (fetch data) and RRDtool ( RRDtool is mainly the capture of data to draw images) Nagios monitoring system services, but also can monitor the Window,linux,unix host State, but mainly monitoring system services. Nagios monitoring client requires plug-ins and Nrpe software [ Put a previously written blog address about cacti also do not paste it out]http://www.cnblogs.com/xiexiaohua007/p/5175171.html Nrpe as the intermediate Agent program ( This is similar to cacti's rrdtool and SNMP) it accepts requests sent from the Nagios server side, and the other end specifies the relevant monitoring information on the remote host. Google a picture, teach Nagios: The image is too simple to do more explanation (here, Nagiosplugins can also get server information via SNMP) (1) Nagios instance installation: # yum install httpd mysql mysql-server php php-mysql-y first is to install lamp, here we use Yum To install lamp (these services, such as installation monitoring in the enterprise, typically use Yum to install lamp, except when building a Web service)

You can download the appropriate version of Nagios and plug-ins in the pipe network (I suggest that I give the version, by the way share a very classic words, first to walk and then think of the road to go far ):

wget http://sourceforge.net/projects/nagios/files/nagios-3.x/nagios-3.2.1/nagios-3.2.1.tar.gz/HTTP Sourceforge.net/projects/nagios-cn/files/latest/download http://down1.chinaunix.net/distfiles/ Nagios-plugins-1.4.14.tar.gz http://nchc.dl.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.14/nrpe-2.14.tar.gz

Useradd nagiosmake allmake install;make install-init;make install-commandmode;make install-config;make Install-webconf specific installation process explained: [

Make install//To install the main program, CGI and HTML files

Make Install-init//install startup script in/ETC/RC.D/INIT.D

Make Install-config//To install the sample configuration file, the installation path is/USR/LOCAL/NAGIOS/ETC

Make Install-commandmode//To configure directory permissions

Make install-webconf//configure Nagios to integrate with Apache

]nagios configuration file (you can see the file you want in the configuration file): #cat/etc/httpd/conf.d/nagios.conf Install the Nagios plugin:

Tar zxvf nagios-plugins-1.4.14.tar.gz

CD nagios-plugins-1.4.14

./configure--prefix=/usr/local/nagios--with-nagios-user=nagios--with-nagios-group=nagios

Make && make install

Nagios access Control settings service Nagios start

Htpasswd-c/usr/local/nagios/etc/htpasswd.users Nagiosadmin

Service Nagios Restart

Enter the password two times, the login page will use this password.

Launch Apache server, enter the URL ip/nagios; The user name is Nagiosadmin, and the password is the password you just entered. Page output: About Nagios specific use (small bulb refers to the emergence of crisis, also do not call the police): If you want to open the alarm, click the light bulb, the following interface: Click the Enable that option, There will be a commit option, click Commit to open the service, the following error appears: There is a prompt error, on the server to open/usr/local/nagios/var/rw/nagios.cmd execution permissions. # chmod 777-r/usr    /local/nagios/var/rw/nagios.cmd Refresh the page, cancel the alarm of the bulb elimination. < to Be continued >

Nagios Monitoring (medium and small business essential monitoring equipment) < on >

Related Article

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.