[smokeping-users] Re: FW: Graphics Not Displaying

Sandor W. Sklar ssklar at stanford.edu
Wed Jul 7 05:45:03 MEST 2004


On Jul 6, 2004, at 8:29 PM, Steve.Gingolaski at tevausa.com wrote:

> Greetings -
>
>
> Thanks for the quick response however I do not believe that the answer 
> is
> so obvious.

Actually, I think it is ...
>

> If I pull up the graphic directly from the directory with a web browser
> file:///usr/local/apache2/htdocs/smoke/Cisco1_RTR_2600_mini.png
>
> the graphic displays with no problem.

Right, because your web browser is running on the same system as your 
webserver.  What happens if you replace the "file://" part of your 
above URI with "http://"?  Bet you'd get a 'file not found'.

>
>
>
> Only when I try and view and the graphics via smokeping.cgi do I get 
> the
> error telling me that the file is not found.

Because when you are using the "file://" URI method, the "root" of the 
path is "/", but when you use "http://", the "root" of the path is 
whatever DocumentRoot (or another directory, if you have Aliases set) 
is set to in your webserver's httpd.conf.
> There is an error in the Apache error_log:
>
>
>
>  [Tue Jul 06 15:41:49 2004] [error] [client X.X.4.153] File does not
> exist: /usr/local/apache2/htdocs/usr, referer:
> http://X.X.7.198/cgi-bin/smokeping.cgi
>
And that error is telling you exactly what the problem is.  Your 
webserver is attempting to display the file 
"/usr/local/apache2/htdocs/usr", and that file does not exist.

in your smokeping config, try setting "imgurl" to just "smoke"  (no 
path.)

	-s-

-- 
Sandor Wade Sklar
Unix Systems Administrator
Stanford University ITSS-TSS
Non impediti ratione cogitationis.



-- Attached file removed by Ecartis and put at URL below --
-- Type: application/pkcs7-signature
-- Size: 2k (2367 bytes)
-- URL : http://www.ee.ethz.ch/~slist/p/40EB74D115485-smime.p7s


--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/smokeping-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the smokeping-users mailing list