If using the source package to install Nagios is troublesome, so find a better way to install Nagios,
The environment is the CentOS 6.4 version, 64-bit:
First of all, is to install the network Yum Source, here is not much to say ();
Second, download the Epel source from the network; Install Nagios
wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
This is the RPM package, so we need to decompress this RPM package;
RPM-VIH epel-release-6-8.noarch.rpm
So our Epel source has been installed, then we need to install a tool to search Nagios with Yum;
Yum Search Nagios
Then we find all of Nagios's plugins; Nagios-plugins-all.x86_64:nagios Plugins-all plugins
We will need to install all of Nagios's plugins through Yum;
Yum-y Install Nagios-plugins-all
Then we have to install Nagios through Yum;
Yum-y Install Nagios
So we've got Nagios installed.
Again, we're going to check nagios.
Check for Nagios packages with Rpm-qa |grep Nagiso
The Nagios process is then checked for startup by Ps-aux|grep Nagios.
If not, start the Nagios service by/etc/init.d/nagios restart.
It is best to close iptables and SELinux.
Again, we access the http://192.168.XXX.XXX/nagios/via the browser if the Nagios interface shows that Nagios installation was successful, Nagios's default username: nagiosadmin, password: nagiosadmin on login To indicate that Nagios has been installed; The above is the personal installation experience, there are some shortcomings, only to provide reference.
Report:
The following is a simple installation of Nagios main steps, if the Yum network is copied directly:
wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
RPM-VIH epel-release-6-8.noarch.rpm
Yum Search Nagios
Yum-y Install Nagios-plugins-all
Yum-y Install Nagios
/etc/init.d/nagios restart
This article from the "MySQL master-slave copy" blog, declined reprint!