How to install Nagios 3 from EPEL repository on RHEL 6

Install EPEL repository

rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

Install required packages

yum install httpd nagios

Install Nagios plugins

yum install nagios-plugins-all

Restart Apache

/etc/init.d/httpd restart

Start nagios

chkconfig nagios on

/etc/init.d/nagios start

Set the password

htpasswd -c /etc/nagios/passwd nagiosadmin

Useful commands

  • Check config: /etc/init.d/nagios checkconfig or nagios -v /etc/nagios/nagios.cfg

Useful Links