Problems with the script alias, no access to gifs png`s and css because always pointing my browser to non existing for example /nagios/cgi-bin/nagios/images/tacenabled.png
christian.michlbauer at degussa.com
christian.michlbauer at degussa.com
Thu May 13 14:40:21 CEST 2004
Hi,
I have a running Nagios installation, i currently monitor some webservers
with the check_wget script and some other servers by ping and ftp and so
on, this is working fine.
But i have an strange problem with the Webfrontend. I see on the left site
the Output from the side.html, but on the right side i have only the raw
output without any gifs png`s and now background.
For Example:
When I click on the Tactical Overview Button i see the following error
messages in my /var/log/apache2/access.log:
194.127.243.14 - nagios [13/May/2004:14:17:41 +0200] "GET
/nagios/cgi-bin/tac.cgi HTTP/1.1" 200 10631 "http://10.60.64.101
/nagios/side.html" "Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.5)
Gecko/20031007 Firebird/0.7" ==> THE CGI is still OK !!!
------
194.127.243.14 - - [13/May/2004:14:17:42 +0200] "GET
/nagios/cgi-bin/nagios/stylesheets/tac.css HTTP/1.1" 404 1327
"http://10.60.64.101/nagios/cgi-bin/tac.cgi" "Mozilla/5.0 (X11; U; Linux
i686; de-DE; rv:1.5) Gecko/20031007 Firebird/0.7"
I think the problem must come with the Alias and ScriptAlias configuration
in my httpd.conf
Because the stylesheets are in the directory
/usr/local/nagios/share/stylesheets and not in
/usr/local/nagios/sbin/nagios/stylesheets where i was pointed to.
I have tried almost everything but i don`t know how to get this running.
Here`s my httpd.conf
# NAGIOS
ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/
<Directory "/usr/local/nagios/sbin/">
AllowOverride Authconfig
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
Alias /nagios/ /usr/local/nagios/share/
<Directory /usr/local/nagios/share>
AllowOverride AuthConfig
order allow,deny
allow from all
</Directory>
I have testet this with old apache 1.3 and with apache 2, but always the
same problem.
My installation looks like the following:
SuSE 9.0, SuSE Kernel 2.4.21-215-default with apache2, nagios-1.2 and
nagios-plugins-1.3.1
I have configured Nagios in the following way:
nagios-1.2
1. ./configure --prefix=/usr/local/nagios --with-gd-lib=/usr/lib
--with-gd-inc=/usr/include --with-cgiurl=/nagios/cgi-bin
--with-htmurl=/nagios
--with-nagios-user=nagios --with-nagios-grp=nagios
--with-template-objects
2. make all
3. make install
*** Configuration summary for nagios 1.2 02-02-2004 ***:
General Options:
-------------------------
Nagios executable: nagios
Nagios user/group: nagios,nagios
Command user/group: nagios,nagios
Embedded Perl: no
Install ${prefix}: /usr/local/nagios
Lock file: ${prefix}/var/nagios.lock
Init directory: /etc/rc.d
Web Interface Options:
------------------------
HTML URL: http://localhost/nagios/
CGI URL: http://localhost/nagios/cgi-bin/
Traceroute (used by WAP): /usr/sbin/traceroute
External Data Routines:
------------------------
Status data: Default (text file)
Object data: Template-based (text file)
Comment data: Default (text file)
Downtime data: Default (text file)
Retention data: Default (text file)
Peformance data: Default (external commands)
Extended info data: Template-based (text file)
nagios-plugins-1.3.1
1. ./configure --prefix=/usr/local/nagios --with-nagios-user=nagios
--with-nagios-group=nagios --with-cgiurl=/nagios/cgi-bin
2. make all
3. make install
I hope there is someone out who can help with this propably silly problem.
Thanks in advance
Chris
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id%62&alloc_ida84&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