Nagios 1.2 and OpenBSD. CGI issues

Harper Mann hmann at itgroundwork.com
Wed Sep 15 17:23:43 CEST 2004


Can you run the cgi from the command line?  Do you get errors?  Perhaps it's
not finding a shared object?

- Harper

Harper Mann
Groundwork Open Source Solutions
510-599-2075 (cell)


-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of nemir nemiria
Sent: Wednesday, September 15, 2004 1:50 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Nagios 1.2 and OpenBSD. CGI issues

Hi there!

I have just configured nagios under OpenBSD and it was all great until I got
up to the bit where the CGI's try to run.

OpenBSD by default sets up a chrooted environment for httpd under /var/www,
and rather than turn this off I am attempting to make everything happy
within this restriction.

I installed nagios under teh default /usr/local/nagios directory.    I
created the rw directory as directed in the documentation.  I started up
nagios just fine.   I edited my apache config as follows:

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

 
Alias /nagios /htdocs/usr/local/nagios/share
<Directory "/htdocs/usr/local/nagios/share">
    Options None
    AllowOverride AuthConfig
    Order allow,deny
    Allow from all
</Directory>
</VirtualHost>
 


I copied /usr/local/nagios/share and /usr/local/nagios/sbin into
/var/www/htdocs/usr/local/nagios/sbin and
/var/www/htdocs/usr/local/nagios/share.


I pointed my browser to 172.32.30.5/nagios/ and Lo!!   I got myself a nagios
page.   Shocked that it all worked so easily,  I tried to check on stuff.

Sadly,  any cgi I click gives me the following output:

"The server encountered an internal error or misconfiguration and was unable
to complete your request...."


Tha nagios log just says it started okay.  the messages file jsut has
nothing relevent in it,  just stuff about the checks it is doing.

The apache error_log says:

"[Thu Sep 16 05:53:06 2004] [error] [client 172.32.30.166] Premature end of
script headers: /htdocs/usr/local/nagios/sbin/status.cgi"

a search of the faq revealed something that seemed not relevent about suexec
not liking group writable permiossions.  I followed its advice anyway.  

Is there an issue with these CGI's not working in a path other than the one
they were compiled for?

regards,

Nemir

-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm



-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
_______________________________________________
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




-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
_______________________________________________
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