[smokeping-users] Re: How can I make smokeping re-read its configuration?

Tobias Oetiker oetiker at ee.ethz.ch
Tue May 17 17:10:55 MEST 2005


Today Niko Tyni wrote:

> On Mon, May 16, 2005 at 05:44:24PM +0900, Taisuke Yamada wrote:
>
> > Hi. I'm now trying to use smokeping as external probe module
> > for custom network monitoring system, and looking for a way
> > to make smokeping re-read its configuration without affecting
> > ongoing probe session.
> > I first thought it'll handle SIGUP as a trigger like other
> > UNIX daemons, but it seems not. I can't just do "smokeping --restart"
> > as that will interrupt ongoing probe session, losing data.
> > I considered running it from cron, but then, smokeping won't
> > run probes in parallel.
> >
> > Is there any good way to accomplish this?
>
> Hi,
>
> one thing to try would be to run several smokepings from cron with each
> having just one probe to run.
>
> You'd have to use different configs for each probe - the 2.0 branch
> supports a '--config=X' option.
>
> A 'soft-restart' option would indeed be nice. I'll probably look at
> implementing something like that after we get 2.0 out.

there is some code in smokeping which checks the age of the config
file and when it finds that the age has changed it re-reads the
config file ... this may not work completely ... especially it
should be made more robust in the sense that it would 'try' to read
it and ignore it if reading fails and complain instead

samba does something like this I think

tobi
>
> Cheers,
>

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker @ ISG.EE, ETL F24.2, ETH, CH-8092 Zurich
 / // _ \/ _ \/ /  System Manager, Time Lord, Coder, Designer, Coach
/_/ \.__/_.__/_/   http://people.ee.ethz.ch/oetiker +41(0)44-632-5286

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