<html><head><title>Re: [smokeping-users] Permission problem on master server</title>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
</head>
<body>
<span style=" font-family:'Courier New'; font-size: 9pt;">What's the result of:<br>
<br>
ls -al /var/lib/smokeping//Local/LocalMachine.smokeping-slave1.slave_cache<br>
<br>
<br>
<span style=" color: #800000;"><b>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=http://10.16.0.91/smokeping/smokeping.cgi<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>
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#<br>
<br>
<br>
AT>  <br>
AT> Can anyone help me.<br>
AT>  <br>
AT> Many thanks.<br>
AT>  <br>
AT> Regards<br>
AT> Tobias<br>
<br>
<br>
AT> KION Information Management Services GmbH, Sitz der Gesellschaft:<br>
AT> Wiesbaden, Registergericht: Wiesbaden HRB 22949, USt-Id-Nr. DE<br>
AT> 254777238, Geschäftsführung: Dr. Walter Grüner<br>
<br>
AT> _______________________________________________<br>
AT> smokeping-users mailing list<br>
</b></span></span><a style=" font-family:'courier new'; font-size: 9pt;" href="mailto:smokeping-users@lists.oetiker.ch">AT> smokeping-users@lists.oetiker.ch</a><br>
<a style=" font-family:'courier new'; font-size: 9pt;" href="https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users">AT> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users</a><br>
<br>
<span style=" font-family:'arial'; color: #c0c0c0;"><i>-- <br>
Gregory Sloop, Principal: Sloop Network & Computer Consulting<br>
Voice: 503.251.0452 x82<br>
EMail: </i></span><a style=" font-family:'arial';" href="mailto:gregs@sloop.net">gregs@sloop.net</a><br>
<a style=" font-family:'arial';" href="http://www.sloop.net">http://www.sloop.net</a><br>
<span style=" font-family:'arial'; color: #c0c0c0;"><i>---</body></html>