[smokeping-users] slave child probes never die
David Behr
david at zol.co.zw
Thu Mar 27 00:18:08 CET 2008
Hi
The probe child processes on my slaves keep multiplying after a master
change. Over time they grow to hundreds of processes.
It appears that each slave probe that gets a new config, spawns a whole new
set of children - but the old ones never go away.
Here are the logs:
Mar 26 17:59:24 rs5 smokeping[16662]: Smokeping version 2.003003
successfully launched.
Mar 26 17:59:24 rs5 smokeping[16662]: Entering multiprocess mode.
Mar 26 17:59:24 rs5 smokeping[16662]: No targets defined for probe FPingBig,
skipping.
Mar 26 17:59:24 rs5 smokeping[16662]: No targets defined for probe
FPingZOLspots, skipping.
Mar 26 17:59:24 rs5 smokeping[16662]: No targets defined for probe
FPingIntl, skipping.
Mar 26 17:59:24 rs5 smokeping[16663]: EchoPingSmtp: probing 4 targets with
step 300 s and offset 57 s.
Mar 26 17:59:24 rs5 smokeping[16662]: Child process 16663 started for probe
EchoPingSmtp.
Mar 26 17:59:24 rs5 smokeping[16664]: mySQL: probing 1 targets with step 300
s and offset 109 s.
Mar 26 17:59:24 rs5 smokeping[16662]: Child process 16664 started for probe
mySQL.
Mar 26 17:59:24 rs5 smokeping[16665]: FPingNormal: probing 6 targets with
step 300 s and offset 121 s.
Mar 26 17:59:24 rs5 smokeping[16662]: Child process 16665 started for probe
FPingNormal.
Mar 26 17:59:24 rs5 smokeping[16662]: All probe processes started
successfully.
Now ps shows:
root 16662 0.0 0.5 19176 11796 ? Ss 17:59 0:00 /usr/bin/perl
-w /usr/local/smokeping/bin/smokeping --slave-name=rs5
--master-url=http://XXX/cgi-bin/smokeping.cgi --cache-dir=/tmp
--shared-secret=/usr/local/smokeping/etc/secret.txt
root 16663 0.0 0.5 19176 11624 ? S 17:59 0:00
/usr/local/smokeping/bin/smokeping [EchoPingSmtp]
root 16664 0.0 0.5 19176 11624 ? S 17:59 0:00
/usr/local/smokeping/bin/smokeping [mySQL]
root 16665 0.0 0.5 19176 11624 ? S 17:59 0:00
/usr/local/smokeping/bin/smokeping [FPingNormal]
All is ok, now I change the master config and slave gives:
Mar 26 18:06:12 rs5 smokeping[16663]: Sent data to Server and got new config
in response.
Mar 26 18:06:12 rs5 smokeping[16663]: server has new config for me ...
HUPing myself
Mar 26 18:06:14 rs5 smokeping[16663]: Entering multiprocess mode.
Mar 26 18:06:14 rs5 smokeping[16663]: No targets defined for probe FPingBig,
skipping.
Mar 26 18:06:14 rs5 smokeping[16663]: No targets defined for probe
FPingZOLspots, skipping.
Mar 26 18:06:14 rs5 smokeping[16663]: No targets defined for probe
FPingIntl, skipping.
Mar 26 18:06:14 rs5 smokeping[17161]: EchoPingSmtp: probing 4 targets with
step 300 s and offset 146 s.
Mar 26 18:06:14 rs5 smokeping[16663]: Child process 17161 started for probe
EchoPingSmtp.
Mar 26 18:06:14 rs5 smokeping[17162]: mySQL: probing 1 targets with step 300
s and offset 4 s.
Mar 26 18:06:14 rs5 smokeping[16663]: Child process 17162 started for probe
mySQL.
Mar 26 18:06:14 rs5 smokeping[17163]: FPingNormal: probing 6 targets with
step 300 s and offset 210 s.
Mar 26 18:06:14 rs5 smokeping[16663]: Child process 17163 started for probe
FPingNormal.
Mar 26 18:06:14 rs5 smokeping[16663]: All probe processes started
successfully.
The child probe called "EchoPingSmtp " now starts a new process (17161,
17162 and 17163) for all the probes. but look at ps now:
root 16662 0.0 0.5 19176 11796 ? Ss 17:59 0:00 /usr/bin/perl
-w /usr/local/smokeping/bin/smokeping --slave-name=rs5
--master-url=http://XXX/cgi-bin/smokeping.cgi --cache-dir=/tmp
--shared-secret=/usr/local/smokeping/etc/secret.txt
root 16663 0.0 0.6 19308 12680 ? S 17:59 0:00
/usr/local/smokeping/bin/smokeping
root 16664 0.0 0.5 19176 12136 ? S 17:59 0:00
/usr/local/smokeping/bin/smokeping [mySQL]
root 16665 0.0 0.5 19176 12196 ? S 17:59 0:00
/usr/local/smokeping/bin/smokeping [FPingNormal]
root 17161 0.0 0.5 19308 11836 ? S 18:06 0:00
/usr/local/smokeping/bin/smokeping [EchoPingSmtp]
root 17162 0.0 0.5 19308 11836 ? S 18:06 0:00
/usr/local/smokeping/bin/smokeping [mySQL]
root 17163 0.0 0.5 19308 11836 ? S 18:06 0:00
/usr/local/smokeping/bin/smokeping [FPingNormal]
The old children are still hanging around.
After just 2 master changes I now 25 smokeping processes running!
Am I doing something silly or could this be a bug?
Thanks
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20080326/255214db/attachment.html
More information about the smokeping-users
mailing list