<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">&lt;<a href="mailto:me@staticsafe.ca" target="_blank">me@staticsafe.ca</a>&gt;</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>
&gt; Hi staticsafe,<br>
&gt;<br>
&gt; Check what user is used to run the webserver. This user need write access<br>
&gt; to the cache directory which i guess is for you :<br>
&gt; /usr/local/smokeping/htdocs/img<br>
&gt;<br>
&gt; What you can do if you want is to add this user in the  group called<br>
&gt; &quot;smokeping&quot; so as the directory and files are owed by smokeping, this user<br>
&gt; would have automatically write access to all the files in this directory.<br>
&gt;<br>
&gt; Do me on Centos :  /etc/group (Apache is my webserver)<br>
&gt; smokeping:x:498:apache<br>
&gt;<br>
&gt; Best Regards,<br>
&gt;<br>
&gt;<br>
&gt; # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>
&gt; - - - - - - - - - - - - - - - - - - -<br>
&gt; # - -   Nicolas KARP<br>
&gt; # - -   Network and Security Engineer<br>
</div>&gt; # - -    Email : <a href="mailto:liste@karp.fr">liste@karp.fr</a> &lt;<a href="mailto:nicolas@karp.fr">nicolas@karp.fr</a>&gt;<br>
<div class="im">&gt; # - -    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>&gt; &lt;<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>&gt;<br>
<div class="im">&gt; # - -    Viadeo : <a href="http://www.viadeo.com/fr/profile/nicolas.karp" target="_blank">http://www.viadeo.com/fr/profile/nicolas.karp</a><br>
</div>&gt; &lt;<a href="http://www.viadeo.com/fr/profile/nicolas.karp%20" target="_blank">http://www.viadeo.com/fr/profile/nicolas.karp%20</a>&gt;<br>
<div><div class="h5">&gt; # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>
&gt; - - - - - - - - - - - - - - - - - - -<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; 2012/10/19 staticsafe &lt;<a href="mailto:me@staticsafe.ca">me@staticsafe.ca</a>&gt;<br>
&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I have a Smokeping 2.6.7 install running over at<br>
&gt;&gt; <a href="http://smokeping.asininetech.com/smokeping.cgi" target="_blank">smokeping.asininetech.com/smokeping.cgi</a>.<br>
&gt;&gt;<br>
&gt;&gt; I am getting errors such as this:<br>
&gt;&gt; ERROR: Could not save png to<br>
&gt;&gt; &#39;/usr/local/smokeping/htdocs/img/IRC/amy_mini.png&#39;<br>
&gt;&gt;<br>
&gt;&gt; The permissions on that directory:<br>
&gt;&gt;<br>
&gt;&gt; [root@ferrovax /usr/local/smokeping/htdocs/img/IRC]# ls -alh<br>
&gt;&gt; total 20<br>
&gt;&gt; drwxr-xr-x  2 smokeping  smokeping   512B Oct 19 14:37 .<br>
&gt;&gt; drwxr-xr-x  7 smokeping  smokeping   512B Oct 19 14:43 ..<br>
&gt;&gt; -rw-r--r--  1 smokeping  smokeping    44B Oct 19 14:42 amy.maxheight<br>
&gt;&gt; -rw-r--r--  1 smokeping  smokeping     0B Oct 19 14:42 amy_last_10800.png<br>
&gt;&gt; -rwxr-xr-x  1 smokeping  smokeping     0B Oct 19 14:46 amy_mini.png<br>
&gt;&gt; -rw-r--r--  1 smokeping  smokeping    51B Oct 19 14:43 bender.maxheight<br>
&gt;&gt; -rw-r--r--  1 smokeping  smokeping     0B Oct 19 14:43<br>
&gt;&gt; bender_last_10800.png<br>
&gt;&gt; -rwxr-xr-x  1 smokeping  smokeping     0B Oct 19 14:46 bender_mini.png<br>
&gt;&gt; -rwxr-xr-x  1 smokeping  smokeping     0B Oct 19 14:46 kif_mini.png<br>
&gt;&gt; -rwxr-xr-x  1 smokeping  smokeping     0B Oct 19 14:46 leela_mini.png<br>
&gt;&gt; -rwxr-xr-x  1 smokeping  smokeping    55B Oct 19 14:24 scruffy.maxheight<br>
&gt;&gt; -rwxr-xr-x  1 smokeping  smokeping     0B Oct 19 14:24<br>
&gt;&gt; scruffy_last_10800.png<br>
&gt;&gt; -rwxr-xr-x  1 smokeping  smokeping     0B Oct 19 14:46 scruffy_mini.png<br>
&gt;&gt;<br>
&gt;&gt; I am using nginx + fcgiwrap to serve this.<br>
&gt;&gt;<br>
&gt;&gt; Am I missing something?<br>
&gt;&gt;<br>
&gt;&gt; Thanks for any help,<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; staticsafe<br>
&gt;&gt; <a href="http://staticsafe.ca" target="_blank">http://staticsafe.ca</a><br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; smokeping-users mailing list<br>
&gt;&gt; <a href="mailto:smokeping-users@lists.oetiker.ch">smokeping-users@lists.oetiker.ch</a><br>
&gt;&gt; <a href="https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users</a><br>
&gt;&gt;<br>
&gt;<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>