[smokeping-users] nomasterpoll blocks results from slaves
David Behr
david at zol.co.zw
Thu Mar 27 18:10:39 CET 2008
Hi Niko
I am trying the trunk. but got a few issues:
On the slaves I get:
[root at rs6 ~]# /usr/local/smokeping/bin/smokeping --slave-name=rs6
--master-url=http://XXX/cgi-bin/smokeping.cgi --cache-dir=/tmp
--shared-secret=/usr/local/smokeping/etc/secret.txt
WARNING: I expected protocol 2 and got ? from slave rs6. I will skip this.
ERROR: we did not get config form the master. Maybe we are not configured as
a slave for any of the targets on the master ?
And on the master on starting I get:
Mar 27 18:47:22 smokeping smokeping[29443]: Use of uninitialized value in
numeric eq (==) at /usr/local/smokeping/lib/Smokeping.pm line 3983.
Mar 27 18:47:22 smokeping smokeping[29443]: No targets defined for probe
FPingBig, skipping.
The line is:
if ($probes->{$p}->target_count == 0) {
Thanks
David
-----Original Message-----
From: smokeping-users-bounces at lists.oetiker.ch
[mailto:smokeping-users-bounces at lists.oetiker.ch] On Behalf Of Niko Tyni
Sent: Thursday, March 27, 2008 2:11 AM
To: smokeping-users at lists.oetiker.ch
Subject: Re: [smokeping-users] nomasterpoll blocks results from slaves
On Wed, Mar 26, 2008 at 07:33:38PM -0400, David Behr wrote:
> A curious problem. I have some probes that are set to only run on slaves.
> E.g. myProbe might be set to run on slave1 and slave2. I used
> nomasterpoll=yes on the master to block the master from trying to run the
> probe.
> All appears to work fine. The slaves get the config, they run the probes,
> they generate results and upload to the master. The data sits in the
> smokeping directory in the slave_cache files. BUT the master process
> ignores the data - i.e. it just sits in the slave_cache file and keeps
> growing.
> Is there a better way to make this work? I have a feeling the problem is
if
> the probe is "skipped" on the master, then that "probe process" never
gets
> to read in the slave data. Is this by design?
No, I think it's a bug, and I think I fixed it in the development
version. You might want to try the snapshot at
http://oss.oetiker.ch/smokeping/pub/trunk/
If you do, please report back.
Cheers,
--
Niko
_______________________________________________
smokeping-users mailing list
smokeping-users at lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
More information about the smokeping-users
mailing list