[smokeping-users] Master/Slave Data Problem

Gregory Sloop gregs at sloop.net
Fri Mar 31 20:33:59 CEST 2017

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.]

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.

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. 

For both to work, [master and slave] then both have to have rights. [The web-server user/group and the smokeping user/group]

Determining the proper group/user(s) to give rights to, and how to do so is left as an exercise to the reader.

Sınıflandırma: S2
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?
Master Smokeping version is 2.006008
Slave Smokeping version is 2.006009 and I have working slaves on both version (2.006008 and 2.006009)
These Slaves are working on Raspberry Pi 3
First problem is data write problem;
# ls -l | grep Gayret
-rw-r--r-- 1 smokeping www-data 2986808         Mar 31 10:48 garanti~Smokeping-Gayrettepe.rrd
-rw-r--r-- 1 www-data  www-data     179              Mar 31 11:17 garanti.Smokeping-Gayrettepe.slave_cache
-rw-r--r-- 1 smokeping www-data 2986808         Mar 31 10:48 hurriyet~Smokeping-Gayrettepe.rrd
-rw-r--r-- 1 www-data  www-data     179              Mar 31 11:17 hurriyet.Smokeping-Gayrettepe.slave_cache
-rw-r--r-- 1 smokeping www-data 2986808         Mar 31 10:48 superonline~Smokeping-Gayrettepe.rrd
-rw-r--r-- 1 www-data  www-data     173              Mar 31 11:17 superonline.Smokeping-Gayrettepe.slave_cache
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
Second problem is similiar;
Again, I can see the slave data in master server it is writing on it but this time no data in the graph.
# ls -l | grep Trabzon
-rw-r--r-- 1 smokeping www-data 2986808         Mar 31 11:29 garanti~Smokeping-Trabzon.rrd
-rw-r--r-- 1 www-data  www-data     345              Mar 31 11:29 garanti.Smokeping-Trabzon.slave_cache
-rw-r--r-- 1 smokeping www-data 2986808         Mar 31 11:29 hurriyet~Smokeping-Trabzon.rrd
-rw-r--r-- 1 www-data  www-data     343              Mar 31 11:29 hurriyet.Smokeping-Trabzon.slave_cache
-rw-r--r-- 1 smokeping www-data 2986808         Mar 31 11:29 superonline~Smokeping-Trabzon.rrd
-rw-r--r-- 1 www-data  www-data     343              Mar 31 11:29 superonline.Smokeping-Trabzon.slave_cache
Best Regards
Untitled Document 
Türker Karatepe
Sistem ve Network / Teknik Operasyon Uzmanı 
System and Network Department / Technical Operations Administrator 
Turker.Karatepe at dsmart.com.tr    www.dsmart.com.tr
t: 0212 373 78 00 / 02124135111 / f: 0212 380 24 97 
DOĞAN TV CENTER 100.Yıl Mahallesi, Melda Sok., No:1, 34204 Bağcılar

Gregory Sloop, Principal: Sloop Network & Computer Consulting
Voice: 503.251.0452 x82
EMail: gregs at sloop.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20170331/149524d4/attachment.html>

More information about the smokeping-users mailing list