[smokeping-users] Issue with smokeping

Roger Gili R.Gili at onedirect.es
Fri Jul 17 14:00:28 CEST 2020


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.gili at onedirect.es<mailto:r.gili at 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.es at 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.kukla at quanti.cz \ www.quanti.cz<https://www.quanti.cz>

________________________________
From: "Gregory Sloop" <gregs at sloop.net>
To: "Štěpán Kukla" <stepan.kukla at quanti.cz>, "Angelo Höngens" <angelo at hongens.nl>
Cc: "smokeping-users" <smokeping-users at 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.kukla at quanti.cz \ www.quanti.cz<https://www.quanti.cz>
________________________________
From: "Angelo Höngens" <angelo at hongens.nl>
To: "Štěpán Kukla" <stepan.kukla at 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.kukla at quanti.cz<mailto:stepan.kukla at 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.kukla at quanti.cz<mailto:stepan.kukla at quanti.cz> \ www.quanti.cz<https://www.quanti.cz>
________________________________
From: "Štěpán Kukla" <stepan.kukla at quanti.cz<mailto:stepan.kukla at quanti.cz>>
To: "Al Morel" <almorel23 at gmail.com<mailto:almorel23 at gmail.com>>
Cc: "smokeping-users" <smokeping-users at lists.oetiker.ch<mailto:smokeping-users at 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.kukla at quanti.cz<mailto:stepan.kukla at quanti.cz> \ www.quanti.cz<https://www.quanti.cz>
________________________________
From: "Al Morel" <almorel23 at gmail.com<mailto:almorel23 at gmail.com>>
To: "Štěpán Kukla" <stepan.kukla at quanti.cz<mailto:stepan.kukla at quanti.cz>>
Cc: "smokeping-users" <smokeping-users at lists.oetiker.ch<mailto:smokeping-users at 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.kukla at quanti.cz<mailto:stepan.kukla at 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.kukla at quanti.cz<mailto:stepan.kukla at quanti.cz> \ www.quanti.cz<https://www.quanti.cz>
_______________________________________________
smokeping-users mailing list
smokeping-users at lists.oetiker.ch<mailto:smokeping-users at lists.oetiker.ch>
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users


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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20200717/f07dcc3d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 4494 bytes
Desc: image001.png
URL: <http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20200717/f07dcc3d/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 1372 bytes
Desc: image002.png
URL: <http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20200717/f07dcc3d/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 1401 bytes
Desc: image003.png
URL: <http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20200717/f07dcc3d/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 1610 bytes
Desc: image004.png
URL: <http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20200717/f07dcc3d/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 1398 bytes
Desc: image005.png
URL: <http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20200717/f07dcc3d/attachment-0009.png>


More information about the smokeping-users mailing list