Hello all, has anyone an idea for my problem?
I run on the master server following command without success: root@smokeping-master:/var/lib/smokeping# cd /var/lib/smokeping/ root@smokeping-master:/var/lib/smokeping# chown -R smokeping:www-data *.rrd Many thanks for your help. Regards Tobias -----Ursprüngliche Nachricht----- Von: Ackermann, Tobias Gesendet: Donnerstag, 2. Juli 2015 21:15 An: [email protected] Betreff: Permission problem on master server Hello all, I think I have a problem with the permissions on the master system for /var/lib/smokeping/ The config is wokring on the Slave system : root@smokeping-slave1:~# smokeping -restart --master-url=http://10.16.0.91/smokeping/smokeping.cgi --cache-dir=/var/smokeping/ --shared-secret=/var/smokeping/secret.txt Sent data to Server and got new config in response. Note: logging to syslog as local0/info. Daemonizing /usr/sbin/smokeping ... root@smokeping-slave1:~# Debug mode tell me also "Sent data to Server. Server said OK". But if I have a look to the apache error log (/var/log/apache2/error.log)on the master Server I found this errors: [Wed Jul 1 20:37:37 2015] smokeping.cgi [client 10.16.10.108]: Could not lock /var/lib/smokeping//Local/LocalMachine.smokeping-slave1.slave_cache (Permission denied). Trying again 2 more times. [Wed Jul 1 20:37:38 2015] smokeping.cgi [client 10.16.10.108]: Could not lock /var/lib/smokeping//Local/LocalMachine.smokeping-slave1.slave_cache (Permission denied). Trying again 1 more times. [Wed Jul 1 20:37:38 2015] smokeping.cgi [client 10.16.10.108]: Could not update /var/lib/smokeping//Local/LocalMachine.smokeping-slave1.slave_cache, giving up for now. at /usr/share/perl5/Smokeping/Maste..... And many many more entries. I think I have to change the permission for the folder /var/lib/Smokeping/ but I don't now with which permissions for which user. Here the permissions for the folders: root@smokeping-master:/var/lib# ls -l total 104 drwxr-xr-x 5 root root 4096 Jul 1 14:16 apt drwxr-xr-x 2 root root 4096 Jul 1 13:52 aptitude drwxr-xr-x 2 root root 4096 Jul 1 13:45 dhcp drwxr-xr-x 4 root root 4096 Jul 1 13:59 dictionaries-common drwxr-xr-x 8 root root 4096 Jul 1 14:16 dpkg drwxr-xr-x 2 root root 4096 Jul 1 14:02 exim4 drwxr-xr-x 2 root root 4096 Jul 1 13:46 initramfs-tools drwxr-xr-x 2 root root 4096 Jul 14 2013 initscripts drwxr-xr-x 2 root root 4096 Jul 14 2013 insserv drwxr-xr-x 2 root root 4096 Jul 1 14:00 ispell drwxrwsr-x 2 libuuid libuuid 4096 Dec 11 2012 libuuid drwxr-xr-x 2 root root 4096 May 17 2012 logrotate drwxr-xr-x 2 root root 4096 Dec 4 2013 misc drwxr-xr-x 2 root root 4096 Sep 25 2010 mlocate drwxr-xr-x 5 statd nogroup 4096 Jul 1 14:02 nfs drwxr-xr-x 2 root root 4096 Apr 28 2013 os-prober drwxr-xr-x 2 root root 4096 Jul 1 13:44 pam lrwxrwxrwx 1 root root 18 Jul 1 13:59 python-support -> /usr/lib/pymodules drwxr-xr-x 2 root root 4096 Jul 1 14:00 sgml-base drwxr-xr-x 6 smokeping smokeping 4096 Jul 1 14:28 smokeping drwxr-xr-x 3 root root 4096 Jul 1 13:59 tex-common drwxr-xr-x 3 root root 4096 Jul 1 14:01 ucf drwxr-xr-x 2 root root 4096 Nov 23 2012 update-rc.d drwxr-xr-x 2 root root 4096 Jul 1 13:44 urandom drwxr-xr-x 2 root root 4096 Jul 1 13:46 usbutils drwxr-xr-x 3 root root 4096 Jul 1 13:45 vim drwxr-xr-x 2 root root 4096 Jul 1 14:00 xml-core root@smokeping-master:/var/lib/smokeping# ls -l total 16 drwxrwsr-x 2 smokeping www-data 4096 Mar 17 2013 __cgi drwxr-xr-x 5 smokeping smokeping 4096 Jul 1 20:57 All drwxr-xr-x 2 smokeping smokeping 4096 Jul 1 14:28 Local drwxr-xr-x 2 smokeping smokeping 4096 Jul 1 21:13 __sortercache root@smokeping-master:/var/lib/smokeping/Local# ls -l total 11680 -rw-r--r-- 1 smokeping smokeping 2986808 Jul 1 21:18 LocalMachine.rrd -rw-r--r-- 1 smokeping smokeping 2986808 Jul 1 14:28 LocalMachine~smokeping-slave1.rrd -rw-r--r-- 1 smokeping smokeping 2986808 Jul 1 14:28 LocalMachine~smokeping-slave2.rrd -rw-r--r-- 1 smokeping smokeping 2986808 Jul 1 14:28 LocalMachine~smokeping-slave3.rrd root@smokeping-master:/var/lib/smokeping/Local# Can anyone help me. Many thanks. Regards Tobias 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 _______________________________________________ smokeping-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
