Hello all,

I’m beginner on Smokeping and have some trouble with permission while building 
Master/Slave communication.  I can’t find the solution and i’m looking for help 
:)

I have a Master and its hostname Smokeping-Master. Fping, Dns, Curl, Radius and 
Ftp Probes works on it. The Slave (Smokeping-Slave) has just Fping and it works 
also. Both have same operating system Ubuntu 14.04 LTS (GNU/Linux 
3.13.0-24-generic x86_64).  I’ll explain my steps at the below.

Configuration from Master;


1-      Slaves file;


root@Smokeping-Master:/etc/smokeping/config.d# vi Slaves
*** Slaves ***
secrets=/etc/smokeping/smokeping_secrets

+ Smokeping-Slave
display_name=Smokeping-Slave
location=Atakoy
color=ffff00


2-      smokeping-secrets file



Smokeping-Slave:AndItsPassword



3-      smokeping-secrets permissions


root@Smokeping-Master:/etc/smokeping# stat smokeping_secrets
                File: ‘smokeping_secrets’
                Size: 27              Blocks: 8          IO Block: 4096   
regular file
Device: fc00h/64512d    Inode: 2885373     Links: 1
Access: (0440/-r--r-----)  Uid: (  105/smokeping)   Gid: (  113/smokeping)
Access: 2014-06-26 10:08:45.776143807 +0300
Modify: 2014-06-26 10:08:45.776143807 +0300
Change: 2014-06-26 10:21:35.972115431 +0300
Birth: -


4-      Targets file

+ RootDNS
probe = FPing
title = Root DNS ICMP Latency
menu = Root DNS ICMP Latency
slaves = Smokeping-Slave

Configuration from Slave;


1-      First created secret.txt file at /var/smokeping and stats for this 
files and the below and its empty

root@Smokeping-Slave:/var# stat smokeping
  File: ‘smokeping’
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: fc00h/64512d    Inode: 1835652     Links: 2
Access: (0777/drwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2014-06-26 11:01:20.583395412 +0300
Modify: 2014-06-26 10:20:03.707319328 +0300
Change: 2014-06-26 10:20:03.707319328 +0300
Birth: -

root@Smokeping-Slave:/var/smokeping# stat secret.txt
  File: ‘secret.txt’
  Size: 0               Blocks: 0          IO Block: 4096   regular empty file
Device: fc00h/64512d    Inode: 1836169     Links: 1
Access: (0770/-rwxrwx---)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2014-06-25 16:55:12.489393588 +0300
Modify: 2014-06-25 16:54:31.757392337 +0300
Change: 2014-06-25 16:55:04.681393348 +0300
Birth: -


2-      Last step and permission error at this step.

root@Smokeping-Slave:/# cd /usr/sbin/
root@Smokeping-Slave:/usr/sbin#  ./smokeping --master-url=http://”Master’s 
IP”/cgi-bin/smokeping.cgi \
>              --cache-dir=/var/smokeping/ \
>              --shared-secret=/var/smokeping/secret.txt
WARNING: Opening secrets file /etc/smokeping/smokeping_secrets: Permission 
denied

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 ?

Best Regards.

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

Reply via email to