The issue here is that your imgurl needs to be a full path. Just putting "img" doesn't give it anywhere to look.<br><br><div class="gmail_quote">On Sun, Oct 21, 2012 at 2:49 PM, staticsafe <span dir="ltr"><<a href="mailto:me@staticsafe.ca" target="_blank">me@staticsafe.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 10/21/2012 13:32, Nicolas KARP wrote:<br>
> Hi Staticsafe,<br>
><br>
> Can you please send me your current config for the variables :<br>
><br>
> imgcache = /opt/smokeping-2.6.7/cache<br>
> imgurl = /smokeping/cache<br>
> datadir = /opt/smokeping-2.6.7/data<br>
><br>
> and the result of :<br>
><br>
> ps aux | grep smokeping<br>
> ls -alh /usr/local/smokeping/htdocs/img<br>
><br>
> Can you also check the httpd log file (Error logfile) ? And can you check<br>
> if you are using SELinux on your box (command : sestatus and logs should be<br>
> in : /var/log/audit/audit.log) ?<br>
><br>
> Best Regards,<br>
><br>
> # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>
> - - - - - - - - - - - - - - - - - - -<br>
> # - - Nicolas KARP<br>
> # - - Network and Security Engineer<br>
> # - - Email : <a href="mailto:liste@karp.fr">liste@karp.fr</a> <<a href="mailto:nicolas@karp.fr">nicolas@karp.fr</a>><br>
> # - - Linkedin : <a href="http://www.linkedin.com/pub/nicolas-karp/39/60b/21a" target="_blank">http://www.linkedin.com/pub/nicolas-karp/39/60b/21a</a><br>
> <<a href="http://www.linkedin.com/pub/nicolas-karp/39/60b/21a%20" target="_blank">http://www.linkedin.com/pub/nicolas-karp/39/60b/21a%20</a>><br>
> # - - Viadeo : <a href="http://www.viadeo.com/fr/profile/nicolas.karp" target="_blank">http://www.viadeo.com/fr/profile/nicolas.karp</a><br>
> <<a href="http://www.viadeo.com/fr/profile/nicolas.karp%20" target="_blank">http://www.viadeo.com/fr/profile/nicolas.karp%20</a>><br>
> # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>
> - - - - - - - - - - - - - - - - - - -<br>
><br>
><br>
><br>
><br>
><br>
> 2012/10/20 staticsafe <<a href="mailto:me@staticsafe.ca">me@staticsafe.ca</a>><br>
><br>
>> On 10/19/2012 21:51, Nicolas KARP wrote:<br>
>>> Hi staticsafe,<br>
>>><br>
>>> Check what user is used to run the webserver. This user need write access<br>
>>> to the cache directory which i guess is for you :<br>
>>> /usr/local/smokeping/htdocs/img<br>
>>><br>
>>> What you can do if you want is to add this user in the group called<br>
>>> "smokeping" so as the directory and files are owed by smokeping, this<br>
>> user<br>
>>> would have automatically write access to all the files in this directory.<br>
>>><br>
>>> Do me on Centos : /etc/group (Apache is my webserver)<br>
>>> smokeping:x:498:apache<br>
>>><br>
>>> Best Regards,<br>
>>><br>
>>><br>
>>> # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>
>> - -<br>
>>> - - - - - - - - - - - - - - - - - - -<br>
>>> # - - Nicolas KARP<br>
>>> # - - Network and Security Engineer<br>
>>> # - - Email : <a href="mailto:liste@karp.fr">liste@karp.fr</a> <<a href="mailto:nicolas@karp.fr">nicolas@karp.fr</a>><br>
>>> # - - Linkedin : <a href="http://www.linkedin.com/pub/nicolas-karp/39/60b/21a" target="_blank">http://www.linkedin.com/pub/nicolas-karp/39/60b/21a</a><br>
>>> <<a href="http://www.linkedin.com/pub/nicolas-karp/39/60b/21a%20" target="_blank">http://www.linkedin.com/pub/nicolas-karp/39/60b/21a%20</a>><br>
>>> # - - Viadeo : <a href="http://www.viadeo.com/fr/profile/nicolas.karp" target="_blank">http://www.viadeo.com/fr/profile/nicolas.karp</a><br>
>>> <<a href="http://www.viadeo.com/fr/profile/nicolas.karp%20" target="_blank">http://www.viadeo.com/fr/profile/nicolas.karp%20</a>><br>
>>> # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>
>> - -<br>
>>> - - - - - - - - - - - - - - - - - - -<br>
>>><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>> 2012/10/19 staticsafe <<a href="mailto:me@staticsafe.ca">me@staticsafe.ca</a>><br>
>>><br>
>>>> Hi,<br>
>>>><br>
>>>> I have a Smokeping 2.6.7 install running over at<br>
>>>> <a href="http://smokeping.asininetech.com/smokeping.cgi" target="_blank">smokeping.asininetech.com/smokeping.cgi</a>.<br>
>>>><br>
>>>> I am getting errors such as this:<br>
>>>> ERROR: Could not save png to<br>
>>>> '/usr/local/smokeping/htdocs/img/IRC/amy_mini.png'<br>
>>>><br>
>>>> The permissions on that directory:<br>
>>>><br>
>>>> [root@ferrovax /usr/local/smokeping/htdocs/img/IRC]# ls -alh<br>
>>>> total 20<br>
>>>> drwxr-xr-x 2 smokeping smokeping 512B Oct 19 14:37 .<br>
>>>> drwxr-xr-x 7 smokeping smokeping 512B Oct 19 14:43 ..<br>
>>>> -rw-r--r-- 1 smokeping smokeping 44B Oct 19 14:42 amy.maxheight<br>
>>>> -rw-r--r-- 1 smokeping smokeping 0B Oct 19 14:42<br>
>> amy_last_10800.png<br>
>>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 amy_mini.png<br>
>>>> -rw-r--r-- 1 smokeping smokeping 51B Oct 19 14:43 bender.maxheight<br>
>>>> -rw-r--r-- 1 smokeping smokeping 0B Oct 19 14:43<br>
>>>> bender_last_10800.png<br>
>>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 bender_mini.png<br>
>>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 kif_mini.png<br>
>>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 leela_mini.png<br>
>>>> -rwxr-xr-x 1 smokeping smokeping 55B Oct 19 14:24 scruffy.maxheight<br>
>>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:24<br>
>>>> scruffy_last_10800.png<br>
>>>> -rwxr-xr-x 1 smokeping smokeping 0B Oct 19 14:46 scruffy_mini.png<br>
>>>><br>
>>>> I am using nginx + fcgiwrap to serve this.<br>
>>>><br>
>>>> Am I missing something?<br>
>>>><br>
>>>> Thanks for any help,<br>
>>>><br>
>>>> --<br>
>>>> staticsafe<br>
>>>> <a href="http://staticsafe.ca" target="_blank">http://staticsafe.ca</a><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> smokeping-users mailing list<br>
>>>> <a href="mailto:smokeping-users@lists.oetiker.ch">smokeping-users@lists.oetiker.ch</a><br>
>>>> <a href="https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users</a><br>
>>>><br>
>>><br>
>><br>
>> No luck. (www is the user nginx is run as.)<br>
>><br>
>> [root@ferrovax /usr/local/smokeping/htdocs]# pw usermod www -G smokeping<br>
>> [root@ferrovax /usr/local/smokeping/htdocs]# chown -R www:smokeping ./img<br>
>><br>
>> Still getting the same errors.<br>
>><br>
>> --<br>
>> staticsafe<br>
>> <a href="http://staticsafe.ca" target="_blank">http://staticsafe.ca</a><br>
>><br>
>> _______________________________________________<br>
>> smokeping-users mailing list<br>
>> <a href="mailto:smokeping-users@lists.oetiker.ch">smokeping-users@lists.oetiker.ch</a><br>
>> <a href="https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users</a><br>
>><br>
><br>
<br>
Here it is:<br>
<br>
imgcache = /usr/local/smokeping/htdocs/img<br>
imgurl = img<br>
datadir = /usr/local/var/smokeping<br>
<br>
$ ps aux | grep smokeping<br>
smokeping 35589 0.0 3.1 144660 24060 ?? Ss Fri02PM 0:09.15<br>
/usr/local/bin/smokeping [FPing] (perl)<br>
smokeping 35618 0.0 3.1 144660 24056 ?? Is Fri02PM 0:08.81<br>
/usr/local/bin/smokeping [FPing] (perl)<br>
smokeping 57148 0.0 0.2 10068 1264 ?? S 10:50AM 0:00.03<br>
[fping]<br>
<br>
$ ls -alh /usr/local/smokeping/htdocs/img<br>
total 36<br>
drwxr-xr-x 6 www www 512B Oct 21 11:38 ./<br>
drwxr-xr-x 4 www www 512B Oct 21 11:36 ../<br>
drwxr-xr-x 2 root www 512B Oct 21 11:38 IRC/<br>
drwxr-xr-x 2 root www 512B Oct 21 11:38 Miscellaneous/<br>
drwxr-xr-x 2 root www 512B Oct 21 11:40 Personal/<br>
drwxr-xr-x 2 root www 512B Oct 21 11:39 __chartscache/<br>
-rw-r--r-- 1 root www 3.8k Oct 21 11:38 rrdtool.png<br>
-rw-r--r-- 1 root www 4.3k Oct 21 11:38 smokeping.png<br>
<br>
>From my nginx error.log:<br>
2012/10/21 11:40:47 [error] 67774#0: *1 open()<br>
"/usr/local/smokeping/htdocs/smokeping/prototype/prototype.js" failed<br>
(2: No such file or directory), client: 173.32.218.69, server:<br>
<a href="http://smokeping.asininetech.com" target="_blank">smokeping.asininetech.com</a>, request: "GET<br>
/smokeping/prototype/prototype.js HTTP/1.1", host:<br>
"<a href="http://smokeping.asininetech.com" target="_blank">smokeping.asininetech.com</a>", referrer:<br>
"<a href="http://smokeping.asininetech.com/smokeping.cgi?target=Personal" target="_blank">http://smokeping.asininetech.com/smokeping.cgi?target=Personal</a>"<br>
2012/10/21 11:40:47 [error] 67774#0: *1 open()<br>
"/usr/local/smokeping/htdocs/smokeping/cropper/cropper.js" failed (2: No<br>
such file or directory), client: 173.32.218.69, server:<br>
<a href="http://smokeping.asininetech.com" target="_blank">smokeping.asininetech.com</a>, request: "GET /smokeping/cropper/cropper.js<br>
HTTP/1.1", host: "<a href="http://smokeping.asininetech.com" target="_blank">smokeping.asininetech.com</a>", referrer:<br>
"<a href="http://smokeping.asininetech.com/smokeping.cgi?target=Personal" target="_blank">http://smokeping.asininetech.com/smokeping.cgi?target=Personal</a>"<br>
2012/10/21 11:40:47 [error] 67774#0: *3 open()<br>
"/usr/local/smokeping/htdocs/smokeping/scriptaculous/scriptaculous.js"<br>
failed (2: No such file or directory), client: 173.32.218.69, server:<br>
<a href="http://smokeping.asininetech.com" target="_blank">smokeping.asininetech.com</a>, request: "GET<br>
/smokeping/scriptaculous/scriptaculous.js?load=builder,effects,dragdrop<br>
HTTP/1.1", host: "<a href="http://smokeping.asininetech.com" target="_blank">smokeping.asininetech.com</a>", referrer:<br>
"<a href="http://smokeping.asininetech.com/smokeping.cgi?target=Personal" target="_blank">http://smokeping.asininetech.com/smokeping.cgi?target=Personal</a>"<br>
2012/10/21 11:40:47 [error] 67774#0: *4 open()<br>
"/usr/local/smokeping/htdocs/smokeping/smokeping-zoom.js" failed (2: No<br>
such file or directory), client: 173.32.218.69, server:<br>
<a href="http://smokeping.asininetech.com" target="_blank">smokeping.asininetech.com</a>, request: "GET /smokeping/smokeping-zoom.js<br>
HTTP/1.1", host: "<a href="http://smokeping.asininetech.com" target="_blank">smokeping.asininetech.com</a>", referrer:<br>
"<a href="http://smokeping.asininetech.com/smokeping.cgi?target=Personal" target="_blank">http://smokeping.asininetech.com/smokeping.cgi?target=Personal</a>"<br>
2012/10/21 11:40:48 [error] 67774#0: *1 open()<br>
"/usr/local/smokeping/htdocs/smokeping/cropper/cropper.js" failed (2: No<br>
such file or directory), client: 173.32.218.69, server:<br>
<a href="http://smokeping.asininetech.com" target="_blank">smokeping.asininetech.com</a>, request: "GET /smokeping/cropper/cropper.js<br>
HTTP/1.1", host: "<a href="http://smokeping.asininetech.com" target="_blank">smokeping.asininetech.com</a>", referrer:<br>
"<a href="http://smokeping.asininetech.com/smokeping.cgi?target=Personal" target="_blank">http://smokeping.asininetech.com/smokeping.cgi?target=Personal</a>"<br>
2012/10/21 11:40:48 [error] 67774#0: *1 open()<br>
"/usr/local/smokeping/htdocs/smokeping/smokeping-zoom.js" failed (2: No<br>
such file or directory), client: 173.32.218.69, server:<br>
<a href="http://smokeping.asininetech.com" target="_blank">smokeping.asininetech.com</a>, request: "GET /smokeping/smokeping-zoom.js<br>
HTTP/1.1", host: "<a href="http://smokeping.asininetech.com" target="_blank">smokeping.asininetech.com</a>", referrer:<br>
"<a href="http://smokeping.asininetech.com/smokeping.cgi?target=Personal" target="_blank">http://smokeping.asininetech.com/smokeping.cgi?target=Personal</a>"<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
staticsafe<br>
<a href="http://staticsafe.ca" target="_blank">http://staticsafe.ca</a><br>
<br>
_______________________________________________<br>
smokeping-users mailing list<br>
<a href="mailto:smokeping-users@lists.oetiker.ch">smokeping-users@lists.oetiker.ch</a><br>
<a href="https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users</a><br>
</font></span></blockquote></div><br>