[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] INTERVAL in clientlaunch.cfg
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] INTERVAL in clientlaunch.cfg
- From: Jeff Newman <jeffnewman75 (at) gmail.com>
- Date: Thu, 19 Jan 2006 01:29:52 -0600
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=c1MxEXiKuz1XNlEMpVMIBhqcMTwACflBpPo+0z+zs+ScU47cxMLZsndVikCwnLIVbYPRy9aA7rJXgdzV0DZ/TOT5ph4TUOiSmaoQ2lp3o7p2Jb9v4Ctzm6Sn9QYTfjYDI3/QarCQ+9qh12L/c3clTtqgiw1986QYwh9YljWnQYU=
- References: <941506840601182033vb7f6e85m1395b58ffd052005@mail.gmail.com> <20060119062133.GC12229@hswn.dk>
Hi,
Well, Im getting data every second now so thats good.
I was trying to just get all the same data as netstat, but for some reason,
the rrd is
only populated by "echo". im guessing because in the output from netstat -s,
echo
is the only thing that has name: number (this is an AIX box BTW) so how
is hobbit doing it normally then for the rrd on the other side to work
correctly?
-Jeff
On 1/19/06, Henrik Stoerner <henrik (at) hswn.dk> wrote:
>
> On Wed, Jan 18, 2006 at 10:33:15PM -0600, Jeff Newman wrote:
>
> > Question about the INTERVAL setting in clientlaunch.cfg:
> >
> > Per the man page (for hobbitlaunch.cfg)
> >
> > The *INTERVAL* keyword defines how often this command is executed. {...}
> > Intervals can be specified in seconds (if you just put a number there),
> or
> > in minutes (5m), hours (2h), or days (1d).
> >
> > So I was trying to get netstat -s working every second.
> >
> > [hiflow_net]
> > ENVFILE /usr/local/hobbit/client/etc/hobbitclient.cfg
> > CMD /usr/local/hobbit/client/ext/hiflow_net
> > LOGFILE=/tmp/hilog
> > INTERVAL 1
>
> hobbitlaunch has a built-in safety catch, so you cannot run a
> task more often than once every 5-10 seconds. That's to prevent
> it from fork-bombing your system.
>
> If you really need that, use a wrapper around your script:
>
> #!/bin/sh
>
> while 1
> do
> /usr/local/hobbit/client/ext/hiflow_net
> sleep 1
> done
>
> and run the wrapper-script from hobbitlaunch (without any
> INTERVAL setting since it keeps running).
>
>
> Henrik
>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
>
>
>