[smokeping-users] New User and Trying to setup a Master/Slave topology

Nicolas MICHEL trash at nmichel.fr
Tue Apr 16 00:38:46 CEST 2013


I think you were right Greg !
[Tue Apr 16 00:29:43 2013] smokeping.cgi [client 192.168.1.31]: Could 
not lock /var/lib/smokeping//Local/Google_FR.ubuntu.slave_cache 
(Permission denied). Trying again 2 more times.
[Tue Apr 16 00:29:43 2013] smokeping.cgi [client 192.168.1.31]: Could 
not lock /var/lib/smokeping//Local/Google_FR.ubuntu.slave_cache 
(Permission denied). Trying again 1 more times.
[Tue Apr 16 00:29:43 2013] smokeping.cgi [client 192.168.1.31]: Could 
not update /var/lib/smokeping//Local/Google_FR.ubuntu.slave_cache, 
giving up for now. at /usr/share/perl5/Smokeping/Master.pm line 156.
[Tue Apr 16 00:34:47 2013] smokeping.cgi [client 192.168.1.31]: Could 
not lock /var/lib/smokeping//Local/Google_FR.ubuntu.slave_cache 
(Permission denied). Trying again 2 more times.
[Tue Apr 16 00:34:47 2013] smokeping.cgi [client 192.168.1.31]: Could 
not lock /var/lib/smokeping//Local/Google_FR.ubuntu.slave_cache 
(Permission denied). Trying again 1 more times.
[Tue Apr 16 00:34:48 2013] smokeping.cgi [client 192.168.1.31]: Could 
not update /var/lib/smokeping//Local/Google_FR.ubuntu.slave_cache, 
giving up for now. at /usr/share/perl5/Smokeping/Master.pm line 156.

But the problem is that the permission are setup this way:


root at ubuntu:/home/nml# ll /var/lib/smokeping//Local/
total 4976
drwxrwxr-x 2 smokeping smokeping    4096 Apr 15 23:37 ./
drwxrwxr-x 5 smokeping smokeping    4096 Apr 10 22:38 ../
-rw-rw-r-- 1 smokeping www-data  1688648 Apr 16 00:36 Google_FR.rrd
-rw-rw-r-- 1 smokeping www-data  1688648 Apr 15 22:18 
Google_FR~ubuntu.rrd
-rw-rw-r-- 1 smokeping www-data  1688648 Apr 16 00:36 LocalMachine.rrd


How can I resolve the issue ? :()

Thanks !

Nic




Le Tuesday, April 16, 2013 12:28:53 AM, Gregory Sloop a écrit :
> Check the apache logs now.
> /var/log/apache2/access.log and error.log [in Ubuntu]
>
> I'd wager that apache can't write to the RRD file. :)
> [And yes, I know you have changed permissions, but I'm still betting
> that is the problem.]
>
> -Greg
>
> NM> Hey guys :)
>
> NM> I ran the debugs and looks like the master is never calling the RRD file
> NM> ....
>
>
>
> NM> debug from the SLAVE :
>
> NM> root at ubuntu:/home/nml#  /usr/sbin/smokeping
> NM> --master-url=http://192.168.1.29/cgi-bin/smokeping.cgi --shared-secret
> NM> /etc/smokeping/slavesecrets.conf
> NM> -cache-dir=/var/lib/smokeping/Local/ -debug
> NM> Sent data to Server and got new config in response.
> NM> Smokeping version 2.006007 successfully launched.
> NM> Not entering multiprocess mode with '--debug'. Use '--debug-daemon' for
> NM> that.
> NM> FPing: probing 1 targets with step 90 s and offset 2 s.
> NM> FPing: Executing /usr/bin/fping -C 10 -q -B1 -r1 -i10 google.fr
> NM> FPing: Got fping output: 'google.fr : 21.52 25.18 22.45 36.00 23.44
> NM> 21.60 24.74 24.53 21.98 27.71'
> NM> Sent data to Server. Server said OK
>
>
>
>
>
>
>
> NM> debug from the MASTER at the same time :
>
> NM> root at ubuntu:/home/nml# tail /var/log/syslog
> NM> Apr 16 00:07:41 ubuntu smokeping[2172]: FPing: Got fping output:
> NM> 'google.fr : 23.94 22.76 24.26 25.38 25.25 24.98 30.81 22.73 25.92 24.77'
> NM> Apr 16 00:07:41 ubuntu smokeping[2172]: Calling
> NM> RRDs::update(/var/lib/smokeping/Local/Google_FR.rrd --template
> NM> uptime:loss:median:ping1:ping2:ping3:ping4:ping5:ping6:ping7:ping8:ping9:ping10
> NM> 1366063661:U:0:2.4980000000e-02:2.2730000000e-02:2.2760000000e-02:2.3940000000e-02:2.4260000000e-02:2.4770000000e-02:2.4980000000e-02:2.5250000000e-02:2.5380000000e-02:2.5920000000e-02:3.0810000000e-02)
> NM> Apr 16 00:07:41 ubuntu smokeping[2172]: Calling
> NM> RRDs::update(/var/lib/smokeping/Local/LocalMachine.rrd --template
> NM> uptime:loss:median:ping1:ping2:ping3:ping4:ping5:ping6:ping7:ping8:ping9:ping10
> NM> 1366063661:U:0:9.0000000000e-05:8.0000000000e-05:8.0000000000e-05:9.0000000000e-05:9.0000000000e-05:9.0000000000e-05:9.0000000000e-05:9.0000000000e-05:9.0000000000e-05:9.0000000000e-05:9.0000000000e-05)
> NM> Apr 16 00:07:41 ubuntu smokeping[2172]: FPing: Sleeping 81 seconds.
> NM> Apr 16 00:08:57 ubuntu smokeping[2172]: got TERM signal, terminating.
> NM> Apr 16 00:09:32 ubuntu smokeping[2228]: Starting syslog logging
> NM> Apr 16 00:09:32 ubuntu smokeping[2232]: Smokeping version 2.006007
> NM> successfully launched.
> NM> Apr 16 00:09:32 ubuntu smokeping[2232]: Not entering multiprocess mode
> NM> for just a single probe.
> NM> Apr 16 00:09:32 ubuntu smokeping[2232]: FPing: probing 2 targets with
> NM> step 90 s and offset 80 s.
> NM> Apr 16 00:09:32 ubuntu smokeping[2232]: FPing: Sleeping 48 seconds.
> NM> root at ubuntu:/home/nml#
>
>
>
>
> NM> So the master is NEVER calling the slave RRD => Google_FR~ubuntu.rrd
>
>
> NM> root at ubuntu:/home/nml# ll /var/lib/smokeping/Local/
> NM> total 4976
> NM> drwxrwxr-x 2 smokeping smokeping    4096 Apr 15 23:37 ./
> NM> drwxrwxr-x 5 smokeping smokeping    4096 Apr 10 22:38 ../
> NM> -rw-rw-r-- 1 smokeping www-data  1688648 Apr 16 00:10 Google_FR.rrd
> NM> -rw-rw-r-- 1 smokeping www-data  1688648 Apr 15 22:18 Google_FR~ubuntu.rrd
> NM> -rw-rw-r-- 1 smokeping www-data  1688648 Apr 16 00:10 LocalMachine.rrd
>
>
> NM> I am tempted to run a new VM an install smokeping from scratch but
> NM> without using apt-get  .........
>
> NM> I am currently running version 2.006007 of smokeping on a 12.04 ubuntu ...
>
>
>
> NM> Le 4/15/2013 3:57 PM, Jim Long a écrit :
>>> On Mon, Apr 15, 2013 at 06:54:52AM -0700, Jim Long wrote:
>>>> The Smokeping user has to be able to WRITE to the in order
>>> Boss!  The file, the file!
>>>
>>>> for updates to work.  The Apache group needs to be able to
>>>> READ the file in order to display the image to a web browser.
>>>>
>>>> chown smokeping:www-data foo-bar.rrd
>>>>
>>>> is perhaps what you want.
>>>>
>>>> Jim
>>> _______________________________________________
>>> smokeping-users mailing list
>>> smokeping-users at lists.oetiker.ch
>>> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
>
>



More information about the smokeping-users mailing list