Device and Setup of Nagios remote monitoring software (1)

Source: Internet
Author: User

NagiosThe device and setup of the remote monitoring software are as follows:

 

Figure-Nagios

As a system administrator, I'm most depressed when my main online systems stop or stop collecting services without my knowledge, in addition, it may take a long time for the faulty services or hosts to know. Especially when it comes to the festival, the system administrator is very important. To change this passive situation, here I promise to collect monitoring software Nagios, I think its biggest advantage is that it can send faulty alarm messages-only the Nagios monitoring object attack problems, the system will send a text message to your mobile phone. The following is an excerpt from the official Nagios Website:

Nagios is an open source host, service and network monitoring program. Who uses it? Lots of people, including into big companies and organizations

Nagios is an open-source software that monitors hosts, services, and collection. Many large companies or organizations are using it.

Before I came to this institution, I had a Netsaint (the old nagios version) That was monitoring those online servers. But it was not perfect. Then I set up an item, A new monitoring platform nagios has been deployed to monitor all online servers. So far, 413 hosts and 754 services have been monitored.

Although Nagios is very useful, it is really troublesome to set up the equipment and decoration. I can give it a Chinese name based on its pronunciation-it is hard to die. Based on such reasons, I will try to tell everyone the process and experience of using Nagios as much as possible, and the progress will be helpful to beginners.

Software required for Device

I. Nagios Device

Nagios runs in various versions of linux and mainstream unix. I have tried Redhat linux, Centos, and Debian. In actual O & M, I deploy nagios with centos 4. After the operating system is installed, you need to turn off all the extra services and leave only the sshd service.

Then, use the wgetdownload source code package nagios-2.6.tar.gzand httpd-2.2.0.tar.gz. Next, let's leave the device software. The process is as follows:

1. Decompress nagios. tar zxvf nagios-2.6.tar.gz

2. configure nagios. cd nagios;./configure-prefix =/usr/local/nagios

3. Compile nagios. make all

4. nagios device. Slightly different from other software devices, nagios devices should be completed in a few steps. The first step is to execute the make install device's primary French, CGI, and HTML files. The second step is to execute make install-commandmode to receive the nagios permission to set the configuration file, step 3: Run make install-config to copy the example of the configuration file to the Device directory of nagios. According to the reminder from the device leader, there is actually a make install-init step here, its role is to make nagios into a running script, so that nagios starts with the system boot, this is an easy way. However, I am a person who prefers to simplify the problem and did not perform such operations.

5. Check whether the program can be installed accurately. Switch the contents to the device path (here is/usr/local/nagios) to check whether there are five directories including etc, bin, sbin, share, and var, if there is, it can be annotated with the French to be accurate to the system. The following table is a brief statement of the functions of the five directories:

BinNagios executes the French Location Directory, which only requires a file nagios

EtcNagios sets the location of the device decoration file. After the initial device is complete, only a few *. cfg-sample files are required.

The Directory of the sbinNagios Cgi file, that is, the Directory of the file location required to execute the external command

Contents of the ShareNagios webpage File Location

Directory of VarNagios diary files, spids, and other file locations


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.