<div dir="ltr">Also, make sure your smokeping.conf file for apache contains something similiar:<div><br></div><div>Allow from xxx.xxx.xxx.xxx<br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Jun 26, 2014 at 10:18 AM, Hoeft, Cody Ray <span dir="ltr"><<a href="mailto:hoeftc@onid.oregonstate.edu" target="_blank">hoeftc@onid.oregonstate.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p dir="ltr">Try `chmod 640 smokeping-secrets && chown apache:apache smokeping-secrets`.</p>
<p dir="ltr">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.</p>
<div class="gmail_quote"><div><div class="h5">On Jun 26, 2014 1:32 AM, "Türker Karatepe" <<a href="mailto:Turker.Karatepe@dsmart.com.tr" target="_blank">Turker.Karatepe@dsmart.com.tr</a>> wrote:<br type="attribution">
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div lang="TR" link="blue" vlink="purple">
<div>
<p class="MsoNormal">Hello all,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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 :)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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. <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Configuration from Master;<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p><u></u><span>1-<span style="font:7.0pt "Times New Roman"">
</span></span><u></u>Slaves file;<u></u><u></u></p>
<p><u></u> <u></u></p>
<p class="MsoNormal" style="text-indent:18.0pt">root@Smokeping-Master:/etc/smokeping/config.d# vi Slaves
<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:18.0pt">*** Slaves ***<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:18.0pt">secrets=/etc/smokeping/smokeping_secrets<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="text-indent:18.0pt">+ Smokeping-Slave<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:18.0pt">display_name=Smokeping-Slave<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:18.0pt">location=Atakoy<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:18.0pt">color=ffff00<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:18.0pt"><u></u> <u></u></p>
<p><u></u><span>2-<span style="font:7.0pt "Times New Roman"">
</span></span><u></u>smokeping-secrets file<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>Smokeping-Slave:AndItsPassword<u></u><u></u></p>
<p><u></u> <u></u></p>
<p><u></u><span>3-<span style="font:7.0pt "Times New Roman"">
</span></span><u></u>smokeping-secrets permissions<u></u><u></u></p>
<p><u></u> <u></u></p>
<p class="MsoNormal" style="text-indent:18.0pt">root@Smokeping-Master:/etc/smokeping# stat smokeping_secrets
<u></u><u></u></p>
<p class="MsoNormal"> File: ‘smokeping_secrets’<u></u><u></u></p>
<p class="MsoNormal"> Size: 27 Blocks: 8 IO Block: 4096 regular file<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:35.4pt">Device: fc00h/64512d Inode: 2885373 Links: 1<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:35.4pt">Access: (0440/-r--r-----) Uid: ( 105/smokeping) Gid: ( 113/smokeping)<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:35.4pt">Access: 2014-06-26 10:08:45.776143807 +0300<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:35.4pt">Modify: 2014-06-26 10:08:45.776143807 +0300<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:35.4pt">Change: 2014-06-26 10:21:35.972115431 +0300<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:35.4pt">Birth: -<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p><u></u><span>4-<span style="font:7.0pt "Times New Roman"">
</span></span><u></u>Targets file<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt">+ RootDNS<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt">probe = FPing<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt">title = Root DNS ICMP Latency<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt">menu = Root DNS ICMP Latency<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt"><b>slaves = Smokeping-Slave<u></u><u></u></b></p>
<p class="MsoNormal" style="margin-left:18.0pt"><b><u></u> <u></u></b></p>
<p class="MsoNormal">Configuration from Slave;<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p><u></u><span>1-<span style="font:7.0pt "Times New Roman"">
</span></span><u></u>First created secret.txt file at /var/smokeping and stats for this files and the below and its empty<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt">root@Smokeping-Slave:/var# stat smokeping<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt"> File: ‘smokeping’<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt"> Size: 4096 Blocks: 8 IO Block: 4096 directory<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt">Device: fc00h/64512d Inode: 1835652 Links: 2<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt">Access: (0777/drwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt">Access: 2014-06-26 11:01:20.583395412 +0300<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt">Modify: 2014-06-26 10:20:03.707319328 +0300<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt">Change: 2014-06-26 10:20:03.707319328 +0300<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt">Birth: -<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt">root@Smokeping-Slave:/var/smokeping# stat secret.txt<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt"> File: ‘secret.txt’<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt"> Size: 0 Blocks: 0 IO Block: 4096 regular empty file<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt">Device: fc00h/64512d Inode: 1836169 Links: 1<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt">Access: (0770/-rwxrwx---) Uid: ( 0/ root) Gid: ( 0/ root)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt">Access: 2014-06-25 16:55:<a href="tel:12.489393588" value="+12489393588" target="_blank">12.489393588</a> +0300<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt">Modify: 2014-06-25 16:54:31.757392337 +0300<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt">Change: 2014-06-25 16:55:04.681393348 +0300<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt">Birth: -<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p><u></u><span>2-<span style="font:7.0pt "Times New Roman"">
</span></span><u></u>Last step and permission error at this step.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt">root@Smokeping-Slave:/# cd /usr/sbin/<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt">root@Smokeping-Slave:/usr/sbin# ./smokeping --master-url=http://”Master’s IP”/cgi-bin/smokeping.cgi \<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt">> --cache-dir=/var/smokeping/ \<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt">> --shared-secret=/var/smokeping/secret.txt<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt"><b>WARNING: Opening secrets file /etc/smokeping/smokeping_secrets: Permission denied<u></u><u></u></b></p>
<p class="MsoNormal" style="margin-left:18.0pt"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt">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 ?<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-left:18.0pt">Best Regards.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<br></div></div>_______________________________________________<br>
smokeping-users mailing list<br>
<a href="mailto:smokeping-users@lists.oetiker.ch" target="_blank">smokeping-users@lists.oetiker.ch</a><br>
<a href="https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users</a><br>
<br></blockquote></div>
<br>_______________________________________________<br>
smokeping-users mailing list<br>
<a href="mailto:smokeping-users@lists.oetiker.ch">smokeping-users@lists.oetiker.ch</a><br>
<a href="https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users</a><br>
<br></blockquote></div><br></div>