<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:458498689;
        mso-list-type:hybrid;
        mso-list-template-ids:-1069876116 -854950858 69140505 69140507 69140495 69140505 69140507 69140495 69140505 69140507;}
@list l0:level1
        {mso-level-text:%1-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l1
        {mso-list-id:528107236;
        mso-list-type:hybrid;
        mso-list-template-ids:1772510296 416839022 69140505 69140507 69140495 69140505 69140507 69140495 69140505 69140507;}
@list l1:level1
        {mso-level-text:%1-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l1:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l1:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="TR" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hello all,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I’m beginner on Smokeping and have some trouble with permission while building Master/Slave communication. &nbsp;I can’t find the solution and i’m looking for help :)<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></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). &nbsp;I’ll explain my steps at the below. <o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Configuration from Master;<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l1 level1 lfo1"><![if !supportLists]><span style="mso-list:Ignore">1-<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><![endif]>Slaves file;<o:p></o:p></p>
<p class="MsoListParagraph"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="text-indent:18.0pt">root@Smokeping-Master:/etc/smokeping/config.d# vi Slaves
<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:18.0pt">*** Slaves ***<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:18.0pt">secrets=/etc/smokeping/smokeping_secrets<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="text-indent:18.0pt">&#43; Smokeping-Slave<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:18.0pt">display_name=Smokeping-Slave<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:18.0pt">location=Atakoy<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:18.0pt">color=ffff00<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:18.0pt"><o:p>&nbsp;</o:p></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l1 level1 lfo1"><![if !supportLists]><span style="mso-list:Ignore">2-<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><![endif]>smokeping-secrets file<o:p></o:p></p>
<p class="MsoListParagraph"><o:p>&nbsp;</o:p></p>
<p class="MsoListParagraph">Smokeping-Slave:AndItsPassword<o:p></o:p></p>
<p class="MsoListParagraph"><o:p>&nbsp;</o:p></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l1 level1 lfo1"><![if !supportLists]><span style="mso-list:Ignore">3-<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><![endif]>smokeping-secrets permissions<o:p></o:p></p>
<p class="MsoListParagraph"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="text-indent:18.0pt">root@Smokeping-Master:/etc/smokeping# stat smokeping_secrets
<o:p></o:p></p>
<p class="MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; File: â€˜smokeping_secrets’<o:p></o:p></p>
<p class="MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Size: 27&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Blocks: 8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IO Block: 4096&nbsp;&nbsp; regular file<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:35.4pt">Device: fc00h/64512d&nbsp;&nbsp;&nbsp; Inode: 2885373&nbsp;&nbsp;&nbsp;&nbsp; Links: 1<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:35.4pt">Access: (0440/-r--r-----)&nbsp; Uid: (&nbsp; 105/smokeping)&nbsp;&nbsp; Gid: (&nbsp; 113/smokeping)<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:35.4pt">Access: 2014-06-26 10:08:45.776143807 &#43;0300<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:35.4pt">Modify: 2014-06-26 10:08:45.776143807 &#43;0300<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:35.4pt">Change: 2014-06-26 10:21:35.972115431 &#43;0300<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:35.4pt">Birth: -<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l1 level1 lfo1"><![if !supportLists]><span style="mso-list:Ignore">4-<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><![endif]>Targets file<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt">&#43; RootDNS<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt">probe = FPing<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt">title = Root DNS ICMP Latency<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt">menu = Root DNS ICMP Latency<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt"><b>slaves = Smokeping-Slave<o:p></o:p></b></p>
<p class="MsoNormal" style="margin-left:18.0pt"><b><o:p>&nbsp;</o:p></b></p>
<p class="MsoNormal">Configuration from Slave;<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo2"><![if !supportLists]><span style="mso-list:Ignore">1-<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><![endif]>First created secret.txt file at /var/smokeping and stats for this files and the below and its empty<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt">root@Smokeping-Slave:/var# stat smokeping<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt">&nbsp; File: â€˜smokeping’<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt">&nbsp; Size: 4096&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Blocks: 8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IO Block: 4096&nbsp;&nbsp; directory<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt">Device: fc00h/64512d&nbsp;&nbsp;&nbsp; Inode: 1835652&nbsp;&nbsp;&nbsp;&nbsp; Links: 2<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt">Access: (0777/drwxrwxrwx)&nbsp; Uid: (&nbsp;&nbsp;&nbsp; 0/&nbsp;&nbsp;&nbsp; root)&nbsp;&nbsp; Gid: (&nbsp;&nbsp;&nbsp; 0/&nbsp;&nbsp;&nbsp; root)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt">Access: 2014-06-26 11:01:20.583395412 &#43;0300<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt">Modify: 2014-06-26 10:20:03.707319328 &#43;0300<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt">Change: 2014-06-26 10:20:03.707319328 &#43;0300<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt">Birth: -<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt">root@Smokeping-Slave:/var/smokeping# stat secret.txt<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt">&nbsp; File: â€˜secret.txt’<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt">&nbsp; Size: 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Blocks: 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IO Block: 4096&nbsp;&nbsp; regular empty file<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt">Device: fc00h/64512d&nbsp;&nbsp;&nbsp; Inode: 1836169&nbsp;&nbsp;&nbsp;&nbsp; Links: 1<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt">Access: (0770/-rwxrwx---)&nbsp; Uid: (&nbsp;&nbsp;&nbsp; 0/&nbsp;&nbsp;&nbsp; root)&nbsp;&nbsp; Gid: (&nbsp;&nbsp;&nbsp; 0/&nbsp;&nbsp;&nbsp; root)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt">Access: 2014-06-25 16:55:12.489393588 &#43;0300<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt">Modify: 2014-06-25 16:54:31.757392337 &#43;0300<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt">Change: 2014-06-25 16:55:04.681393348 &#43;0300<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt">Birth: -<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo2"><![if !supportLists]><span style="mso-list:Ignore">2-<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><![endif]>Last step and permission error at this step.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt">root@Smokeping-Slave:/# cd /usr/sbin/<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt">root@Smokeping-Slave:/usr/sbin#&nbsp; ./smokeping --master-url=http://”Master’s IP”/cgi-bin/smokeping.cgi \<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt">&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --cache-dir=/var/smokeping/ \<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt">&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --shared-secret=/var/smokeping/secret.txt<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt"><b>WARNING: Opening secrets file /etc/smokeping/smokeping_secrets: Permission denied<o:p></o:p></b></p>
<p class="MsoNormal" style="margin-left:18.0pt"><o:p>&nbsp;</o:p></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 ?<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt">Best Regards.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>