[hobbit] bbcmd on clients does not set MACHINE and MACHINEDOTS
Henrik Stoerner
henrik at hswn.dk
Sun Jul 9 17:14:49 CEST 2006
On Wed, Jul 05, 2006 at 02:18:00PM +0200, Frédéric Mangeant wrote:
> Dominique Frise a écrit :
> >Hi,
> >
> >We noticed a problem when using bbcmd on clients for testing extension
> >scripts: the variables exported in runclient.sh are not set.
> >
> >At least MACHINE and MACHINEDOTS should be set for beeing able to test
> >any client-side extension script (Big Brother style or Hobbit style).
>
> I totally agree with Dominique : I'm currently "upgrading" Big Brother
> clients to Hobbit 4.1.2p1 clients, and some of my external scripts are
> run from other scripts (post-backup ones, for example).
>
> Would it be possible to modify bbcmd to export MACHINE, MACHINEDOTS,
> BBOSTYPE and HOBBITCLIENTHOME, so we can run external scripts outside of
> Hobbit ?
Done now. HOBBITCLIENTHOME is decided based on the location of the
environment file that is loaded, which should give the right result
in any normal setup.
Regards,
Henrik
More information about the Xymon
mailing list