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 <user-ce4a2c883f75@xymon.invalid> 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