1. Install Apache, gcc, glibc, Nagios, Nagios-plugins. The basic is to install the installation document paste copy.
Http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html
2. Install and configure the Nrpe on the monitored machine.
Download Link: http://sourceforge.net/projects/nagios/files/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz/download
Official Installation Configuration Documentation:
Http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf
3. Add the monitored machine on the Nagios server.
A. Add the Host/service configuration file.
# Touch Hosts.cfg
# Touch Services.cfg
# vi/usr/local/nagios/etc/nagios.cfg
Cfg_file=/usr/local/nagios/etc/objects/hosts.cfg
Cfg_file=/usr/local/nagios/etc/objects/services.cfg
Add Server3 to Hosts.cfg.
Add ping and disk monitoring to the services.cfg.
Check configuration and restart Nagios service
#/usr/local/nagios/bin/nagios-v/usr/local/nagios/etc/nagios.cfg
#/etc/init.d/nagios Restart
View the monitoring information for your settings.
CentOS 6.4 Installation of Nagios server