[smokeping-users] master/slave error
Peter Kristolaitis
alter3d at alter3d.ca
Wed Jan 7 21:54:38 CET 2009
20 pings every 30 seconds is extremely aggressive. I suspect that your
pollers are taking too long to complete, and are missing polling rounds.
Check your logs -- you should see something like "NOTE: smokeping took
$runtime seconds to complete 1 round of polling". If you're seeing that
message, you need to either reduce the number of pings or increase your
step (I use 20 pings every 180 seconds in my production instance).
Seth Lyons wrote:
> I can confirm that the slave RRDs are being updated. My current
> settings are for 20 pings every 30 seconds, and the process has been
> running for more than an hour...but still blank graphs.
>
>>>> Peter Kristolaitis <alter3d at alter3d.ca> 1/7/2009 3:36 PM >>>
> Are the slave RRD files getting updated? Check the last-modified
> timestamp.
>
> Note that there seems to be a significant 'lag' when using slaves -- the
> slave RRD files don't seem to get updated until the next cycle on the
> master, so you have to run it for at least 2 cycles to see changes happen.
>
>
>
> Seth Lyons wrote:
>> Thanks for your response. I set the permission accordingly, but I still
>> have the same problem. The .rrds and slave_cache files are being
>> created, but the graphs are still blank. I ran a debug on the slave and
>> everything went fine...it ended with "Sent data to Server. Server said
>> OK," and the pings showed the latency I was expecting.
>>
>> If I dump one of the .rrd files to xml and view it in an editor, it is
>> has a small amount of real data at the beginning, but it is mostly full
>> of NaNs.
>>
>>>>> Peter Kristolaitis <alter3d at alter3d.ca> 1/7/2009 2:25 PM >>>
>> The directory that holds your RRD files must be readable/writeable by
>> both the Smokeping process AND the webserver.
>>
>> e.g. If
>> - Your httpd runs as 'www'
>> - Smokeping runs as 'smokeping'
>> - In the Smokeping config, datadir = /var/www/smokeping/rrd
>>
>> Then,
>> - Create a new group called 'smokeping'
>> - Add both the 'www' and 'smokeping' users to that group
>> - chgrp smokeping /var/www/smokeping/rrd
>> - chmod -R 775 /var/www/smokeping/rrd
>>
>> That should clear it up.
>>
>> If that doesn't work, run one of your slaves with --debug and see if it
>> spits back an error of any kind.
>>
>>
>>
>> Seth Lyons wrote:
>>> Greetings!
>>>
>>> I am attempting to run a distributed smokeping setup in FreeBSD. I
>>> haven't been able to find in the docs information on what the
>>> appropriate file permissions (and ownership) should be for the .rrd and
>>> cache directories (/usr/local/var/smokeping).
>>>
>>> The problem I'm having is that the graphs of my slaves are blank. At
>>> first I was unable to write cache files to the above directory (and
>>> subdirectories), so I temporarily changed the perms to 777 just to see
>>> if that would fix the problem. Now the all of the files are being
>>> written, but the graphs are still blank.
>>>
>>> Please advise.
>>>
>>> Thanks.
>>>
>>> System info:
>>> FreeBSD 7.0
>>> smokeping-2.4.2
>>> rrdtool-1.3.3
>>>
--
Peter Kristolaitis
DBA / Code Monkey / General Geek
OpenPGP/GPG Key available from pgp.mit.edu
Key Fingerprint: 695D 7616 9903 6002 5756
D234 6E96 34B2 F974 14FE
More information about the smokeping-users
mailing list