How to install Nagios on CentOS?
Nagios CGI Settings
[root@yourmachine ~] cd /etc/nagios
[root@yourmachine nagios] vim cgi.cfg
# AUTHENTICATION USAGE
use_authentication=1
# SYSTEM/PROCESS INFORMATION ACCESS
authorized_for_system_information=nagiosadmin
# CONFIGURATION INFORMATION ACCESS
authorized_for_configuration_information=nagiosadmin
# SYSTEM/PROCESS COMMAND ACCESS
authorized_for_system_commands=nagiosadmin
# GLOBAL HOST/SERVICE VIEW ACCESS
authorized_for_all_services=nagiosadmin
authorized_for_all_hosts=nagiosadmin
# GLOBAL HOST/SERVICE COMMAND ACCESS
authorized_for_all_service_commands=nagiosadmin
authorized_for_all_host_commands=nagiosadmin
We have configured Apache for nagios lets restart Apache
[root@yourmachine ~] /etc/rc.d/init.d/httpd restart
To test Nagios web interface and Apache configuration, open your favorite browser and open URL http://localhost/nagios/