Nagios Introduction
Nagios is an Open-source application used to monitor systems and networks, typically running on a master server running Liunx or Unix operating systems. Nagios uses its numerous plug-ins to realize the monitoring of the local and remote service, when the object of the monitor is abnormal, Nagios will give the management alarm in time. It is a TCP/IP protocol based software package, including Nagios main program and its various plug-ins, configuration is very flexible, can monitor a lot of projects, can also be customized shell script for monitoring services, very suitable for all types of enterprises network applications.
Nagios function is very powerful, it can monitor the service and host, but he does not include this part of the function of the code, all the monitoring, detection features are plug-ins to complete. Besides the alarm function, if the monitoring system found that the problem can not be reported to the police that there is no sense, so the alarm is also a very important function of Nagios. However, similarly, Nagios itself does not have the alarm part of the code, not even plug-ins, but to the user or other relevant open source project team to complete. Nagios installation, refers to the basic platform, that is, Nagios software package installation. It is the framework of the monitoring system and the basis of all monitoring.
Open Nagios Official documents, you will find that Nagios basically do not have any dependencies, only the system is a Linux or other Nagios supported systems. But if you don't have Apache (HTTP service), then you don't have an intuitive interface to view the monitoring information, so Apache is a prerequisite.
The main features of the Nagios system are as follows:
Monitor host resources and network services
Allows users to monitor their specific services by designing and implementing simple Plug-ins
When the monitored object has the problem, will inform the management in time
Define event handlers in advance, and automatically invoke the corresponding handlers when there is a problem with the object
Monitor object status through Web pages, warning hints and log files.
A list of software needs to be installed:
php-devel-5.1.6-23.2.el5_3.i386.rpm
php-json-ext-1.2.1.tar.bz2
Cacti-plugin-0.8.7e-pa-v2.6.zip
Nagios-3.2.1.tar.gz
nagios-plugins-1.4.14
Ndoutils-1.4b9.tar.gz
Npc-2.0.4.tar.gz
Nagios Installation
http://sourceforge.net/projects/nagios/files/
[Root@cacti-qmail soft]# wget http://ncu.dl.sourceforge.net/project/nagios/nagios-3.x/nagios-3.2.1/nagios-3.2.1.tar.gz
[Root@cacti-qmail soft]# TAR-ZXVF nagios-3.2.1.tar.gz
[Root@cacti-qmail Soft] #cd nagios-3.2.1
[Root@cacti-qmail nagios-3.2.1]#./configure--prefix=/usr/local/nagios
[Root@cacti-qmail nagios-3.2.1] #make all
Enter make all to get the following specific information
==============================================================
Compile Finished * * *
If the main program and CGIs compiled without any errors, you
Can continue with installing Nagios as follows (type ' make '
Without any arguments for a list of all possible options):
Make install
-This installs is the main program, CGIs, and HTML files
Use make install to install the main program, CGI, and HTML files
Make Install-init
-This installs the Init script IN/ETC/RC.D/INIT.D
Install the startup script in/ETC/RC.D/INIT.D using make Install-init
Make Install-commandmode
-This installs and configures permissions on the
Directory for holding the external command file