Problem with setting up web interface

Hi,

I had problem with setting up web interface.
OS: Redhat Linux 9
Nagios version 2.10
Nagios Plugins 1.4.11

When i tried to follow the steps in Nagios Documentation, i am not able to view nagios page.
As said in the documentation, i added the following script in the httpd.conf file.

ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin
<Directory “/usr/local/nagios/sbin”>
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user

Alias /nagios /usr/local/nagios/share
<Directory “/usr/local/nagios/share”>
Options None
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user

And then, i went to cgi.cfg and changed use_authentication value from 0 to 1

Then i went to command promt and run this command to create a password for the nagiosadmin.
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin

I entered password and when asked to retype,i typed my password again.

A password file is created in the usr/local/nagios/etc.

Then, i restared the apache webserver, by making use of this command.

/etc/rc.d/init.d/httpd restart

Now, when i tried to point to my browser using ‘http://localhost/nagios’. I also tried localhost/nagios/

It is asking for username and password.
Even though i type the correct username and password, i am not able to see the nagios page.

What are the other changes that i need to do, inorder to set the web interface?
I placed the scriptalias and alias befor the default script alias command available in the configuration file.

Kindly help me in this regard.

could you be more precise on the “i am not able to see the nagios page.” ?
what do you see ? What’s the error message ?

After i give the username and password, again these two fields are reset. If i click RESET button, this is the error message.
Authorisation required.

well; from the extract of your config, everything seems fine …
just to make sure: could you check that your /usr/local/nagios/etc/htpasswd.users file contains your user and the hash of his password ? (ie: that the command ‘htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin’ worked as intended).

Because apart from that, I can’t see where the error may come from …

ya…it has username and password is in encrypted form.

anything pertinent in the apache error log?

[Wed Mar 05 12:01:41 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Mar 05 12:01:42 2008] [notice] Digest: generating secret for digest authentication …
[Wed Mar 05 12:01:42 2008] [notice] Digest: done
[Wed Mar 05 12:01:42 2008] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Wed Mar 05 12:01:42 2008] [notice] LDAP: SSL support unavailable
[Wed Mar 05 12:01:52 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Wed Mar 05 12:01:53 2008] [notice] Apache/2.0.52 (Red Hat) configured – resuming normal operations
[Wed Mar 05 12:05:21 2008] [notice] caught SIGTERM, shutting down
[Wed Mar 05 14:08:45 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Mar 05 14:08:45 2008] [notice] Digest: generating secret for digest authentication …
[Wed Mar 05 14:08:45 2008] [notice] Digest: done
[Wed Mar 05 14:08:45 2008] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Wed Mar 05 14:08:45 2008] [notice] LDAP: SSL support unavailable
[Wed Mar 05 14:08:56 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Wed Mar 05 14:08:56 2008] [notice] Apache/2.0.52 (Red Hat) configured – resuming normal operations
[Wed Mar 05 14:41:47 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/nagios
[Wed Mar 05 14:41:47 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Wed Mar 05 14:42:08 2008] [error] [client 192.9.90.100] File does not exist: /var/www/html/nagios
[Wed Mar 05 14:42:08 2008] [error] [client 192.9.90.100] File does not exist: /var/www/html/favicon.ico
[Wed Mar 05 15:22:55 2008] [notice] caught SIGTERM, shutting down
[Wed Mar 05 15:22:56 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Mar 05 15:22:57 2008] [notice] Digest: generating secret for digest authentication …
[Wed Mar 05 15:22:57 2008] [notice] Digest: done
[Wed Mar 05 15:22:57 2008] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Wed Mar 05 15:22:57 2008] [notice] LDAP: SSL support unavailable
[Wed Mar 05 15:23:07 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Wed Mar 05 15:23:08 2008] [notice] Apache/2.0.52 (Red Hat) configured – resuming normal operations
[Wed Mar 05 15:28:50 2008] [error] [client 192.9.90.100] (13)Permission denied: access to /nagios/ denied
[Wed Mar 05 15:28:50 2008] [error] [client 192.9.90.100] File does not exist: /var/www/html/favicon.ico
[Wed Mar 05 15:28:57 2008] [error] [client 192.9.90.100] (13)Permission denied: access to /nagios/ denied
[Wed Mar 05 15:28:57 2008] [error] [client 192.9.90.100] File does not exist: /var/www/html/favicon.ico
[Wed Mar 05 15:29:37 2008] [error] [client 127.0.0.1] (13)Permission denied: access to /nagios/ denied
[Wed Mar 05 15:29:37 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Wed Mar 05 15:40:50 2008] [error] [client 192.9.90.100] (13)Permission denied: access to /nagios/ denied
[Wed Mar 05 15:40:50 2008] [error] [client 192.9.90.100] File does not exist: /var/www/html/favicon.ico
[Wed Mar 05 15:41:00 2008] [error] [client 192.9.90.100] (13)Permission denied: access to /nagios denied
[Wed Mar 05 15:41:00 2008] [error] [client 192.9.90.100] File does not exist: /var/www/html/favicon.ico
[Wed Mar 05 15:41:12 2008] [error] [client 127.0.0.1] (13)Permission denied: access to /nagios denied
[Wed Mar 05 15:41:13 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Wed Mar 05 15:48:12 2008] [error] [client 127.0.0.1] (13)Permission denied: access to /nagios/ denied
[Wed Mar 05 15:48:12 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Wed Mar 05 15:49:20 2008] [error] [client 127.0.0.1] (13)Permission denied: access to /nagios/ denied
[Wed Mar 05 15:49:20 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Wed Mar 05 15:50:34 2008] [notice] caught SIGTERM, shutting down
[Wed Mar 05 15:53:48 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Mar 05 15:53:48 2008] [notice] Digest: generating secret for digest authentication …
[Wed Mar 05 15:53:48 2008] [notice] Digest: done
[Wed Mar 05 15:53:48 2008] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Wed Mar 05 15:53:48 2008] [notice] LDAP: SSL support unavailable
[Wed Mar 05 15:53:59 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Wed Mar 05 15:53:59 2008] [error] [client 127.0.0.1] (13)Permission denied: access to /nagios/ denied
[Wed Mar 05 15:53:59 2008] [notice] Apache/2.0.52 (Red Hat) configured – resuming normal operations
[Wed Mar 05 15:53:59 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Wed Mar 05 15:58:29 2008] [error] [client 127.0.0.1] (13)Permission denied: access to /nagios/cgi-bin denied
[Wed Mar 05 15:58:29 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Wed Mar 05 16:06:29 2008] [error] [client 127.0.0.1] (13)Permission denied: access to /nagios denied
[Wed Mar 05 16:06:29 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Wed Mar 05 16:06:35 2008] [error] [client 127.0.0.1] (13)Permission denied: access to /nagios/cgi-bin denied
[Wed Mar 05 16:06:35 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Wed Mar 05 16:06:38 2008] [error] [client 127.0.0.1] (13)Permission denied: access to /nagios/cgi-bin denied
[Wed Mar 05 16:06:38 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Wed Mar 05 16:06:42 2008] [error] [client 192.9.90.100] (13)Permission denied: access to /nagios denied
[Wed Mar 05 16:06:42 2008] [error] [client 192.9.90.100] File does not exist: /var/www/html/favicon.ico
[Wed Mar 05 16:06:44 2008] [error] [client 192.9.90.100] (13)Permission denied: access to /nagios denied
[Wed Mar 05 16:06:44 2008] [error] [client 192.9.90.100] File does not exist: /var/www/html/favicon.ico
[Wed Mar 05 16:06:45 2008] [error] [client 192.9.90.100] (13)Permission denied: access to /nagios denied
[Wed Mar 05 16:06:45 2008] [error] [client 192.9.90.100] File does not exist: /var/www/html/favicon.ico
[Wed Mar 05 16:06:45 2008] [error] [client 192.9.90.100] (13)Permission denied: access to /nagios denied
[Wed Mar 05 16:06:45 2008] [error] [client 192.9.90.100] File does not exist: /var/www/html/favicon.ico
[Wed Mar 05 16:16:59 2008] [notice] caught SIGTERM, shutting down
[Wed Mar 05 16:17:00 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Mar 05 16:17:01 2008] [notice] Digest: generating secret for digest authentication …
[Wed Mar 05 16:17:01 2008] [notice] Digest: done
[Wed Mar 05 16:17:01 2008] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Wed Mar 05 16:17:01 2008] [notice] LDAP: SSL support unavailable
[Wed Mar 05 16:17:11 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Wed Mar 05 16:17:11 2008] [notice] Apache/2.0.52 (Red Hat) configured – resuming normal operations
[Wed Mar 05 17:43:48 2008] [notice] caught SIGTERM, shutting down
[Wed Mar 05 17:52:35 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Mar 05 17:52:36 2008] [notice] Digest: generating secret for digest authentication …
[Wed Mar 05 17:52:36 2008] [notice] Digest: done
[Wed Mar 05 17:52:36 2008] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Wed Mar 05 17:52:36 2008] [notice] LDAP: SSL support unavailable
[Wed Mar 05 17:52:47 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Wed Mar 05 17:52:47 2008] [notice] Apache/2.0.52 (Red Hat) configured – resuming normal operations
[Wed Mar 05 17:52:50 2008] [error] [client 192.9.90.100] (13)Permission denied: access to /nagios/ denied
[Wed Mar 05 17:52:50 2008] [error] [client 192.9.90.100] File does not exist: /var/www/html/favicon.ico
[Wed Mar 05 18:00:47 2008] [notice] caught SIGTERM, shutting down
[Wed Mar 05 18:00:48 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Mar 05 18:00:48 2008] [notice] Digest: generating secret for digest authentication …
[Wed Mar 05 18:00:48 2008] [notice] Digest: done
[Wed Mar 05 18:00:48 2008] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Wed Mar 05 18:00:48 2008] [notice] LDAP: SSL support unavailable
[Wed Mar 05 18:00:58 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Wed Mar 05 18:00:58 2008] [notice] Apache/2.0.52 (Red Hat) configured – resuming normal operations
[Wed Mar 05 18:01:18 2008] [error] [client 127.0.0.1] Directory index forbidden by rule: /var/www/html/
[Wed Mar 05 18:01:19 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Wed Mar 05 18:01:24 2008] [error] [client 127.0.0.1] (13)Permission denied: access to /nagios/ denied
[Wed Mar 05 18:01:24 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Wed Mar 05 18:02:00 2008] [notice] caught SIGTERM, shutting down
[Wed Mar 05 18:02:01 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Mar 05 18:02:01 2008] [notice] Digest: generating secret for digest authentication …
[Wed Mar 05 18:02:01 2008] [notice] Digest: done
[Wed Mar 05 18:02:01 2008] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Wed Mar 05 18:02:01 2008] [notice] LDAP: SSL support unavailable
[Wed Mar 05 18:02:10 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Mar 05 18:02:10 2008] [notice] Digest: generating secret for digest authentication …
[Wed Mar 05 18:02:10 2008] [notice] Digest: done
[Wed Mar 05 18:02:10 2008] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Wed Mar 05 18:02:10 2008] [notice] LDAP: SSL support unavailable
[Wed Mar 05 18:02:20 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Wed Mar 05 18:02:21 2008] [notice] Apache/2.0.52 (Red Hat) configured – resuming normal operations
[Thu Mar 06 09:24:59 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Mar 06 09:24:59 2008] [notice] Digest: generating secret for digest authentication …
[Thu Mar 06 09:24:59 2008] [notice] Digest: done
[Thu Mar 06 09:24:59 2008] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Thu Mar 06 09:24:59 2008] [notice] LDAP: SSL support unavailable
[Thu Mar 06 09:25:09 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Thu Mar 06 09:25:10 2008] [notice] Apache/2.0.52 (Red Hat) configured – resuming normal operations
[Thu Mar 06 09:25:10 2008] [error] [client 127.0.0.1] Directory index forbidden by rule: /var/www/html/
[Thu Mar 06 09:25:10 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Thu Mar 06 09:28:00 2008] [error] [client 127.0.0.1] (13)Permission denied: access to /nagios/cgi-bin denied
[Thu Mar 06 09:28:00 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Thu Mar 06 11:16:28 2008] [error] [client 192.9.90.100] (13)Permission denied: access to /nagios denied
[Thu Mar 06 11:16:29 2008] [error] [client 192.9.90.100] File does not exist: /var/www/html/favicon.ico
[Thu Mar 06 11:16:43 2008] [error] [client 192.9.90.100] (13)Permission denied: access to /nagios denied
[Thu Mar 06 11:16:43 2008] [error] [client 192.9.90.100] File does not exist: /var/www/html/favicon.ico
[Thu Mar 06 12:52:35 2008] [error] [client 127.0.0.1] Directory index forbidden by rule: /var/www/html/
[Thu Mar 06 12:52:35 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Thu Mar 06 12:52:47 2008] [error] [client 127.0.0.1] (13)Permission denied: access to /nagios/ denied
[Thu Mar 06 12:52:47 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Thu Mar 06 12:58:58 2008] [error] [client 127.0.0.1] (13)Permission denied: access to /nagios denied
[Thu Mar 06 12:58:58 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Thu Mar 06 12:59:05 2008] [error] [client 127.0.0.1] Directory index forbidden by rule: /var/www/html/
[Thu Mar 06 12:59:06 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Thu Mar 06 13:08:48 2008] [error] [client 127.0.0.1] (13)Permission denied: access to /nagios denied
[Thu Mar 06 13:08:48 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Thu Mar 06 13:13:05 2008] [error] [client 127.0.0.1] Directory index forbidden by rule: /var/www/html/
[Thu Mar 06 13:13:07 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Thu Mar 06 13:17:44 2008] [error] [client 127.0.0.1] (13)Permission denied: access to /nagios/ denied
[Thu Mar 06 13:17:44 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Thu Mar 06 13:17:48 2008] [error] [client 127.0.0.1] (13)Permission denied: access to /nagios/ denied
[Thu Mar 06 13:17:48 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Thu Mar 06 13:17:51 2008] [error] [client 127.0.0.1] Directory index forbidden by rule: /var/www/html/
[Thu Mar 06 13:17:51 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Thu Mar 06 13:24:16 2008] [error] [client 127.0.0.1] Directory index forbidden by rule: /var/www/html/
[Thu Mar 06 13:24:16 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Thu Mar 06 13:24:35 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/index.html
[Thu Mar 06 13:24:35 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Thu Mar 06 13:24:38 2008] [error] [client 127.0.0.1] Directory index forbidden by rule: /var/www/html/
[Thu Mar 06 13:24:38 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Thu Mar 06 13:24:53 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/mrtg-rrd.html
[Thu Mar 06 13:24:53 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Thu Mar 06 13:24:57 2008] [error] [client 127.0.0.1] Directory index forbidden by rule: /var/www/html/
[Thu Mar 06 13:24:57 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Thu Mar 06 13:56:16 2008] [notice] caught SIGTERM, shutting down
[Thu Mar 06 13:58:57 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Mar 06 13:58:58 2008] [notice] Digest: generating secret for digest authentication …
[Thu Mar 06 13:58:58 2008] [notice] Digest: done
[Thu Mar 06 13:58:58 2008] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Thu Mar 06 13:58:58 2008] [notice] LDAP: SSL support unavailable
[Thu Mar 06 13:59:08 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Thu Mar 06 13:59:09 2008] [notice] Apache/2.0.52 (Red Hat) configured – resuming normal operations

Well, you may need to uncomment authorization =1 in your cgi.cfg file.

M