After I follow your instruction to run
make install-commandmode
make install-init
service nagios restart
service httpd restart
I able to connect to
http://localhost/nagios but it will not accept the username and password. Have the update change the username and password? If it is what is the default username and password to login.
below is the error log.
____________________________________________________
[root@localhost ~]# service nagios stop
Stopping nagios: done.
[root@localhost ~]# make install-commandmode
make: *** No rule to make target `install-commandmode'. Stop.
[root@localhost ~]# cd Downloads
[root@localhost Downloads]# cd nagios-4.0.2
[root@localhost nagios-4.0.2]# make install-commandmode
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/var/rw
chmod g+s /usr/local/nagios/var/rw
*** External command directory configured ***
[root@localhost nagios-4.0.2]# make install-init
/usr/bin/install -c -m 755 -d -o root -g root /etc/rc.d/init.d
/usr/bin/install -c -m 755 -o root -g root daemon-init /etc/rc.d/init.d/nagios
*** Init script installed ***
[root@localhost nagios-4.0.2]# service nagios restart
Nagios Core 4.0.2
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 11-25-2013
License: GPL
Website:
http://www.nagios.org
Reading configuration data...
Error: Cannot open main configuration file '/usr/local/nagios/etc/nagios.cfg' for reading!
Error processing main config file!
[root@localhost nagios-4.0.2]# service nagios start
nagios is stopped
[root@localhost nagios-4.0.2]# service nagios start
nagios is stopped
[root@localhost nagios-4.0.2]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@localhost nagios-4.0.2]# tail -25 /var/log/httpd/error_log
[Tue Feb 25 14:29:32 2014] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: /usr/local/nagios/etc/htpasswd.users
[Tue Feb 25 14:29:32 2014] [error] [client 127.0.0.1] access to /nagios/ failed, reason: verification of user id 'nagiosadmin' not configured
[Tue Feb 25 14:29:41 2014] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: /usr/local/nagios/etc/htpasswd.users
[Tue Feb 25 14:29:41 2014] [error] [client 127.0.0.1] access to /nagios/ failed, reason: verification of user id 'nagiosadmin' not configured
[Tue Feb 25 14:29:58 2014] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Tue Feb 25 14:29:58 2014] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Tue Feb 25 14:30:36 2014] [error] [client 216.4.233.100] (2)No such file or directory: Could not open password file: /usr/local/nagios/etc/htpasswd.users
[Tue Feb 25 14:30:36 2014] [error] [client 216.4.233.100] access to /nagios failed, reason: verification of user id 'nagiosadmin' not configured
[Tue Feb 25 14:30:49 2014] [error] [client 216.4.233.100] (2)No such file or directory: Could not open password file: /usr/local/nagios/etc/htpasswd.users
[Tue Feb 25 14:30:49 2014] [error] [client 216.4.233.100] access to /nagios failed, reason: verification of user id 'nagiosadmin' not configured
[Tue Feb 25 14:30:56 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Tue Feb 25 14:30:57 2014] [error] [client 216.4.233.100] (2)No such file or directory: Could not open password file: /usr/local/nagios/etc/htpasswd.users
[Tue Feb 25 14:30:57 2014] [error] [client 216.4.233.100] access to /nagios failed, reason: verification of user id 'nagiosadmin' not configured
[Tue Feb 25 14:31:02 2014] [error] [client 216.4.233.100] File does not exist: /var/www/html/favicon.ico
[Tue Feb 25 14:31:02 2014] [error] [client 216.4.233.100] File does not exist: /var/www/html/favicon.ico
[Tue Feb 25 14:35:56 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Tue Feb 25 14:40:56 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Tue Feb 25 14:45:56 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Tue Feb 25 14:50:56 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Tue Feb 25 14:55:03 2014] [notice] caught SIGTERM, shutting down
[Tue Feb 25 14:55:04 2014] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0
[Tue Feb 25 14:55:04 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Feb 25 14:55:04 2014] [notice] Digest: generating secret for digest authentication ...
[Tue Feb 25 14:55:04 2014] [notice] Digest: done
[Tue Feb 25 14:55:04 2014] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[root@localhost nagios-4.0.2]#