Difference between revisions of "Install Nagios on CentOS 5"

From CSLabsWiki
(created)
 
(Added full instructions.)
Line 1: Line 1:
This page summarizes how to install Nagios on CentOS 5.
+
This page summarizes how to perform a basic installation of Nagios on CentOS 5.
   
 
==Install==
 
==Install==
Line 6: Line 6:
 
**From [http://dag.wieers.com/rpm/FAQ.php#B2 Dag Wieers]
 
**From [http://dag.wieers.com/rpm/FAQ.php#B2 Dag Wieers]
   
===Install Prerequisites===
+
===Install & Configure Prerequisites===
  +
*Install Apache
*<code>yum install httpd</code>
 
  +
**<code>yum install httpd</code>
  +
  +
*Configure Apache to start on boot
  +
**<code>/sbin/chkconfig --levels 35 httpd on</code>
  +
  +
===Install & Configure Nagios===
  +
  +
*Install Nagios & Plugins
  +
**<code>yum install nagios nagios-plugins nagios-plugins-setuid</code>
  +
  +
*Create the default Nagios web access user & set a password
  +
**<code>htpasswd -c /etc/nagios/htpasswd.users nagiosadmin</code>
  +
  +
*Verify default config files
  +
**<code>nagios -v /etc/nagios/nagios.cfg</code>
  +
  +
*Start Nagios
  +
**<code>/etc/init.d/nagios start</code>
  +
  +
*Start Apache
  +
**<code>/etc/init.d/httpd start</code>
  +
  +
==Verify Install==
  +
*Try logging into your new Nagios installation by going to <code>http://servername/nagios/</code> and logging in with <code>nagiosadmin</code> and the password you set.

Revision as of 22:35, 23 February 2009

This page summarizes how to perform a basic installation of Nagios on CentOS 5.

Install

Add RPMForge Yum Repository

Install & Configure Prerequisites

  • Install Apache
    • yum install httpd
  • Configure Apache to start on boot
    • /sbin/chkconfig --levels 35 httpd on

Install & Configure Nagios

  • Install Nagios & Plugins
    • yum install nagios nagios-plugins nagios-plugins-setuid
  • Create the default Nagios web access user & set a password
    • htpasswd -c /etc/nagios/htpasswd.users nagiosadmin
  • Verify default config files
    • nagios -v /etc/nagios/nagios.cfg
  • Start Nagios
    • /etc/init.d/nagios start
  • Start Apache
    • /etc/init.d/httpd start

Verify Install

  • Try logging into your new Nagios installation by going to http://servername/nagios/ and logging in with nagiosadmin and the password you set.