Web CGIs Fail
Subhendu Ghosh
sghosh at sghosh.org
Fri Apr 4 14:20:46 CEST 2003
Also - need to change ownership of the cgi files to the apache user
check the apache error logs as well.
-sg
On Fri, 4 Apr 2003, Shawn McCool wrote:
> Do you have the authentication .htaccess file in both the share and the sbin
> directories?
>
> ----- Original Message -----
> From: "Stephen Evanchik" <evanchsa at clarkson.edu>
> To: <nagios-users at lists.sourceforge.net>
> Sent: Friday, April 04, 2003 12:36 AM
> Subject: [Nagios-users] Web CGIs Fail
>
>
> Ok.. I've been at this for a few hours now -- just trying to get the web
> interface to work.
>
> What I really need to know is where to look for debug output on what is
> failing exactly with the CGIs. In anycase, below is a log of what I have
> checked after reading through the docs and searching a bit on this
> mailinglist.
>
> Stephen Evanchik
>
> -----
>
>
>
>
> I have configured Nagios to use PostgreSQL for the backend to everything.
>
> I have logged in to the database and verified that the status of my host IS
> being updated.
>
> Nagios is running:
>
> [1049436253] Nagios 1.0 starting... (PID=17237)
> [1049436253] Finished daemonizing... (New PID=17238)
> [1049436277] Caught SIGTERM, shutting down...
> [1049436277] Successfully shutdown... (PID=17238)
> [1049436280] Nagios 1.0 starting... (PID=17313)
> [1049436281] Finished daemonizing... (New PID=17314)
>
> Authentication is on, and I am successfully logged in.
>
> Nothing works from Tactical Overview to Alert Histogram. I can view my host
> configuration, alerts etc.
>
> ls -l of the nagios/sbin dir:
>
> -rwxrwxr-x 1 nagios nagios 163652 Apr 4 01:37 avail.cgi
> -rwxrwxr-x 1 nagios nagios 173176 Apr 4 01:37 cmd.cgi
> -rwxrwxr-x 1 nagios nagios 130740 Apr 4 01:37 config.cgi
> -rwxrwxr-x 1 nagios nagios 186328 Apr 4 01:37 extinfo.cgi
> -rwxrwxr-x 1 nagios nagios 141220 Apr 4 01:37 histogram.cgi
> -rwxrwxr-x 1 nagios nagios 130888 Apr 4 01:37 history.cgi
> -rwxrwxr-x 1 nagios nagios 124392 Apr 4 01:37 notifications.cgi
> -rwxrwxr-x 1 nagios nagios 119108 Apr 4 01:37 outages.cgi
> -rwxrwxr-x 1 nagios nagios 116984 Apr 4 01:37 showlog.cgi
> -rwxrwxr-x 1 nagios nagios 168872 Apr 4 01:37 status.cgi
> -rwxrwxr-x 1 nagios nagios 144660 Apr 4 01:37 statusmap.cgi
> -rwxrwxr-x 1 nagios nagios 130788 Apr 4 01:37 statuswml.cgi
> -rwxrwxr-x 1 nagios nagios 127212 Apr 4 01:37 statuswrl.cgi
> -rwxrwxr-x 1 nagios nagios 139060 Apr 4 01:37 summary.cgi
> -rwxrwxr-x 1 nagios nagios 147792 Apr 4 01:37 tac.cgi
> -rwxrwxr-x 1 nagios nagios 147540 Apr 4 01:37 trends.cgi
>
> Apache runs as the apache user and I've tried making these CGIs owned by the
> apache user.
>
>
> My relavent Apache configuration:
>
>
> #
> # Nagios test setup
> #
> 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
> Options None
> Order allow,deny
> Allow from all
> </Directory>
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: ValueWeb:
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> No other company gives more support or power for your dedicated server
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> _______________________________________________
> 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: ValueWeb:
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> No other company gives more support or power for your dedicated server
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> _______________________________________________
> 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: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
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