Web interface problem


#1

Hi,could any one help me please!

im not able to connect to my nagios web interface,i have changed the httpd file as shown in the documents but still i get this when i try to go to the web site
the connection was refused when attemping to contact (name of computer)

here is my httpd file

ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin/
<Directory “/usr/local/nagios/sbin/”>
AllowOverride AuthConfig
Options ExecCGI
Order allows, deny
Allow from all

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

please any1 help
thanks


#2

is apache running?

Luca


#3

yes its runnning luca!im a bit confused on this one!


#4

is /usr/local/nagios/sbin/ really the correct path to your files?
kinda depends on what distro you’re running or how you installed nagios


#5

so basically im looking for the httpd path?


#6

you’re looking for the path to where your html and your cgi files for nagios are located.


#7

yeah they are located in my sbin!my cgi are in there!thanks for mailing.its pretty annoying,i was told it might be to do with selinux but i cant find how to remove it.u know?


#8

as i already told you. search the forum, it has already been said sometime ago.

Luca


#9

sorted out the selinux but am now gettig 404 nit found error i no thts to do with the config check all permissions and stuff!whats the story with GD where/how do i install that?


#10

want my opinion? scratch the whole install. get the sources and the docs (possibly printed out) and go throiugh the whole install again now that selinux is off the way…
GD libraries have to be available on the server when you run the ./configure command on the source. The configure output will tell you if it found everything or not.

Luca


#11

ok can u give brief explaination of gd are they basically ,is it all about the graphics


#12

You are getting a not found when you go to localhost/nagios or what? YOu aren’t spelling out your errors very well to us.
If that is the case, then you didn’t setup the website yet.
nagios.sourceforge.net/docs/1_0/installweb.html
And your cgi entry is not per the docs either, it should be …
ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/
not what you have…
scriptAlias /nagios/cgi-bin /usr/local/nagios/sbin/

Look in your apache error log and it most likley states localhost/nagios page not found, but since you didn’t explain what page I’m only guessing.


#13

scriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ is what is used in nagios1.0. scriptAlias /nagios/cgi-bin /usr/local/nagios/sbin/ is what is in the documentation for 2.0. However use the one that jakkedup said. It’s the same thing you said to me(jakkedup) so I know. Anyhow. like he said follow the link, do it exactly like it says and then state the problem. look under a previous thread named nagios done, where I stated the problem I had and the solution in the last reply. more than likely you’re having the same problem. :?

Edited Thu Jul 21 2005, 12:15PM ]


#14

what web site can libgd,lebgd-devel bo down loaded from ?


#15

Google is your friend.
gd lib
first choice


#16

this is my error_log, can some1 explain what the las error means?as i can connect to the web interface im using apache/red hat

[Mon Jul 25 13:17:55 2005] [alert] [client 127.0.0.1]
/usr/local/nagios/share/.htaccess: AuthUserFile takes 1-2 arguments
any help would be great!
thanks


#17

nagios.sourceforge.net/docs/1_0/ … web_server

AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
require valid-user

So what does your .htaccess look like? I don’t undestand why you would not have pasted that info, since it’s clear that the .htaccess file is giving you errors. So please paste it.


#18

AuthName "Nagios Access"
AuthType Basic
AuthUserFile
/usr/local/nagios/etc/htpasswd.users
require valid-user
thanks


#19

It looks like you have a carriage return in your file after “AuthUserFile”

vi the file and make sure…
AuthUserFile /usr/local/nagios/etc/htpasswd.users
is all on ONE line, as it is here.


#20

thanks that helped i didnt notice that but it moved me on to the next issue

Mon Jul 25 15:51:21 2005] [error] [client 127.0.0.1] access to
/usr/local/nagios/share failed, reason: SSL connection required