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

Steve.Gingolaski at tevausa.com Steve.Gingolaski at tevausa.com
Wed Jul 7 06:07:49 MEST 2004

Ah.  Thank you, you Unix guys.

My NIX training is still in its infancy and I admit that I did not
understand that there was a difference between URI and URL.  Actually, I
had never even heard of URI before tonight.

That worked perfectly.  Thank you for all your help.

Steve Gingolaski

-----Original Message-----
From: Sandor W. Sklar [mailto:ssklar at stanford.edu] 
Sent: Tuesday, July 06, 2004 11:45 PM
To: Steve Gingolaski
Cc: smokeping-users at list.ee.ethz.ch
Subject: Re: [smokeping-users] FW: Graphics Not Displaying

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 


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

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