<html><head><title>Re: [smokeping-users] Master/Slave Data Problem</title>
</head>
<body>
<span style=" font-family:'Courier New'; font-size: 9pt;">So, did you look at the Apache logs? [I assume you're using apache]<br>
Did you run the slaves in debug mode to see what they're doing, if they're having problems etc?<br>
<br>
Run the slave in debug mode. <br>
Is there a problem: <br>
Yes -> fix that problem.<br>
No -> Check apache logs.<br>
<br>
Apache writes the data to the RRD files for slaves - and you'll see the problems in the apache logs if apache can't write the data, if that's the case.<br>
It's also possible that the slaves are getting no data, and thus the "no data" in your RRD's is "normal" - since there's no data to write. [And running the slave in debug mode will let you see what the slave is seeing for returns of its probes, if anything.]<br>
<br>
-Greg<br>
<br>
</span><table>
<tr>
<td width=2 bgcolor= #0000ff><br>
</td>
<td><span style=" font-family:'times new roman'; color: #666666;"><b><u>Sınıflandırma</u></b>: <span style=" color: #ff0000;"><b>S2<br>
</b><span style=" font-size: 11pt; color: #1f497d;">Hello,<br>
<br>
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. <br>
<br>
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.<br>
<br>
# find . -type f -name '*Gayrettepe.rrd' | xargs stat | grep 666<br>
Access: (0666/-rw-rw-rw-) Uid: ( 105/smokeping) Gid: ( 33/www-data)<br>
Access: (0666/-rw-rw-rw-) Uid: ( 105/smokeping) Gid: ( 33/www-data)<br>
Access: (0666/-rw-rw-rw-) Uid: ( 105/smokeping) Gid: ( 33/www-data)<br>
<br>
<br>
# rrdtool fetch hurriyet~Smokeping-Gayrettepe.rrd MAX -r 1m -s -2h<br>
uptime loss median ping1 ping2 ping3 ping4 ping5 ping6 ping7 ping8 ping9 ping10 ping11 ping12 ping13 ping14 ping15 ping16 ping17 ping18 ping19 ping20<br>
<br>
1492167600: -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan<br>
1492171200: -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan<br>
1492174800: -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan –nan<br>
<br>
<br>
<span style=" font-size: 13pt; color: #ff0000;">Data from slaves;<br>
<br>
<span style=" font-size: 11pt; color: #1f497d;"># cat superonline.Smokeping-Gayrettepe.slave_cache<br>
pst0<br>
Smokeping-Gayrettepe<br>
<br>
1491045261<br>
▒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<br>
Smokeping-Gayrettepe<br>
<br>
1491045263<br>
~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<br>
Smokeping-Gayrettepe<br>
<br>
1491045267<br>
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<br>
Smokeping-Gayrettepe<br>
<br>
1491045271<br>
▒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<br>
Smokeping-Gayrettepe<br>
<br>
1491045277<br>
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<br>
Smokeping-Gayrettepe<br>
<br>
1491045280<br>
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<br>
<br>
<br>
<span style=" color: #000000;"><b>From:</b> 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<br>
<br>
<span style=" font-size: 9pt;">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></span></span></span></span></span></span><table>
<tr>
<td width=2 bgcolor= #0000ff><br>
</td>
<td><span style=" font-family:'times new roman'; font-size: 12pt; color: #666666;"><b><u>Sınıflandırma</u></b>: <span style=" color: #ff0000;"><b>S2<br>
</b><span style=" font-size: 11pt; color: #000000;">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 style=" font-size: 9pt;">Untitled Document <br>
</span></span></span></span><table>
<tr>
<td><table>
<tr>
<td width=330><span style=" font-family:'times new roman'; font-size: 11pt;"><b>Türker Karatepe<br>
</b><span style=" font-size: 9pt;">Sistem ve Network / Teknik Operasyon Uzmanı <br>
System and Network Department / Technical Operations Administrator <br>
</span></span><a style=" color: #ec6906; font-family:'times new roman'; font-size: 9pt;" href="mailto:Turker.Karatepe@dsmart.com.tr">Turker.Karatepe@dsmart.com.tr</a><span style=" font-family:'times new roman'; font-size: 9pt;"> </span><a style=" color: #ec6906; font-family:'times new roman'; font-size: 9pt;" href="https://www.dsmart.com.tr/">www.dsmart.com.tr</a></td>
<td width=319><span style=" font-family:'times new roman'; font-size: 9pt;"><b>t: 0212 373 78 00 / 02124135111 / f: 0212 380 24 97 <br>
</b>DOĞAN TV CENTER 100.Yıl Mahallesi, Melda Sok., No:1, 34204 Bağcılar</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br><br>
<span style=" font-family:'times new roman'; font-size: 9pt; color: #ffffff;">disclaimerdsm <br>
<br>
<span style=" font-size: 8pt; color: #c0c0c0;"><i>-- <br>
Gregory Sloop, Principal: Sloop Network & Computer Consulting<br>
Voice: 503.251.0452 x82<br>
EMail: </i></span></span><a style=" font-family:'times new roman'; font-size: 12pt;" href="mailto:gregs@sloop.net">gregs@sloop.net</a><br>
<a style=" font-family:'times new roman'; font-size: 12pt;" href="http://www.sloop.net">http://www.sloop.net</a><br>
<span style=" font-family:'times new roman'; font-size: 12pt; color: #c0c0c0;"><i>---</td>
</tr>
</table>
<br><br>
<span style=" font-family:'arial'; color: #c0c0c0;"><i>-- <br>
Gregory Sloop, Principal: Sloop Network & Computer Consulting<br>
Voice: 503.251.0452 x82<br>
EMail: </i></span><a style=" font-family:'arial';" href="mailto:gregs@sloop.net">gregs@sloop.net</a><br>
<a style=" font-family:'arial';" href="http://www.sloop.net">http://www.sloop.net</a><br>
<span style=" font-family:'arial'; color: #c0c0c0;"><i>---</body></html>