Oops, I made a mistake. imgurl should actually be relative to a path on the web, so it should actually be set to /img.<br><br><div class="gmail_quote">On Sun, Oct 21, 2012 at 3:12 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 14:51, Ryan Becker wrote:<br>
> The issue here is that your imgurl needs to be a full path. Just putting<br>
> "img" doesn't give it anywhere to look.<br>
><br>
> On Sun, Oct 21, 2012 at 2:49 PM, staticsafe <<a href="mailto:me@staticsafe.ca">me@staticsafe.ca</a>> wrote:<br>
><br>
>> 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<br>
>> check<br>
>>> if you are using SELinux on your box (command : sestatus and logs should<br>
>> be<br>
>>> in : /var/log/audit/audit.log) ?<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<br>
>> 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<br>
>> directory.<br>
>>>>><br>
>>>>> Do me on Centos : /etc/group (Apache is my webserver)<br>
>>>>> smokeping:x:498:apache<br>
>>>>><br>
>>>>> Best Regards,<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<br>
>> 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<br>
>> 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<br>
>> 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<br>
>> smokeping<br>
>>>> [root@ferrovax /usr/local/smokeping/htdocs]# chown -R www:smokeping<br>
>> ./img<br>
>>>><br>
>>>> Still getting the same errors.<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>
>> *snip*<br>
>><br>
<br>
Fixed. Still receiving the same errors.<br>
<span class="HOEnZb"><font color="#888888">--<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>