1. Download nagios software and Nagios plugin from http://www.nagios.org/download/
2. Install gcc, libgcc for compilation.
3. Create User nagios and group nagios
4. Install Nagios
# tar –xvf nagios-3.2.3.tar
# cd nagios-3.2.3
# ./configure –with-command-group=nagcmd
# make all
# make install
# make install-config
#make install-commandmode
5. Configure the web interface
# make install-webconf
# htpasswd –c /usr/local/nagios/etc/htpasswd.users nagiosadmin
Enter the password
6. Compile and install nagios plugin
# tar –xvf nagios-plugin-1.4.11.tar
# cd nagios-plugin-1.4.11
# ./configure - -with-nagios-user=nagios - -with-nagios-group=nagios
#make
#make install
7. Start Nagios
#chkconfig - -add nagios
#chkconfig nagios on
# service nagios start
8. Test nagios configuration file
# /usr/local/nagios/bin/nagios –v /usr/local/nagios/etc/nagios.cfg
9. Login to nagios web interface at http://hostname/nagios/ using nagiosadmin account.
Check Ramesh Natrajan's blog at http://www.thegeekstuff.com/2008/05/nagios-30-jumpstart-guide-for-red-hat-overview-installation-and-configuration/
from where i took help to setup my Nagios server
No comments:
Post a Comment