[hobbit] hobbitfetch replacement with ssh
Haertig, David F (Dave)
haertig at avaya.com
Sat Jun 23 22:13:27 CEST 2007
Using bbcmd to run hobbitclient.sh was a good idea, but presented some
problems of it's own. No problem getting it to set the environment
though.
For one, invoking the client in this manner leaves lots of iostatcpu,
iostatdisk, and vmstat files laying around in the tmp directory. I
guess it must be hobbitlaunch that cleans these up normally.
Second, I could not trick logfetch into grabbing custom logfiles. I
tried putting the appropriate entries in ..../tmp/logfetch.XXX.cfg on
the client end, but logfetch ignored these. This file is normally
overwritten each time the client contacts the host, so normally you
wouldn't edit it. But in my case the client is not connecting to the
host so I thought it might be "safe" to manually create this file, but
alas logfetch appears to ignore it.
I may well run into this logfetch gotcha no matter how I invoke
hobbitclient.sh If the client cannot talk to the Hobbit server, as in
my DMZ case, is it even possible to configure logfetch to grab custom
logfiles? The logfetch config is normally downloaded from the server.
I don't see any way (yet) to configure it locally on the client.
Thanks
-----Original Message-----
From: Haertig, David F (Dave) [mailto:haertig at avaya.com]
Sent: Saturday, June 23, 2007 12:20 PM
To: hobbit at hswn.dk
Subject: RE: [hobbit] hobbitfetch replacement with ssh
Cool! Thanks for the tip.
I was a bit naive in thinking hobbitlaunch might just pass ENVFILE and
LOGFILE to CMD as env variables. I had just reviewed hobbitlaunch.c and
environ.c and found that hobbitlaunch redirects stdout/stderr to LOGFILE
before calling CMD. And also the ENVFILE processing is a little more
complex due to the AREA stuff (which implies hobbitclient.cfg is not a
sourceable env file, as it almost appears to be in it's default state).
I'll look at bbcmd. I was going to hack my own way through this, but if
there's already an existing path, I'm all for the easy way!
Thanks
-----Original Message-----
From: Stef Coene [mailto:stef.coene at docum.org]
Sent: Saturday, June 23, 2007 11:55 AM
To: hobbit at hswn.dk
Subject: Re: [hobbit] hobbitfetch replacement with ssh
On Saturday 23 June 2007, Haertig, David F (Dave) wrote:
> Good idea! I just need to see how hobbitlaunch normally passes
> ENVFILE and LOGFILE to CMD (hobbit-client.sh) when it normally envokes
> CMD. So I can do that when I invoke hobbit-cient.sh manually via ssh.
> Probably just as simple env variables. I'll check the source code for
> hobbitlaunch, or just "guess-and-test".
You can use bbcmd. So "bbcmd hobbitclient.sh". bbcmd will set the
needed environment variabels. You probably have to specify the full
path to hobbitclient.sh.
Stef
To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe at hswn.dk
More information about the Xymon
mailing list