Web Config cgi-bin problem


#1

I’m pretty sure I followed the instructions correctly. When I go to nagiosmachine/nagios/ I get promted for a user/password and I enter it and I am let in. I see the Main page. When I click on anything in the left frame I get an error page.

NOT FOUND
The requested URL /nagios/cgi-bin./configure/notifications.cgi was not found on this server.

When I look in var/log/httpd/error.log I see

File does not exist: /usr/local/nagios/share/cgi-bin., referer: http:
//192.168.1.4/nagios/side.html

What confuses me is that there is no cgi-bin directory under /usr/local/nagios/share. I thought the cgi-bin was suppose to be the /usr/local/nagios/sbin directory. Thats how I configured nagios when I installed it. And just so you know, here is my httpd.conf stuff

ScriptAlias /nagios/cgi-bin “/usr/local/nagios/sbin”
<Directory “/usr/local/nagios/sbin”>
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user

Alias /nagios “/usr/local/nagios/share”
<Directory “/usr/local/nagios/share”>
Options None
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user


#2

Well I redid the
./configure
and saw this

*** GD, PNG, and/or JPEG libraries could not be located… *********

when I do an rpm -q gd it says that it is installed. Who knows. I will try and figure this out. How come RPM’s don’t always help you:?:


#3

Had to install GD and PNG and JPEG by doing the following

yum install gd-devel

Hopefully this will solve my problem