<font color="#000066"><font face="verdana,sans-serif">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</font></font><br><font color="#000066"><font face="verdana,sans-serif">ls -alh /usr/local/smokeping/htdocs/</font></font>img<font color="#000066"><font face="verdana,sans-serif"><br>
<br>Can you also check the httpd log file (Error logfile) ? And can you check if you are using SELinux on your box (command : sestatus and logs should be in : /var/log/audit/audit.log) ? <br> <br>Best Regards,<br><br clear="all">
</font></font><span style="font-family:tahoma,sans-serif;color:rgb(0,0,102)"># - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</span><br style="font-family:tahoma,sans-serif;color:rgb(0,0,102)">
<span style="font-family:tahoma,sans-serif;color:rgb(0,0,102)"># - - Nicolas KARP</span><br style="font-family:tahoma,sans-serif;color:rgb(0,0,102)"><span style="font-family:tahoma,sans-serif;color:rgb(0,0,102)"># - - Network and Security Engineer</span><br style="font-family:tahoma,sans-serif;color:rgb(0,0,102)">
<span style="font-family:tahoma,sans-serif;color:rgb(0,0,102)"># - - Email : <a href="mailto:nicolas@karp.fr" target="_blank">liste@karp.fr</a></span><span style="font-family:tahoma,sans-serif;color:rgb(0,0,102)"></span><br style="font-family:tahoma,sans-serif;color:rgb(0,0,102)">
<span style="font-family:tahoma,sans-serif;color:rgb(0,0,102)"># - - Linkedin : <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 </a></span><br style="font-family:tahoma,sans-serif;color:rgb(0,0,102)">
<span style="font-family:tahoma,sans-serif;color:rgb(0,0,102)"># - - Viadeo : </span><a style="font-family:tahoma,sans-serif;color:rgb(0,0,102)" href="http://www.viadeo.com/fr/profile/nicolas.karp%20" target="_blank"><span>http://www.viadeo.com/fr/profile/</span><span>nicolas.karp</span> </a><br style="font-family:tahoma,sans-serif;color:rgb(0,0,102)">
<span style="font-family:tahoma,sans-serif;color:rgb(0,0,102)"># - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</span><br><br><br><br>
<br><br><div class="gmail_quote">2012/10/20 staticsafe <span dir="ltr"><<a href="mailto:me@staticsafe.ca" target="_blank">me@staticsafe.ca</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">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 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>
> # - - Nicolas KARP<br>
> # - - Network and Security Engineer<br>
</div>> # - - Email : <a href="mailto:liste@karp.fr">liste@karp.fr</a> <<a href="mailto:nicolas@karp.fr">nicolas@karp.fr</a>><br>
<div class="im">> # - - 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>
</div>> <<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>
<div class="im">> # - - Viadeo : <a href="http://www.viadeo.com/fr/profile/nicolas.karp" target="_blank">http://www.viadeo.com/fr/profile/nicolas.karp</a><br>
</div>> <<a href="http://www.viadeo.com/fr/profile/nicolas.karp%20" target="_blank">http://www.viadeo.com/fr/profile/nicolas.karp%20</a>><br>
<div><div class="h5">> # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<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 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>
</div></div>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>
<div class="HOEnZb"><div class="h5"><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>
</div></div></blockquote></div><br>