<div dir="ltr"><div>From what you've pasted below, your apache user (presumably www-data) still does not have permission to write to /var/lib/smokeping<br><br>chown -R smokeping:www-data /var/lib/smokeping<br><br></div><div>.. should fix that.<br><br><br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On 7 July 2015 at 16:33, Ackermann, Tobias <span dir="ltr"><<a href="mailto:Tobias.Ackermann@kiongroup.com" target="_blank">Tobias.Ackermann@kiongroup.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div link="#0563C1" vlink="#954F72" lang="DE">
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black">Hello all,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">the problem is still occurring.
</span><span style="font-size:10.0pt;font-family:Wingdings;color:black" lang="EN-GB">L</span><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">Has anyone an idea how I have to change the permissions for the folder that the “Permission denied” error is
 no longer occurring?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">[Tue Jul  7 10:29:03 2015] smokeping.cgi [client 10.126.210.101]: Could not lock /var/lib/smokeping//services/DNS/ns3.smokeping-slave2.slave_cache
 (Permission denied). Trying again 2 more times.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">[Tue Jul  7 10:29:04 2015] smokeping.cgi [client 10.126.210.101]: Could not lock /var/lib/smokeping//services/DNS/ns3.smokeping-slave2.slave_cache
 (Permission denied). Trying again 1 more times.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">[Tue Jul  7 10:29:04 2015] smokeping.cgi [client 10.126.210.101]: Could not update /var/lib/smokeping//services/DNS/ns3.smokeping-slave2.slave_cache,
 giving up for now. at /usr/share/perl5/Smokeping/Master.pm line 156.<u></u><u></u></span></p>
<div style="border:none;border-bottom:solid windowtext 1.5pt;padding:0cm 0cm 1.0pt 0cm">
<p class="MsoNormal" style="border:none;padding:0cm"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB"><u></u> <u></u></span></p>
</div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">root@smokeping-master:/</span></b><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">var/lib#
 cd /var/lib/<u></u><u></u></span></p><span class="">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">root@smokeping-master:/</span></b><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">var/lib#
 ls -l<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">total 104<u></u><u></u></span></p>
</span><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxr-xr-x 5 smokeping www-data 4096 Jul  1 14:16 apt<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxr-xr-x 2 smokeping www-data 4096 Jul  1 13:52 aptitude<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxr-xr-x 2 smokeping www-data 4096 Jul  1 13:45 dhcp<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxr-xr-x 4 smokeping www-data 4096 Jul  1 13:59 dictionaries-common<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxr-xr-x 8 smokeping www-data 4096 Jul  1 14:16 dpkg<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxr-xr-x 2 smokeping www-data 4096 Jul  7 09:11 exim4<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxr-xr-x 2 smokeping www-data 4096 Jul  1 13:46 initramfs-tools<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxr-xr-x 2 smokeping www-data 4096 Jul 14  2013 initscripts<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxr-xr-x 2 smokeping www-data 4096 Jul 14  2013 insserv<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxr-xr-x 2 smokeping www-data 4096 Jul  1 14:00 ispell<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxrwsr-x 2 smokeping www-data 4096 Dec 11  2012 libuuid<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxr-xr-x 2 smokeping www-data 4096 Jul  2 06:25 logrotate<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxr-xr-x 2 smokeping www-data 4096 Dec  4  2013 misc<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxr-xr-x 2 smokeping www-data 4096 Jul  7 06:25 mlocate<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxr-xr-x 5 smokeping www-data 4096 Jul  1 14:02 nfs<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxr-xr-x 2 smokeping www-data 4096 Apr 28  2013 os-prober<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxr-xr-x 2 smokeping www-data 4096 Jul  1 13:44 pam<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">lrwxrwxrwx 1 smokeping www-data   18 Jul  1 13:59 python-support -> /usr/lib/pymodules<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxr-xr-x 2 smokeping www-data 4096 Jul  1 14:00 sgml-base<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxrwxr-x 8 smokeping root     4096 Jul  7 08:23 smokeping<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxr-xr-x 3 smokeping www-data 4096 Jul  1 13:59 tex-common<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxr-xr-x 3 smokeping www-data 4096 Jul  1 14:01 ucf<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxr-xr-x 2 smokeping www-data 4096 Nov 23  2012 update-rc.d<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxr-xr-x 2 smokeping www-data 4096 Jul  1 13:44 urandom<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxr-xr-x 2 smokeping www-data 4096 Jul  1 13:46 usbutils<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxr-xr-x 3 smokeping www-data 4096 Jul  1 13:45 vim<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxr-xr-x 2 smokeping www-data 4096 Jul  1 14:00 xml-core<u></u><u></u></span></p>
<div style="border:none;border-bottom:solid windowtext 1.5pt;padding:0cm 0cm 1.0pt 0cm">
<p class="MsoNormal" style="border:none;padding:0cm"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB"><u></u> <u></u></span></p>
</div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">root@smokeping-master:/</span></b><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">var/lib/smokeping#
 ls -l<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">total 24<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxrwsr-x 2 smokeping root 4096 Mar 17  2013 __cgi<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxrwxr-x 5 smokeping root 4096 Jul  1 20:57 Main<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxrwxr-x 5 smokeping root 4096 Jul  7 08:23 Systems<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxrwxr-x 2 smokeping root 4096 Jul  7 09:15 Local<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxrwxr-x 6 smokeping root 4096 Jul  7 08:02 services<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">drwxrwxr-x 2 smokeping root 4096 Jul  7 10:31 __sortercache<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">root@smokeping-master:/var/lib/smokeping#<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">Regards<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">Tobias<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Von:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Ackermann, Tobias
<br>
<b>Gesendet:</b> Freitag, 3. Juli 2015 21:00<br>
<b>An:</b> 'Greg Sloop'; <a href="mailto:smokeping-users@lists.oetiker.ch" target="_blank">smokeping-users@lists.oetiker.ch</a><br>
<b>Betreff:</b> AW: [smokeping-users] Permission problem on master server<u></u><u></u></span></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">Hi Greg,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">root@smokeping-master:/var/lib/smokeping/Local# chmod g+w :/var/lib/smokeping/Local<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">chmod: cannot access `:/var/lib/smokeping/Local': No such file or directory<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">So I run following command on master and slave without any error:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">root@smokeping-master:/var/lib/smokeping/Local# chmod g+w -R /var/lib/smokeping/*<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">Now I can’t find an new error in the apache log file (since the last 15 minutes) but I’m still not seeing the
 Graph on the website from the master </span><span style="font-size:10.0pt;font-family:Wingdings;color:black" lang="EN-GB">L</span><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">Any idea?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">Thanks.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft Sans Serif",sans-serif;color:black" lang="EN-GB">Tobias<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Von:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> smokeping-users [<a href="mailto:smokeping-users-bounces+tobias.ackermann=kion-ims.com@lists.oetiker.ch" target="_blank">mailto:smokeping-users-bounces+tobias.ackermann=kion-ims.com@lists.oetiker.ch</a>]
<b>Im Auftrag von </b>Gregory Sloop<br>
<b>Gesendet:</b> Freitag, 3. </span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-GB">Juli 2015 20:12<br>
<b>An:</b> </span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><a href="mailto:smokeping-users@lists.oetiker.ch" target="_blank"><span lang="EN-GB">smokeping-users@lists.oetiker.ch</span></a></span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-GB"><br>
<b>Betreff:</b> Re: [smokeping-users] Permission problem on master server<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:9.0pt;font-family:"Courier New"">So, it looks like Apache doesn't have rights to create the cache directory.<br>
<br>
See:<br>
</span><span style="font-size:10.0pt">drwxr-xr-x 2 smokeping www-data    4096 Jul  1 14:28 .<br>
drwxr-xr-x 6 smokeping www-data    4096 Jul  1 14:28 ..<br>
<br>
</span><span style="font-size:9.0pt;font-family:"Courier New"">So, assuming I'm right:<br>
chmod g+w </span><span style="font-size:10.0pt">:/var/lib/smokeping/Local<br>
<br>
</span><span style="font-size:9.0pt;font-family:"Courier New"">This would make that directory RW for the group [www-data]<br>
<br>
However, I'll be surprised if the slaves can write to the RRD's either, since they're also r-- for the group, so you'll probably want to use the same chmod command on them.<br>
<br>
-Greg</span><u></u><u></u></p>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td style="width:1.5pt;background:blue;padding:.75pt .75pt .75pt .75pt" width="2">
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="font-size:10.0pt">Thank you for your reply.<br>
<br>
</span><span style="font-size:10.0pt" lang="EN-GB">root@smokeping-master:~# ls -al /var/lib/smokeping/Local/LocalMachine.smokeping-slave1.slave_cache<br>
ls: cannot access /var/lib/smokeping/Local/LocalMachine.smokeping-slave1.slave_cache: No such file or directory<br>
<br>
If I run it in this way I got the following output:<br>
<br>
root@smokeping-master:/var/lib/smokeping/Local# ls -al<br>
total 11688<br>
drwxr-xr-x 2 smokeping www-data    4096 Jul  1 14:28 .<br>
drwxr-xr-x 6 smokeping www-data    4096 Jul  1 14:28 ..<br>
-rw-r--r-- 1 smokeping www-data 2986808 Jul  3 20:02 LocalMachine.rrd<br>
-rw-r--r-- 1 smokeping www-data 2986808 Jul  1 14:28 LocalMachine~smokeping-slave1.rrd<br>
-rw-r--r-- 1 smokeping www-data 2986808 Jul  1 14:28 LocalMachine~smokeping-slave2.rrd<br>
-rw-r--r-- 1 smokeping www-data 2986808 Jul  1 14:28 LocalMachine~smokeping-slave3.rrd<br>
root@smokeping-master:/var/lib/smokeping/Local#<br>
<br>
<br>
Thank you and regards<br>
Tobias<br>
<br>
<br>
</span><b><span style="font-size:11.0pt" lang="EN-GB">Von:</span></b><span style="font-size:11.0pt" lang="EN-GB"> smokeping-users [</span><span style="font-size:11.0pt"><a href="mailto:smokeping-users-bounces+tobias.ackermann=kion-ims.com@lists.oetiker.ch" target="_blank"><span lang="EN-GB">mailto:smokeping-users-bounces+tobias.ackermann=kion-ims.com@lists.oetiker.ch</span></a></span><span style="font-size:11.0pt" lang="EN-GB">]
<b>Im Auftrag von </b>Gregory Sloop<br>
<b>Gesendet:</b> Freitag, 3. Juli 2015 18:10<br>
<b>An:</b> </span><span style="font-size:11.0pt"><a href="mailto:smokeping-users@lists.oetiker.ch" target="_blank"><span lang="EN-GB">smokeping-users@lists.oetiker.ch</span></a></span><span style="font-size:11.0pt" lang="EN-GB"><br>
<b>Betreff:</b> Re: [smokeping-users] Permission problem on master server<br>
<br>
</span><span style="font-size:9.0pt" lang="EN-GB">What's the result of:<br>
<br>
ls -al /var/lib/smokeping//Local/LocalMachine.smokeping-slave1.slave_cache<br>
<br>
<br>
<b><span style="color:maroon">AT> Hello all,<br>
AT>  <br>
AT> I think I have a problem with the permissions on the master system for /var/lib/smokeping/<br>
AT>  <br>
AT> The config is wokring on the Slave system :<br>
AT>  <br>
AT> root@smokeping-slave1:~# smokeping -restart<br>
AT> --master-url=<a href="http://10.16.0.91/smokeping/smokeping.cgi" target="_blank">http://10.16.0.91/smokeping/smokeping.cgi</a><br>
AT> --cache-dir=/var/smokeping/ <br>
AT> --shared-secret=/var/smokeping/secret.txt<br>
AT> Sent data to Server and got new config in response.<br>
</span></b></span><b><span style="font-size:9.0pt;color:maroon">AT> Note: logging to syslog as local0/info.<br>
AT> Daemonizing /usr/sbin/smokeping ...<br>
AT> root@smokeping-slave1:~#<br>
AT>  <br>
AT> Debug mode tell me also  “Sent data to Server. Server said OK”.<br>
AT>  <br>
AT> But if I have a look to the apache error log<br>
AT> (/var/log/apache2/error.log)on the master Server I found this errors:<br>
AT>  <br>
AT> [Wed Jul  1 20:37:37 2015] smokeping.cgi [client 10.16.10.108]:<br>
AT> Could not lock<br>
AT> /var/lib/smokeping//Local/LocalMachine.smokeping-slave1.slave_cache<br>
AT> (Permission denied). Trying again 2 more times.<br>
AT> [Wed Jul  1 20:37:38 2015] smokeping.cgi [client 10.16.10.108]:<br>
AT> Could not lock<br>
AT> /var/lib/smokeping//Local/LocalMachine.smokeping-slave1.slave_cache<br>
AT> (Permission denied). Trying again 1 more times.<br>
AT> [Wed Jul  1 20:37:38 2015] smokeping.cgi [client 10.16.10.108]:<br>
AT> Could not update<br>
AT> /var/lib/smokeping//Local/LocalMachine.smokeping-slave1.slave_cache,<br>
AT> giving up for now. at /usr/share/perl5/Smokeping/Maste.....<br>
AT> And many many more entries.<br>
AT>  <br>
AT> I think I have to change the permission for the folder<br>
AT> /var/lib/Smokeping/ but I don’t now with which permissions for which user.<br>
<br>
AT> Here the permissions for the folders:<br>
AT>  <br>
AT> root@smokeping-master:/var/lib# ls -l<br>
AT> total 104<br>
AT> drwxr-xr-x 5 root      root      4096 Jul  1 14:16 apt<br>
AT> drwxr-xr-x 2 root      root      4096 Jul  1 13:52 aptitude<br>
AT> drwxr-xr-x 2 root      root      4096 Jul  1 13:45 dhcp<br>
AT> drwxr-xr-x 4 root      root      4096 Jul  1 13:59 dictionaries-common<br>
AT> drwxr-xr-x 8 root      root      4096 Jul  1 14:16 dpkg<br>
AT> drwxr-xr-x 2 root      root      4096 Jul  1 14:02 exim4<br>
AT> drwxr-xr-x 2 root      root      4096 Jul  1 13:46 initramfs-tools<br>
AT> drwxr-xr-x 2 root      root      4096 Jul 14  2013 initscripts<br>
AT> drwxr-xr-x 2 root      root      4096 Jul 14  2013 insserv<br>
AT> drwxr-xr-x 2 root      root      4096 Jul  1 14:00 ispell<br>
AT> drwxrwsr-x 2 libuuid   libuuid   4096 Dec 11  2012 libuuid<br>
AT> drwxr-xr-x 2 root      root      4096 May 17  2012 logrotate<br>
AT> drwxr-xr-x 2 root      root      4096 Dec  4  2013 misc<br>
AT> drwxr-xr-x 2 root      root      4096 Sep 25  2010 mlocate<br>
AT> drwxr-xr-x 5 statd     nogroup   4096 Jul  1 14:02 nfs<br>
AT> drwxr-xr-x 2 root      root      4096 Apr 28  2013 os-prober<br>
AT> drwxr-xr-x 2 root      root      4096 Jul  1 13:44 pam<br>
AT> lrwxrwxrwx 1 root      root        18 Jul  1 13:59 python-support -> /usr/lib/pymodules<br>
AT> drwxr-xr-x 2 root      root      4096 Jul  1 14:00 sgml-base<br>
AT> drwxr-xr-x 6 smokeping smokeping 4096 Jul  1 14:28 smokeping<br>
AT> drwxr-xr-x 3 root      root      4096 Jul  1 13:59 tex-common<br>
AT> drwxr-xr-x 3 root      root      4096 Jul  1 14:01 ucf<br>
AT> drwxr-xr-x 2 root      root      4096 Nov 23  2012 update-rc.d<br>
AT> drwxr-xr-x 2 root      root      4096 Jul  1 13:44 urandom<br>
AT> drwxr-xr-x 2 root      root      4096 Jul  1 13:46 usbutils<br>
AT> drwxr-xr-x 3 root      root      4096 Jul  1 13:45 vim<br>
AT> drwxr-xr-x 2 root      root      4096 Jul  1 14:00 xml-core<br>
AT>  <br>
AT>  <br>
AT> root@smokeping-master:/var/lib/smokeping# ls -l<br>
AT> total 16<br>
AT> drwxrwsr-x 2 smokeping www-data  4096 Mar 17  2013 __cgi<br>
AT> drwxr-xr-x 5 smokeping smokeping 4096 Jul  1 20:57 All<br>
AT> drwxr-xr-x 2 smokeping smokeping 4096 Jul  1 14:28 Local<br>
AT> drwxr-xr-x 2 smokeping smokeping 4096 Jul  1 21:13 __sortercache<br>
AT>  <br>
AT>  <br>
AT> root@smokeping-master:/var/lib/smokeping/Local# ls -l<br>
AT> total 11680<br>
AT> -rw-r--r-- 1 smokeping smokeping 2986808 Jul  1 21:18 LocalMachine.rrd<br>
AT> -rw-r--r-- 1 smokeping smokeping 2986808 Jul  1 14:28<br>
AT> LocalMachine~smokeping-slave1.rrd<br>
AT> -rw-r--r-- 1 smokeping smokeping 2986808 Jul  1 14:28<br>
AT> LocalMachine~smokeping-slave2.rrd<br>
AT> -rw-r--r-- 1 smokeping smokeping 2986808 Jul  1 14:28<br>
AT> LocalMachine~smokeping-slave3.rrd<br>
AT> root@smokeping-master:/var/lib/smokeping/Local#</span></b><u></u><u></u></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
</div></div></div><div><div class="h5">
<br><br>KION Information Management Services GmbH, Sitz der 
Gesellschaft: Wiesbaden, Registergericht: Wiesbaden HRB 22949, 
USt-Id-Nr. DE 254777238, Geschäftsführung: Dr. Walter Grüner</div></div></div>

<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" rel="noreferrer" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users</a><br>
<br></blockquote></div><br></div></div></div></div>