[smokeping-users] Issue with smokeping

Štěpán Kukla, Quanti s.r.o. stepan.kukla at quanti.cz
Fri Jul 17 15:16:37 CEST 2020


Thank thats it --shared-secret must be slave_secret not smokeping_secrets 

many thanks to you 

______________________________________________________________________________ 

Š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 \ [ https://www.quanti.cz/ | www.quanti.cz ] 


From: "Roger Gili" <R.Gili at onedirect.es> 
To: "Štěpán Kukla" <stepan.kukla at quanti.cz> 
Cc: "Greg Sloop" <gregs at sloop.net>, "smokeping-users" <smokeping-users at lists.oetiker.ch> 
Sent: Friday, 17 July, 2020 14:23:22 
Subject: RE: Issue with smokeping 

Re: [smokeping-users] Issue with smokeping 


I see an error in your secrets file also. 



Just to confirm: 



In master you have /etc/smokeping/smokeping_secrets and the contents are like this: 

slaveHost1:slave1Secret 

slaveHost2:slave2Secret 



In slaveHost1 you have /etc/smokeping/slave_secret and the contents are ONLY: 

slave1Secret 



In slaveHost2 you have /etc/smokeping/slave_secret and the contents are ONLY: 

slave2Secret 



And you run smokeping on slave with: 

/usr/sbin/smokeping --master-url=https://my_super_url/smokeping/smokeping.cgi --cache-dir=/var/smokeping/ --slave-name=xxxxx --shared-secret=/etc/smokeping/slave_secret –debug 



Note this last line. Shared secret points to slave_secret file. Not the smokeping_secrets like you wrote. 





If you confirm that it’s still failing after this checks, I will try to deploy a test server and try myself. 



	
	


	

Roger Gili 
	

Telefonía IP 
	

[ https://www.onedirect.es/ ] 

				
	
	

	

935 950 995 
	
	

	

[ mailto:r.gili at onedirect.es | r.gili at onedirect.es ] 
	
	

	

[ https://www.onedirect.es/ | www.onedirect.es ] 
	
	

	

C/ valencia, 231 – 08007 Barcelona 







De: Štěpán Kukla, Quanti s.r.o. [mailto:stepan.kukla at quanti.cz] 
Enviado el: viernes, 17 de julio de 2020 14:10 
Para: Roger Gili 
CC: Greg Sloop; smokeping-users 
Asunto: Re: Issue with smokeping 





Hi, 


I add slaves in target uder google dns and message is still same and weird thing is that hash 6c80059569d350b20f870c6d20df0164 is same on both servers 








______________________________________________________________________________ 



Š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 \ [ https://www.quanti.cz/ | www.quanti.cz ] 






From: "Roger Gili" <R.Gili at onedirect.es> 
To: "Štěpán Kukla" <stepan.kukla at quanti.cz>, "Greg Sloop" <gregs at sloop.net> 
Cc: "smokeping-users" <smokeping-users at lists.oetiker.ch> 
Sent: Friday, 17 July, 2020 14:00:28 
Subject: RE: Issue with smokeping 





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 | 
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 
	

[ https://www.onedirect.es/ ] 				
	
	

	

935 950 995 
	
	

	

[ mailto:r.gili at onedirect.es | r.gili at onedirect.es ] 
	
	

	

[ https://www.onedirect.es/ | www.onedirect.es ] 
	
	

	

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'. 








______________________________________________________________________________ 



Š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 \ [ https://www.quanti.cz/ | 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 \ [ https://www.quanti.cz/ | 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. < [ mailto:stepan.kukla at quanti.cz | 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 \ [ mailto:stepan.kukla at quanti.cz | stepan.kukla at quanti.cz ] \ [ https://www.quanti.cz/ | www.quanti.cz ] 



From: "Štěpán Kukla" < [ mailto:stepan.kukla at quanti.cz | stepan.kukla at quanti.cz ] > 
To: "Al Morel" < [ mailto:almorel23 at gmail.com | almorel23 at gmail.com ] > 
Cc: "smokeping-users" < [ mailto:smokeping-users at lists.oetiker.ch | 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 \ [ mailto:stepan.kukla at quanti.cz | stepan.kukla at quanti.cz ] \ [ https://www.quanti.cz/ | www.quanti.cz ] 



From: "Al Morel" < [ mailto:almorel23 at gmail.com | almorel23 at gmail.com ] > 
To: "Štěpán Kukla" < [ mailto:stepan.kukla at quanti.cz | stepan.kukla at quanti.cz ] > 
Cc: "smokeping-users" < [ mailto:smokeping-users at lists.oetiker.ch | 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. < [ mailto:stepan.kukla at quanti.cz | 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 \ [ mailto:stepan.kukla at quanti.cz | stepan.kukla at quanti.cz ] \ [ https://www.quanti.cz/ | www.quanti.cz ] 
_______________________________________________ 
smokeping-users mailing list 
[ mailto:smokeping-users at lists.oetiker.ch | smokeping-users at lists.oetiker.ch ] 
[ https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users | https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users ] 


_______________________________________________ 
smokeping-users mailing list 
[ mailto:smokeping-users at lists.oetiker.ch | smokeping-users at lists.oetiker.ch ] 
[ https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users | https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users ] 
_______________________________________________ 
smokeping-users mailing list 
[ mailto:smokeping-users at lists.oetiker.ch | smokeping-users at lists.oetiker.ch ] 
[ https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users | 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/6dec5f9b/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/6dec5f9b/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/6dec5f9b/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/6dec5f9b/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/6dec5f9b/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/6dec5f9b/attachment-0009.png>


More information about the smokeping-users mailing list