Install Nagios on CentOS 5

From CSLabsWiki
Revision as of 23:06, 23 February 2009 by Mccarrms (talk | contribs) (Everything!)

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


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.
  • Note: Not all plugins will run without additional packages being installed (Ex. check_mysql won't run without installing mysql).