How to install Nagios 3 from EPEL repository on RHEL 6

Install EPEL repository

rpm -ivh

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