Nagios is a monitoring system on the Linux/Unix platform. It is very powerful in monitoring and operability and has helped many O & M and System Administrators! Let's take a lookNagios InstallationHow to proceed!
Figure-Nagios
1. Install Nagios
Nagios can run in various versions of linux and mainstream unix environments. The environments I have tried include Redhat linux, Centos, and Debian. In actual O & M, I deployed nagios with centos 4. After the operating system is installed, you need to turn off all the extra services, leaving only the sshd service. Then, use the wgetdownload source code package nagios-2.6.tar.gzand httpd-2.2.0.tar.gz. Next, install the software separately. 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. Install nagios. Unlike installing other software, it takes several steps to install nagios. The first step is to execute make install to install the main program, CGI and HTML files, and the second step is to execute make install-commandmode to grant external commands the permission to access the nagios configuration file, step 3: Run make install-config to copy the configuration file example to the nagios installation directory. Follow the prompts in the installation wizard. In fact, there is also a make install-init step, which is used to make nagios a running script so that nagios can start with the system boot, this is a convenient measure. However, I am a person who prefers to simplify the problem and did not perform such operations.
5. Check whether the verification program is correctly installed. Switch the directory to the installation path (/usr/local/nagios) to check whether the five directories including etc, bin, sbin, share, and var exist, if yes, it indicates that the program has been correctly installed to the system. The following table provides a brief description of the five directory functions:
The directory where the binNagios executable program is located. This directory has only one file nagios
Location of the etcNagios configuration file. After the initial installation, there are only a few *. cfg-sample files.
The directory where the sbinNagios Cgi file is located, that is, the directory where the file needed to execute External commands is located
The directory where the ShareNagios webpage file is located
Directory where VarNagios log files, spids, and other files are located