Images using wrong path?
Sean Lutner
sean at techtarget.com
Tue Nov 5 17:18:57 CET 2002
I've just finished doing exactly this.
To compile nagios I did
./configure ; make ; make all ; make install ; make install-init (just
like the docs) Of course I was missing the etc directory in
/usr/local/nagios, because the docs fail to mention that the dir won't
exist unless you do a make install-config. Perhaps someone with access
to change this ought to.
Next I compiled the Nagios plugins with
./configure ; make ; make install
Lastly I compiled apache 1.3.26 with
./configure --prefix=/usr/local/apache ; make ; make install
I put the edits from the docs into my apache config and started apache.
When I attempt to access it via http://myservername.domain.com/nagios it
fails. I am following the docs exactly. Here is the excerpt from my
error_log.
[Tue Nov 5 11:11:57 2002] [error] [client 10.69.10.26] File does not
exist: /usr/local/apache/htdocs/nagios
[Tue Nov 5 11:12:01 2002] [error] [client 10.69.10.26] File does not
exist: /usr/local/apache/htdocs/nagios
So, now I've followed the docs to the letter, and I can't even access
the web interface. It would seem to me that perhaps the docs need to be
updated with a sample config or more detailed instructions on how to get
this going.
Could someone provide me with an apache config that is working? I'd like
to compare a known working one against mine to see where following the
docs has steered me wrong.
Thanks
Sean
Jon Lyons wrote:
> Just a shot in the Dark here, but since you have a second machine I'd
> compile nagios using the default paths, and configure apache to mactch
> the docs exactly. Just do a ./configure and use the default nagios
> paths.(make sure to do a "make clean")..What OS are you running on?
>
> http://nagios.sourceforge.net/docs/1_0/installing.html
>
> */Sean Lutner <sean at techtarget.com>/* wrote:
>
> 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 /* 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 - 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
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
>
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> HotJobs
> <http://rd.yahoo.com/careers/mailsig/*http://www.hotjobs.com%20> -
> Search new jobs daily now
--
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: See the NEW Palm
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
More information about the Users
mailing list