Images using wrong path?

Sean Lutner sean at techtarget.com
Mon Nov 4 21:34:37 CET 2002


All images other than the logos. The logos are called from plain html.

Yes, I've tried putting the images in /apps/nagios/sbin, however this 
will not work because that's the cgi-bin directory and when the images 
are called apache tried to execute them rather than display them.

I thought that perhaps my setup was the cause for my problems (nagios 
built in a non default location, and running the web interface from a 
vhost). However, after compiling a vanilla instance of apache and 
nagios, I've hit the same problems. There are no other sites being 
served from this second instance of apache, and I followed the docs to 
the letter as far as the config goes. I'm still getting the same 
problem. Would someone mind sending me a working apache config they are 
using to run nagios? Also, are there any config files that I might want 
to look at a 50th time for this? Everything seems to be working except 
this image problem.

Thanks again...
Sean

Jon Lyons wrote:

> Are these the logos, the image when you click on a host or service? 
> You say your images are in /apps/nagios/share/images have you tried 
> moving them to /apps/nagios/sbin/?
>
> > or unable to stat: /apps/nagios/sbin/down.gif 
> > My images are in /apps/nagios/share/images.
>  
>
>  
>
>  
>
>  */Sean Lutner <sean at techtarget.com>/* wrote:
>
>     I hate to reply to my own post, but has anyone seen this problem
>     before
>     or have any ideas what I'm doing wrong? I've read all the docs
>     I've come
>     across and haven't found any mention of it. I've also never had this
>     problem with netsaint. Everything from my netsaint install has been
>     converted and nagios is running, except for displaying images called
>     from a CGI. Any ideas or help at all would be greatly appreciated.
>     I can
>     post any configs anyone might want to see.
>
>     Thanks
>     Sean
>
>
>     On Mon, 2002-10-21 at 12:04, Sean Lutner wrote:
>     > I'm in the process of upgrading from my netsaint installation to
>     Nagios.
>     > I've compiled Nagios with the following options.
>     >
>     > ./configure --prefix=/apps/nagios --with-cgiurl=/cgi-bin/
>     --with/htmurl=
>     >
>     > and the plugins with the following
>     >
>     > ./configure --prefix=/apps/nagios --with-cgiurl=/cgi-bin/
>     >
>     > I've converted my netsaint configs and nagios is running and
>     working,
>     > however all the images are not loading. All images called from a
>     cgi are
>     > not woroking and appear to be called with the wrong path.
>     >
>     > Here is a snippet from my apache logs.
>     >
>     > [Mon Oct 21 11:35:56 2002] [error] [client 10.69.10.26] script
>     not found
>     > or unable to stat: /apps/nagios/sbin/up.gif
>     > [Mon Oct 21 11:35:56 2002] [error] [client 10.69.10.26] script
>     not found
>     > or unable to stat: /apps/nagios/sbin/down.gif
>     >
>     >
>     > My images are in /apps/nagios/share/images.
>     >
>     > Any ideas why this is happening would be greatly appreciated. I
>     can also
>     > provide further configs if needed.
>     >
>     > Thanks
>     > Sean
>     >
>     > --
>     > Sean Lutner
>     > Senior Systems & Network Administrator
>     > TechTarget, Inc.
>     > 117 Kendrick St, Suite 800
>     > Needham, MA 02494
>     > P: 781-657-1337
>     > F: 781-657-1100
>     > E: sean at techtarget.com W: http://www.techtarget.com
>     >
>     > "Imagination is more important than knowledge." -- Albert Einstein
>     >
>     >
>     >
>     > -------------------------------------------------------
>     > This sf.net email is sponsored by:ThinkGeek
>     > Welcome to geek heaven.
>     > http://thinkgeek.com/sf
>     > _______________________________________________
>     > Nagios-users mailing list
>     > Nagios-users at lists.sourceforge.net
>     > https://lists.sourceforge.net/lists/listinfo/nagios-users
>     -- 
>     Sean Lutner
>     Senior Systems & Network Administrator
>     TechTarget, Inc.
>     117 Kendrick St, Suite 800
>     Needham, MA 02494
>     P: 781-657-1337
>     F: 781-657-1100
>     E: sean at techtarget.com W: http://www.techtarget.com
>
>     "Imagination is more important than knowledge." -- Albert Einstein
>
>
>
>     -------------------------------------------------------
>     This sf.net email is sponsored by:ThinkGeek
>     Welcome to geek heaven.
>     http://thinkgeek.com/sf
>     _______________________________________________
>     Nagios-users mailing list
>     Nagios-users at lists.sourceforge.net
>     https://lists.sourceforge.net/lists/listinfo/nagios-users
>
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Y! Web Hosting <http://webhosting.yahoo.com/%20> - Let the expert host 
> your web site 


-- 
Sean Lutner
Senior Systems & Network Administrator
TechTarget, Inc.
117 Kendrick St, Suite 800
Needham, MA 02494
P:  781-657-1337
F:  781-657-1100
E:  sean at techtarget.com W: http://www.techtarget.com

"Imagination is more important than knowledge." -- Albert Einstein




-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com




More information about the Users mailing list