[smokeping-users] Re: Multiple smokeping daemons failure

srj at netprl.com srj at netprl.com
Tue Oct 3 19:43:20 MEST 2006


Thanks Kennedy,

This is a good idea, but unfortunately is not a piddir is not a command
line option, so one can't indepenently specify a separate piddir for each
process.

I have run multiple smokeping processes on the same server (using
v1.31) in a way that  makes use of the piddir config file option. But this
approach requires creating and maintaining multiple installation dirs
which is unnecesary if the method of spawning multiple smokeping processes
from a single  installation using filters works.

It did work just fine in v1.34, but does not work in v2.0.9.

To fix this, I looked at the Smokeping.pm code for the daemonize_me()
subroutine in v2.0.9 and compared it with v1.34. The v1.34 code includes
the process ID "$$" in the file name. The v2.0.9 code does not, so I
changed the v2.0.9 code, and can now spawn multiple smokeping processes
from a single installtion dir.

Please see the message the previous message on this thread for
the details, because what this does is to re-introduce a bug.
It disables checking for pre-existing smokeping processes.  So, if
the code is modified, a script must be used to kill pre-existing
processes when restarting.

Steve
srj at netprl.com


On Tue, 3 Oct 2006 hkclark at gmail.com wrote:

> On 10/3/06, srj at netprl.com <srj at netprl.com> wrote:
> >
> > Hi,
> > We've been running parallel smokeping daemon instances, based on filters
> > and a single config file.
> >
> > After an upgrade we now get error messages and only the first daemon
> > starts.
> >
> > I'm wondering if support for multiple instances using filters got dropped?
> > If not, please point out what I need to do to gain back this very
> > useful function.
> >
>
> Hi Steve,
>
> I don't recall the details of 1.X, but 2.X uses the "piddir" directive
> in the config file to create a "smokeping.pid" file.  It then uses
> that to check for an already-running instance in the code that creates
> a daemon.  I haven't tried it, but I would assume you could have
> multiple instances running if each has a different "piddir".
>
> Regards,
> Kennedy
>

--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/smokeping-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the smokeping-users mailing list