trouble setting up web interface, Nagios 2.0b3

Arnar Thorarinsson art at caa.is
Tue Apr 12 10:34:32 CEST 2005


Trying to setup nagios 2.0b3, no problem compiling but having a hella
time configuring auth. for the web interface.
added entry to /etc/httpd/conf/httpd.conf, made .htaccess file in
/usr/local/nagios/sbin and /usr/local/nagios/share and made
htpasswd.users file in /usr/local/nagios/etc...restarted httpd but....
still can't logon to the nagios web ( and no I'm not typing it wrong )

what I get in /var/log/httpd/error_log:
[Tue Apr 12 08:23:57 2005] [error] [client xxx.xxx.xxx.xxx] MySQL ERROR:
Table 'test.user_info' doesn't exist: /nagios/
[Tue Apr 12 08:23:57 2005] [error] [client xxx.xxx.xxx.xxx] MySQL user
nagios not found: /nagios/


running Redhat Enterprise 4 ES

anybody see what I'm missing ???


Configured nagios with:
./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin
--with-htmurl=/nagios --with-nagios-user=nagios --with-nagios-grp=nagios
--with-command-group=nagioscmd --with-mysql-xdata
--with-mysql-lib=/usr/lib --with-mysql-inc=/usr/include/mysql
--with-file-perfdata

drwxr--r--  2 nagios nagios 4096 Apr 12 08:10 /usr/local/nagios/etc
-rw-rw-r--  1 nagios nagios 21 Apr 12 08:10          etc/htpasswd.users
drwxr-xr-x 2 nagios nagios 4096 Apr 11 18:27 /usr/local/nagios/sbin
-rw-r--r-- 1 nagios nagios 110 Apr 11 18:27          sbin/.htaccess
drwxr-xr-x  9 nagios nagios 4096 Apr 12 08:09 /usr/local/nagios/share
-rw-rw-rw-  1 nagios nagios 109 Apr 12 08:09         share/.htaccess


/usr/local/nagios/share/.htaccess
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
require valid-user


/etc/httpd/conf/httpd.conf :
#################################################
# Added for Nagios web                          #
#################################################

ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
#   SSLRequireSSL
   AllowOverride AuthConfig
   Order allow,deny
   Allow from all
   Options ExecCGI
</Directory>

Alias /nagios/ "/usr/local/nagios/share/"
<Directory "/usr/local/nagios/share">
#   SSLRequireSSL
   AllowOverride AuthConfig
   Order allow,deny
   Allow from all
</Directory>

#################################################
# Nagios web end                                #
#################################################
-- 
Regards
Arnar Thorarinsson

Software Programmer / System Administrator
Systems Department, Air Traffic Services
Phone : +354 569 4289
------------------------------------------
Icelandic Civil Aviation Administration
Reykjavik Airport
IS 121 Reykjavik
Iceland
http://www.caa.is
------------------------------------------



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list