The error is self-explanatory I think: “Maybe we are not configured as a slave 
for any of the targets on the master”

In your targets configuration no slave is being used. Check again the manual at 
https://oss.oetiker.ch/smokeping/doc/smokeping_master_slave.en.html

What you seem to be missing is the slave usage in targets. You correctly define 
the slave names but never define when they will be used. Extract from your 
config:

*** Targets ***
slaves=xxxxx xxxx1  That’s ok!

[…..]

+ DNS-servers
menu = DNS servers
title = DNS servers

++ Google_1
host = 8.8.8.8
title = Google DNS 8.8.8.8
slaves= xxxxx <-THIS IS MISSING!

++ Google_2
host = 8.8.4.4
title = Google DNS 8.8.4.4
slaves=xxxxx xxxx1 <-THIS IS MISSING!


Hope this helps



Roger Gili

Telefonía IP

[Onedirect]<https://www.onedirect.es/>


[Phone]


935 950 995

[Email]


r.g...@onedirect.es<mailto:r.g...@onedirect.es>

[Website]


www.onedirect.es<https://www.onedirect.es/>

[Location]


C/ valencia, 231 – 08007 Barcelona





De: smokeping-users 
[mailto:smokeping-users-bounces+r.gili=onedirect...@lists.oetiker.ch] En nombre 
de Štepán Kukla, Quanti s.r.o.
Enviado el: viernes, 17 de julio de 2020 13:25
Para: Greg Sloop
CC: smokeping-users
Asunto: Re: [smokeping-users] Issue with smokeping

Hi,

its doesnt looks like permission error, but here is my configuration and logs:

thanks for help :)

start command on slave:
/usr/sbin/smokeping --master-url=https://my_super_url/smokeping/smokeping.cgi 
--cache-dir=/var/smokeping/ --slave-name=xxxxx 
--shared-secret=/etc/smokeping/smokeping_secrets --debug

secrets permitions:
master:
-rw-r-----  smokeping:www-data    smokeping_secrets
slave:
-rw-------  smokeping:root  slave_secret


master_slave config file:
*** Slaves ***
secrets=/etc/smokeping/smokeping_secrets

    +xxxxx
    display_name=xxxxx
    location=Prague
    color=ff0000
    +xxxxx1
    display_name=xxxxx1
    location=Prague
    color=00ff11

Master_Targets file:
*** Targets ***
slaves=xxxxx xxxx1

probe = FPing

menu = Top
title = Network Latency Grapher
remark = Welcome to the SmokePing website. \
         Here you will learn all about the latency of our network.

+ Local
menu = Local
title = Local Network
#parents = owner:/Test/James location:/

++ LocalMachine
menu = Local Machine
title = This host
host = localhost
#alerts = someloss

+ DNS-servers
menu = DNS servers
title = DNS servers

++ Google_1
host = 8.8.8.8
title = Google DNS 8.8.8.8

++ Google_2
host = 8.8.4.4
title = Google DNS 8.8.4.4


Both of servers running in --debug
Master logs:
doesn't show anything about slave

Slave logs:
Jul 17 11:12:57 xxxxx systemd[1]: Starting Latency Logging and Graphing 
System...
Jul 17 11:12:58 xxxxx smokeping[11297]: WARNING: Data from xxxxx was signed 
with 6c80059569d350b20f870c6d20df0164 which does not match our expectation
Jul 17 11:12:58 xxxxx smokeping[11297]: Sent data to Server. Server said 
WARNING: Data from xxxxx was signed with 6c80059569d350b20f870c6d20df0164 which 
does not match our expectation
Jul 17 11:12:58 xxxxx smokeping[11297]: ERROR: we did not get config from the 
master. Maybe we are not configured as a slave for any of the targets on the 
master ?
Jul 17 11:12:58 xxxxx systemd[1]: smokeping.service: Control process exited, 
code=exited, status=255/EXCEPTION
Jul 17 11:12:58 xxxxx systemd[1]: smokeping.service: Failed with result 
'exit-code'.


______________________________________________________________________________

[Quanti logo]

Štěpán Kukla

Quanti s.r.o.
Thákurova 531/4
160 00 Praha 6 - Dejvice

TEL: +420 777 027 208 \ stepan.ku...@quanti.cz \ 
www.quanti.cz<https://www.quanti.cz>

________________________________
From: "Gregory Sloop" <gr...@sloop.net>
To: "Štěpán Kukla" <stepan.ku...@quanti.cz>, "Angelo Höngens" 
<ang...@hongens.nl>
Cc: "smokeping-users" <smokeping-users@lists.oetiker.ch>
Sent: Thursday, 16 July, 2020 16:54:42
Subject: Re: [smokeping-users] Issue with smokeping

Providing a full output of the two configurations would probably be helpful. It 
may be as simple as a typo.

Another possibility: IIRC, the parent will refuse to use the secrets file if 
the permissions are set too expansively.
Finally, is the parent/child actually able to access the secrets file - are 
permissions too narrow.

Running both parent/child servers with --debug is often fairly helpful, since 
it gives you a lot of detail.

HTH

-Greg


Hi,
hostname is match for one case I usint --slave-name and it's same everywhere

______________________________________________________________________________


Štěpán Kukla
Quanti s.r.o.
Thákurova 531/4
160 00 Praha 6 - Dejvice

TEL: +420 777 027 208 \ stepan.ku...@quanti.cz \ 
www.quanti.cz<https://www.quanti.cz>
________________________________
From: "Angelo Höngens" <ang...@hongens.nl>
To: "Štěpán Kukla" <stepan.ku...@quanti.cz>
Sent: Thursday, 16 July, 2020 16:09:21
Subject: Re: [smokeping-users] Issue with smokeping

And how do your slave configuration look in your master config file? Does the 
hostname match?

--
met vriendelijke groet,

Angelo Höngens

(sent from my mobile)

On Jul 16, 2020, at 09:56, Štěpán Kukla, Quanti s.r.o. 
<stepan.ku...@quanti.cz<mailto:stepan.ku...@quanti.cz>> wrote:



Hello everyone,
from now I have problem only with message below, weird is the 
"6c80059569d350b20f870c6d20df0164" is same on deny server I don't know what I 
can do. please help.

Sent data to Server. Server said WARNING: Data from hostname was signed with 
6c80059569d350b20f870c6d20df0164 which does not match our expectation
ERROR: we did not get config from the master. Maybe we are not configured as a 
slave for any of the targets on the master ?
thanks, everyone :)
______________________________________________________________________________


Štěpán Kukla
Quanti s.r.o.
Thákurova 531/4
160 00 Praha 6 - Dejvice

TEL: +420 777 027 208 \ stepan.ku...@quanti.cz<mailto:stepan.ku...@quanti.cz> \ 
www.quanti.cz<https://www.quanti.cz>
________________________________
From: "Štěpán Kukla" <stepan.ku...@quanti.cz<mailto:stepan.ku...@quanti.cz>>
To: "Al Morel" <almore...@gmail.com<mailto:almore...@gmail.com>>
Cc: "smokeping-users" 
<smokeping-users@lists.oetiker.ch<mailto:smokeping-users@lists.oetiker.ch>>
Sent: Wednesday, 15 July, 2020 12:50:27
Subject: Re: [smokeping-users] Issue with smokeping

Hi,
yes I have on master - hostname:pass and on slave - only pass

______________________________________________________________________________


Štěpán Kukla
Quanti s.r.o.
Thákurova 531/4
160 00 Praha 6 - Dejvice

TEL: +420 777 027 208 \ stepan.ku...@quanti.cz<mailto:stepan.ku...@quanti.cz> \ 
www.quanti.cz<https://www.quanti.cz>
________________________________
From: "Al Morel" <almore...@gmail.com<mailto:almore...@gmail.com>>
To: "Štěpán Kukla" <stepan.ku...@quanti.cz<mailto:stepan.ku...@quanti.cz>>
Cc: "smokeping-users" 
<smokeping-users@lists.oetiker.ch<mailto:smokeping-users@lists.oetiker.ch>>
Sent: Tuesday, 14 July, 2020 17:09:48
Subject: Re: [smokeping-users] Issue with smokeping

Make sure in slave secrets file you just have password she not master name and 
password

On Tue, Jul 14, 2020, 8:48 AM Štěpán Kukla, Quanti s.r.o. 
<stepan.ku...@quanti.cz<mailto:stepan.ku...@quanti.cz>> wrote:

Hello,

I want ask for help with smokeping slave setup,

Slave exit on startup with this  (start command /usr/sbin/smokeping 
--master-url=(master-url) --cache-dir=/var/lib/smokeping 
--slave-name=(hostname) --shared-secret=/etc/smokeping/smokeping_secrets 
--pid-dir=/run/smokeping --debug )

message:

Sent data to Server. Server said WARNING: Data from hostname was signed with 
6c80059569d350b20f870c6d20df0164 which does not match our expectation
ERROR: we did not get config from the master. Maybe we are not configured as a 
slave for any of the targets on the master ?

If I start slave without --slave-name parameter, in master log I will see: 
[client some_IP:36780] mod_fcgid: stderr: [Tue Jul 14 14:15:04 2020] 
smokeping.cgi [client some_IP]: Use of uninitialized value $secret in string eq 
at /usr/share/perl5/Smokeping/Master.pm line 236.

Thanks for any help,
Štěpán Kukla

______________________________________________________________________________


Štěpán Kukla
Quanti s.r.o.
Thákurova 531/4
160 00 Praha 6 - Dejvice

TEL: +420 777 027 208 \ stepan.ku...@quanti.cz<mailto:stepan.ku...@quanti.cz> \ 
www.quanti.cz<https://www.quanti.cz>
_______________________________________________
smokeping-users mailing list
smokeping-users@lists.oetiker.ch<mailto:smokeping-users@lists.oetiker.ch>
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users


_______________________________________________
smokeping-users mailing list
smokeping-users@lists.oetiker.ch<mailto:smokeping-users@lists.oetiker.ch>
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
_______________________________________________
smokeping-users mailing list
smokeping-users@lists.oetiker.ch<mailto:smokeping-users@lists.oetiker.ch>
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users



_______________________________________________
smokeping-users mailing list
smokeping-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

Reply via email to