nagios 127.0.0.1

Tom Welsh twelsh at square-box.com
Fri Feb 6 13:51:19 CET 2004


Hi Richard, 

Heres my apache configuration for my nagios server. 

It works fine. Any probs just drop me an email direct and I'll try and help 
you out. 

All our nagios configs are at http://demo.square-box.com 

 ----------<START>---------- 

#Listen. This is your IP and port number
Listen 10.10.10.10:80 

#ServerName the name of your server if it resolves in dns or an IP address
ServerName 10.10.10.10:80 

#ServerName
### Section 3: Virtual Hosts 

#######################################################
#######################################################
##
## nagios.somedomain.net definition
##
#######################################################
####################################################### 


## Script aliases for Nagios scrip aliases. they live
## in /usr/local/nagios/sbin/ 

NameVirtualHost 10.10.10.10:80
<VirtualHost 10.10.10.10:80>
ServerAdmin webmaster at somedomain.com
DocumentRoot /usr/local/nagios/share
ServerName nagios.somedomain,com
ServerAlias anothername.somedomain.com
ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ 

<Directory "/usr/local/nagios/sbin/">
AllowOverride AuthConfig
Options ExecCGI
Order allow,deny
Allow from all
</Directory> 

## Setup alias for /nagios/ to point to
## /usr/local/nagios/share/ 

Alias /nagios/ /usr/local/nagios/share/ 

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

##########################################################
## Webserver authentication for
## /usr/local/nagios/sbin Nagios cgi scripts
## /usr/local/nagios/share Nagios HTML pages
########################################################## 

<Directory /usr/local/nagios/sbin>
AllowOverride AuthConfig
order allow,deny
allow from all
Options ExecCGI
</Directory> 

<Directory /usr/local/nagios/share>
AllowOverride AuthConfig
order allow,deny
allow from all
</Directory> 

</VirtualHost> 

 ----------< END >---------- 


Hope this helps 

Tom Welsh
twelsh at square-box.com 


Richard Gillman writes: 

> Solaris 9, apache 1.3.27, nagios 1.1 
> 
> Whenever I point my browser at my nagios home page http://mybox/nagios, my 
> browser tells me I'm at url http://127.0.0.1/nagios/ 
> 
> So, nagios looks fine if my browser is running on the same box as nagios 
> and apache, but I get 
> 
> Not Found 
> 
> The requested URL /nagios/ was not found on this server. 
> 
> if I attempt to access nagios from a browser running anywhere else. 
> 
> I have compiled nagios with all the defaults; the only flags to the 
> configure script were --with-nagios-user=xxx --with-nagios-grp=yyy. 
> Similarly, I've compiled with all the defaults except 
> --with-nagios-user=xxx --with-nagios-group=yyy 
> 
> I haven't been able to spot a relevant parameter in any of the 
> configuration files. The only thing I can think of to try is to compile 
> nagios with
>  --with-cgiurl=http://mybox/nagios --with-htmurl=http://mybox/nagios 
> 
> What am I supposed to do? Any help appreciated. 
> 
> tia, Dick
> -- 
> Richard Gillman
> iTSS UNIX Systems Group, Maclean Building, Wallingford OX10 8BB 
> 
>  
> 
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> 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
 


Kind Regards 

Tom Welsh 


DISCLAIMER: This e-mail contains proprietary information some or all of
which may be legally privileged. It is for the intended recipient only.
If an addressing or transmission error has misdirected this e-mail,
please notify the author by replying to this e-mail. If you are not the
intended recipient you must not use, disclose, distribute, copy, print,
or rely on this e-mail. 

Sender accepts no liability for any damage resulting from the use and/or
acceptation of the content of this e-mail. 

Always scan attachments before opening them. 

The views expressed in this communication may not necessarily be the
views held by squareBOX technologies ltd 


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
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