Antwort: RE: Very basic configuration questions [Virus scanned]
srunschke at abit.de
srunschke at abit.de
Mon Jul 18 16:37:12 CEST 2005
> A little deviating from the usual webserver config as outlined in
> the Nagios docs I'm using here
> a virtual host configuration why I omitted the suggested nagios
> subdir from ServerRoot (no need for such distinction for a
> virtual host) and defined the below
That's perfectly ok, as long as you used the --with-htmurl and
--with-cgiurl switches of the configure script and pointed them
to starting in the serverroot aka
./configure --with-htmurl=/ --with-cgiurl=/cgi-bin
> $ sed -n '/^# grothe/,$p' /usr/HTTPServer/conf/httpd.conf|sed -n
> /ScriptAlias/,\$p|grep -v Allow\ From
> From
> ScriptAlias /cgi-bin /opt/sw/nagios/sbin
> <Directory /opt/sw/nagios/sbin>
> Options None
> AllowOverride AuthConfig
> Order allow,deny
> </Directory>
> </VirtualHost>
>
>
> It looks like I need to substitute the href attributes in the
> anchors of the starting Nagios screen to get the CGIs properly
> invoked.
> Yes, a Nagios newbie shouldn't deviate from the standard
> procedures ;-)
Well, do not expect CGIs to work if you do not give the directory
cgi-execution permissions ;) Then again, the omission of trailing
slashes can cause havoc on your installation too.
ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin/
<Directory /usr/local/nagios/sbin/>
Options ExecCGI
order deny,allow
deny from all
AuthType Basic
AuthUserFile /usr/local/nagios/etc/nagios.users
AuthGroupFile /usr/local/nagios/etc/nagios.groups
AuthName "Administrativer Nagios Zugang"
require group nagios
Satisfy Any
</Directory>
Alias /nagios /usr/local/nagios/share
<Directory /usr/local/nagios/share>
Options None
order deny,allow
deny from all
AuthType Basic
AuthUserFile /usr/local/nagios/etc/nagios.users
AuthGroupFile /usr/local/nagios/etc/nagios.groups
AuthName "Administrativer Nagios Zugang"
require group nagios
Satisfy Any
</Directory>
Alias /nagios2help /usr/local/nagios/
Rework those to using ServerRoot instead and it should work.
Using Auth is mandatory too when dealing with the CGIs, I don't
know if you used that in your htaccess, but your config suggests
so.
--------------------------------------------------
Sascha Runschke
Netzwerk Administration
IT-Services
ABIT AG
Robert-Bosch-Str. 1
40668 Meerbusch
Tel.:+49 (0) 2150.9153.226
Mobil:+49 (0) 173.5419665
mailto:SRunschke at abit.de
http://www.abit.net
http://www.abit-epos.net
http://www.my-academy.net
--------------------------------------------------
Der Inhalt dieser Email sowie die Anhänge sind ausschließlich für den
bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat
dieser Email oder dessen Vertreter sein sollten, so beachten Sie bitte,
daß jede Form der Kenntnisnahme, Veröffentlichung, Vervielfältigung oder
Weitergabe des Inhalts dieser Email unzulässig ist. Wir möchten Sie
außerdem darauf hinweisen, daß die Kommunikation per Email über das
Internet unsicher ist, da fuer unberechtigte Dritte grundsätzlich die
Möglichkeit der Kenntnisnahme und Manipulation besteht. Wenn Sie diese
Nachricht versehentlich erhalten, informieren Sie bitte den Absender und
löschen diese Nachricht mit den Anhängen. Herzlichen Dank
The information and any attachments contained in this email are intended
solely for the addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any form of
disclosure, reproduction, distribution or any action taken or refrained
from in reliance on it, is prohibited and may be unlawful. We also like to
inform you that communication via email over the internet is insecure
because third parties may have the possibility to access and manipulate
emails. If you have received the message in error, please advise the
sender and delete the message and any attachments. Thank you very much.
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&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