<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 15 (filtered medium)">
<title>Re: [smokeping-users] Master/Slave Data Problem</title>
<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;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
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
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></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><b><u><span style="font-size:7.5pt;font-family:"Verdana",sans-serif;color:#666666">Sınıflandırma</span></u></b><u><span style="font-size:7.5pt;font-family:"Verdana",sans-serif;color:#666666">:
</span></u><b><u><span style="font-size:7.5pt;font-family:"Verdana",sans-serif;color:red">S2</span></u></b><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">I have checked the .rrd files and I’m sure that no data in .rrd files. This is why graphs are empty. But .slave_cache files has data
and master can’t update the .rrd files for no reason. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">They’ve same rights with other .rrd’s and 12 slaves work without any problem. You can see the access rights at the below. I’m looking
for any advices.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"># find . -type f -name '*Gayrettepe.rrd' | xargs stat | grep 666<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Access: (0666/-rw-rw-rw-) Uid: ( 105/smokeping) Gid: ( 33/www-data)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Access: (0666/-rw-rw-rw-) Uid: ( 105/smokeping) Gid: ( 33/www-data)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Access: (0666/-rw-rw-rw-) Uid: ( 105/smokeping) Gid: ( 33/www-data)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"># rrdtool fetch hurriyet~Smokeping-Gayrettepe.rrd MAX -r 1m -s -2h<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"> uptime loss median ping1 ping2 ping3
ping4 ping5 ping6 ping7 ping8 ping9 ping10 ping11 ping12 ping13 ping14 ping15 ping16
ping17 ping18 ping19 ping20<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">1492167600: -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">1492171200: -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">1492174800: -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan –nan<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:13.0pt;font-family:"Calibri",sans-serif;color:red;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:13.0pt;font-family:"Calibri",sans-serif;color:red;mso-fareast-language:EN-US">Data from slaves;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"># cat superonline.Smokeping-Gayrettepe.slave_cache<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">pst0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Smokeping-Gayrettepe<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">1491045261<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-US">▒</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">U:0:0.371:0.157:0.172:0.204:0.209:0.215:0.296:0.307:0.309:0.321:0.368:0.371:0.391:0.414:0.499:0.555:0.581:0.603:0.614:0.807:1.414<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Smokeping-Gayrettepe<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">1491045263<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">~U:0:0.343:0.16:0.181:0.182:0.241:0.259:0.265:0.282:0.292:0.312:0.334:0.343:0.343:0.39:0.407:0.452:0.463:0.596:0.65:0.674:1.668<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Smokeping-Gayrettepe<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">1491045267<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">U:0:2.554:0.856:0.886:1.286:1.327:1.84:1.995:2.008:2.082:2.333:2.362:2.554:2.636:2.973:2.976:4.031:4.184:4.291:4.603:9.398:9.72<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Smokeping-Gayrettepe<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">1491045271<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-US">▒</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">U:0:2.768:0.192:0.28:1.921:2.064:2.077:2.082:2.212:2.406:2.572:2.581:2.768:3.025:3.293:3.627:3.751:3.785:3.785:3.901:3.988:6.696<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Smokeping-Gayrettepe<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">1491045277<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">U:0:2.815:0.893:0.986:1.229:1.345:1.848:2.075:2.218:2.252:2.343:2.405:2.815:2.984:3.048:3.405:3.758:3.88:3.913:4.83:8.103:9.832<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Smokeping-Gayrettepe<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">1491045280<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">U:0:2.427:1.172:1.213:1.296:1.35:1.621:1.792:1.868:2.193:2.237:2.366:2.427:2.613:2.759:2.808:3.208:3.554:3.827:5.06:7.053:9.538<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Gregory Sloop [mailto:gregs@sloop.net]
<br>
<b>Sent:</b> Friday, March 31, 2017 9:34 PM<br>
<b>To:</b> Türker Karatepe <Turker.Karatepe@dsmart.com.tr>; smokeping-users@lists.oetiker.ch<br>
<b>Subject:</b> Re: [smokeping-users] Master/Slave Data Problem<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:9.0pt;font-family:"Courier New"">I haven't read very carefully, but it certainly looks like the "typical" - can't read or write the RRD's. [Reviewing the logs of smokeping run in debug
mode, and the same for slaves and the web-server will likely be very helpful in verifying that this is what is occurring. But it's a common problem - one of the most common I see.]<br>
<br>
The master and output/graphing processes run as the user that smokeping is configured to run as. Thus, if the master can't write to the RRD's or can't graph them [and there's data in them] then the master smokeping user doesn't likely have rights to read/write
to/from those rrd files.<br>
<br>
The slave process writes data, to the rrds on the master, as the web-server user. [apache, www-data etc] If the slave can't write to the RRD's it probably doesn't have the proper rights.
<br>
<br>
For both to work, [master and slave] then both have to have rights. [The web-server user/group and the smokeping user/group]<br>
<br>
Determining the proper group/user(s) to give rights to, and how to do so is left as an exercise to the reader.<br>
<br>
<br>
</span><o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td width="2" style="width:1.5pt;background:blue;padding:.75pt .75pt .75pt .75pt">
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><b><u><span style="color:#666666">Sınıflandırma</span></u></b><span style="color:#666666">:
</span><b><span style="color:red">S2<br>
</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">Hello,<br>
<br>
I’m using 1 Master and 14 Smokeping Slaves in our network and I’m facing interesting problems with last 2 slaves. Do you have a suggestion on how to solve the problem I have detailed below?<br>
<br>
Master Smokeping version is 2.006008<br>
Slave Smokeping version is 2.006009 and I have working slaves on both version (2.006008 and 2.006009)<br>
These Slaves are working on Raspberry Pi 3<br>
<br>
First problem is data write problem;<br>
<br>
# ls -l | grep Gayret<br>
-rw-r--r-- 1 smokeping www-data 2986808 Mar 31 10:48 garanti~Smokeping-Gayrettepe.rrd<br>
-rw-r--r-- 1 www-data www-data 179 Mar 31 11:17 garanti.Smokeping-Gayrettepe.slave_cache<br>
-rw-r--r-- 1 smokeping www-data 2986808 Mar 31 10:48 hurriyet~Smokeping-Gayrettepe.rrd<br>
-rw-r--r-- 1 www-data www-data 179 Mar 31 11:17 hurriyet.Smokeping-Gayrettepe.slave_cache<br>
-rw-r--r-- 1 smokeping www-data 2986808 Mar 31 10:48 superonline~Smokeping-Gayrettepe.rrd<br>
-rw-r--r-- 1 www-data www-data 173 Mar 31 11:17 superonline.Smokeping-Gayrettepe.slave_cache<br>
<br>
As you see on the above I can see the slave server data in the master server but it is not writing on it.. Last modified time is not being updated. No data in the graphs anyway<br>
<br>
Second problem is similiar;<br>
<br>
Again, I can see the slave data in master server it is writing on it but this time no data in the graph.<br>
<br>
# ls -l | grep Trabzon<br>
-rw-r--r-- 1 smokeping www-data 2986808 Mar 31 11:29 garanti~Smokeping-Trabzon.rrd<br>
-rw-r--r-- 1 www-data www-data 345 Mar 31 11:29 garanti.Smokeping-Trabzon.slave_cache<br>
-rw-r--r-- 1 smokeping www-data 2986808 Mar 31 11:29 hurriyet~Smokeping-Trabzon.rrd<br>
-rw-r--r-- 1 www-data www-data 343 Mar 31 11:29 hurriyet.Smokeping-Trabzon.slave_cache<br>
-rw-r--r-- 1 smokeping www-data 2986808 Mar 31 11:29 superonline~Smokeping-Trabzon.rrd<br>
-rw-r--r-- 1 www-data www-data 343 Mar 31 11:29 superonline.Smokeping-Trabzon.slave_cache<br>
<br>
Best Regards<br>
Turker<br>
</span><span style="font-size:9.0pt;font-family:"Courier New";color:black">Untitled Document
</span><o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td width="330" style="width:247.5pt;padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Arial",sans-serif">Türker Karatepe<br>
</span></b><span style="font-size:9.0pt;font-family:"Arial",sans-serif">Sistem ve Network / Teknik Operasyon Uzmanı
<br>
System and Network Department / Technical Operations Administrator <br>
</span><a href="mailto:Turker.Karatepe@dsmart.com.tr"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#EC6906">Turker.Karatepe@dsmart.com.tr</span></a><span style="font-size:9.0pt;font-family:"Arial",sans-serif"> </span><a href="https://www.dsmart.com.tr/"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#EC6906">www.dsmart.com.tr</span></a><o:p></o:p></p>
</td>
<td width="319" style="width:239.25pt;padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif">t: 0212 373 78 00 / 02124135111 / f: 0212 380 24 97
<br>
</span></b><span style="font-size:9.0pt;font-family:"Arial",sans-serif">DOĞAN TV CENTER 100.Yıl Mahallesi, Melda Sok., No:1, 34204 Bağcılar</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><br>
<span style="font-size:9.0pt;font-family:"Courier New";color:white">disclaimerdsm
<br>
<br>
</span><i><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:silver">--
<br>
Gregory Sloop, Principal: Sloop Network & Computer Consulting<br>
Voice: 503.251.0452 x82<br>
EMail: </span></i><a href="mailto:gregs@sloop.net"><span style="font-family:"Arial",sans-serif">gregs@sloop.net</span></a><br>
<a href="http://www.sloop.net"><span style="font-family:"Arial",sans-serif">http://www.sloop.net</span></a><br>
<i><span style="font-family:"Arial",sans-serif;color:silver">---</span></i><o:p></o:p></p>
</div>
</body>
</html>