How to install Nagios on Oracle Linux 6.3

How to install Nagios on Oracle Linux 6.3

After being busy in last few days because of my Forex trading activity, today I want to write a simple tutorial for Oracle Linux 6.3 users. In this post I will show you how to install Nagios on my Oracle Linux 6.3 server. Nagios is a powerful network monitoring tool which provides detailed information about the network and computers connected to the network. See the Nagios website for more information about nagios.

Steps to install Nagios on Oracle Linux 6.3

Ok, login to your Oracle Linux server via Terminal console and search for Nagios package. Use this command as root
yum search nagios
[root@oracle ~]# yum search nagios
Loaded plugins: security
ol6_latest/primary                                       |  20 MB     11:25
ol6_latest                                                          14612/14612
rpmforge                                                 | 1.9 kB     00:00
virtualbox                                               |  951 B     00:00
============================= N/S Matched: nagios ==============================
nagios-devel.i686 : Header files, libraries and development documentation for
                  : nagios
nagios-nrpe.i686 : Nagios Remote Plug-ins Execution daemon
nagios-nsca.i686 : Nagios Service Check Acceptor
nagios-nsca-client.i686 : nagios send_nsca
nagios-plugins.i686 : Host/service/network monitoring program plugins for Nagios
nagios-plugins-nrpe.i686 : Nagios plug-in for NRPE
nagios-plugins-setuid.i686 : Host/service/network monitoring program plugins for
                           : Nagios requiring setuid
perl-Nagios-Object.noarch : Nagios::Object - Nagios object configuration parsing
perl-Nagios-Plugin.noarch : Family of perl modules to streamline writing Nagios
rss4nagios.i686 : Authenticated RSS alerts for nagios
check_logfiles.i686 : Logfile check  plugin for nagios
nagios.i686 : Open Source host, service and network monitoring program
nagstamon.noarch : Nagios status monitor for your desktop
ndoutils.i686 : Nagios plugin to store Nagios data in a relational database
nsc.noarch : Console monitor for Nagios
  Name and summary matches only, use "search all" for everything.
You have new mail in /var/spool/mail/root
I am not sure if nagios is located on Oracle repository or RPMForge or RPM Fusion. In case you cannot find the package, you can use this link to read how to add the RPMFusion repository to CentOS based Linux

OK lets get back to install Nagios. After you confirm that you have nagios package on the repo. Proceed with this command to install nagios on Oracle Linux
yum install nagios
When finished, we can start the httpd and nagios using command
service httpd start
service nagios start
[root@oracle ~]# service start httpd
start: unrecognized service
[root@oracle ~]# service httpd start
Starting httpd:
[root@oracle ~]# service nagios start
nagios is stopped
Starting nagios:                                           [  OK  ]
That's it. For more information, please visit http://wiki.centos.org/HowTos/Nagios