NagiosThe installation process is very simple. Let's take a look at the specific process!
Nagios is a very popular system. It is a free software for server monitoring. Many large domestic sites such as Sohu and Netease are using nagios for server monitoring.
Nagios is just a framework. It is very convenient for the nagios extended monitoring module and alarm module. It can be easily added to service Monitoring compiled by itself, as well as text messages, emails, gtalk and msn alarms.
The following describes how to install and configure nagios in linux REDHAT AS4U4:
Download Software:
Wget http://surfnet.dl.sourceforge.net/sourceforge/nagios/nagios-3.0.3.tar.gz
Wget http://nchc.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.12.tar.gz
Wget http://nchc.dl.sourceforge.net/sourceforge/nagiosplug/nagiosmib-1.0.0.tar.gz
Add User:
Useradd-m nagios
Passwd nagios
Groupadd nagcmd
Usermod-G nagcmd nagios
Usermod-G nagcmd daemon
Compile and install nagios
Tar-xvzf nagios-3.0.3.tar.gz
Cd nagios-3.0.3
./Configure -- with-command-group = nagcmd
Make all
Make install
Make install-init
Make install-config
Make install-commandmode
Set the apache server access password:
Cd/usr/local/nagios/etc/
/Usr/local/apache/bin/htpasswd-c/usr/local/nagios/etc/htpasswd. users nagiosadmin
Cd/usr/local/apache/conf/
Vi httpd-vhosts.conf
Configure apache cgi as follows:
ScriptAlias/nagios/cgi-bin/usr/local/nagios/sbin
Options ExecCGI
AllowOverride None
Order allow, deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile/usr/local/nagios/etc/htpasswd. users
Require valid-user
Alias/nagios/usr/local/nagios/share
Options None
AllowOverride None
Order allow, deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile/usr/local/nagios/etc/htpasswd. users
Require valid-user
Restart apache
/Usr/local/apache/bin/apachectl configtest
/Usr/local/apache/bin/apachectl stop
/Usr/local/apache/bin/apachectl start