[smokeping-users] Smokeping Master/Slave Permission Problem

Hoeft, Cody Ray hoeftc at onid.oregonstate.edu
Thu Jun 26 16:18:14 CEST 2014


Try `chmod 640 smokeping-secrets && chown apache:apache smokeping-secrets`.

I believe it will be rejected if it has permissions that are too open. Also
it is read by the web server. I would change my apache user and group to
smokeping to avoid those confusing details.
On Jun 26, 2014 1:32 AM, "Türker Karatepe" <Turker.Karatepe at dsmart.com.tr>
wrote:

>  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 at 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 at 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 at 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 at 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 at Smokeping-Slave:/# cd /usr/sbin/
>
> root at 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 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/20140626/7fe49f94/attachment.htm 


More information about the smokeping-users mailing list