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

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


Hey guys :)

I ran the debugs and looks like the master is never calling the RRD file 
....



debug from the SLAVE :

root at ubuntu:/home/nml#  /usr/sbin/smokeping 
--master-url=http://192.168.1.29/cgi-bin/smokeping.cgi --shared-secret 
/etc/smokeping/slavesecrets.conf -cache-dir=/var/lib/smokeping/Local/ -debug
Sent data to Server and got new config in response.
Smokeping version 2.006007 successfully launched.
Not entering multiprocess mode with '--debug'. Use '--debug-daemon' for 
that.
FPing: probing 1 targets with step 90 s and offset 2 s.
FPing: Executing /usr/bin/fping -C 10 -q -B1 -r1 -i10 google.fr
FPing: Got fping output: 'google.fr : 21.52 25.18 22.45 36.00 23.44 
21.60 24.74 24.53 21.98 27.71'
Sent data to Server. Server said OK







debug from the MASTER at the same time :

root at ubuntu:/home/nml# tail /var/log/syslog
Apr 16 00:07:41 ubuntu smokeping[2172]: FPing: Got fping output: 
'google.fr : 23.94 22.76 24.26 25.38 25.25 24.98 30.81 22.73 25.92 24.77'
Apr 16 00:07:41 ubuntu smokeping[2172]: Calling 
RRDs::update(/var/lib/smokeping/Local/Google_FR.rrd --template 
uptime:loss:median:ping1:ping2:ping3:ping4:ping5:ping6:ping7:ping8:ping9:ping10 
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)
Apr 16 00:07:41 ubuntu smokeping[2172]: Calling 
RRDs::update(/var/lib/smokeping/Local/LocalMachine.rrd --template 
uptime:loss:median:ping1:ping2:ping3:ping4:ping5:ping6:ping7:ping8:ping9:ping10 
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)
Apr 16 00:07:41 ubuntu smokeping[2172]: FPing: Sleeping 81 seconds.
Apr 16 00:08:57 ubuntu smokeping[2172]: got TERM signal, terminating.
Apr 16 00:09:32 ubuntu smokeping[2228]: Starting syslog logging
Apr 16 00:09:32 ubuntu smokeping[2232]: Smokeping version 2.006007 
successfully launched.
Apr 16 00:09:32 ubuntu smokeping[2232]: Not entering multiprocess mode 
for just a single probe.
Apr 16 00:09:32 ubuntu smokeping[2232]: FPing: probing 2 targets with 
step 90 s and offset 80 s.
Apr 16 00:09:32 ubuntu smokeping[2232]: FPing: Sleeping 48 seconds.
root at ubuntu:/home/nml#




So the master is NEVER calling the slave RRD => Google_FR~ubuntu.rrd


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:10 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:10 LocalMachine.rrd


I am tempted to run a new VM an install smokeping from scratch but 
without using apt-get  .........

I am currently running version 2.006007 of smokeping on a 12.04 ubuntu ...



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