As we all know, Nagios is a monitoring system that monitors the state of the system and network information. Nagios can monitor the specified local or remote host and service, as well as provide exception notification capabilities. Nagios can be run on the Linux/unix platform, while providing an optional browser-based Web interface for system administrators to view network status, various system issues, and logs, and so on.
Main functional features of Nagios:
-Monitor network services (SMTP, POP3, HTTP, NNTP, ping, etc.)
-Monitor host resources (processes, disks, etc.)
-Simple plug-in design can easily extend the Nagios monitoring capabilities
-Concurrent processing of services such as monitoring
-Error notification function (via email, pager, or other user-defined method)
-You can specify a custom event-handling controller
-Optional Browser-based Web interface for system administrators to view network status, various system issues, logs, etc.
-can view system monitoring information via mobile phone
Today we will mainly introduce how to install the installation Nagios under the Unbuntu, specifically see below:
Install Ubuntu 11.10 Desktop 32bit
Install Apache2, php5, OpenSSL, Libssl-dev, GCC compilers and development libraries, GD development libraries, PHP, Php-apache, PHP-related plug-ins
You can use the Apt-get command to install these packages and type commands:
sudo apt-get install apache2
sudo apt-get install build-essential
sudo apt-get install Libgd2-xpm-dev
sudo apt-get install OpenSSL
sudo apt-get install Libssl-dev
sudo apt-get install php5
sudo apt-get install libapache2-mod-php5 (this may have been installed at the time of installation of PHP5 if installation is not required)
sudo apt-get install Libjpeg8
sudo apt-get install Libjpeg8-dev
sudo apt-get Install Curl
sudo apt-get install Libcurl3
sudo apt-get install libpng12-0
sudo apt-get install Libpng12-dev
sudo apt-get install Freetype2-demos
sudo apt-get install Libfreetype6
sudo apt-get install LIBXML2
sudo apt-get install Libxml2-dev
Configure Apache
If the Vim editor is not installed by default, VIM will be installed first, because the default VI editor is quite disgusting in Ubuntu
sudo apt-get install vim
sudo vim/etc/apache2/apache2.conf
Press SHIFT-G, which is G, to the end of the article, add the following configuration
AddType application/x-httpd-php. php. htm. html
Adddefaultcharset UTF-8
DirectoryIndex index.php index.html index.html