Xymon Mailing List Archive search

Ext tests/scripts

list Adam Goryachev
Tue, 15 Feb 2005 09:32:02 +1100
Message-Id: <1108420322.27128.3.camel@workhorse>

On Mon, 2005-02-14 at 22:59 +0100, Henrik Stoerner wrote:
On Mon, Feb 14, 2005 at 04:15:00PM -0500, user-fd47fec4b039@xymon.invalid wrote:
We have several custom tests we use from our BB server to check
applications. In BB it was possible to add these into the /ext directory and
then call them from /etc/bb-bbexttab. Is there a provision for this type of
thing in Hobbit?
Set them up as tasks in hobbitlaunch.cfg .

NB: The environment variables provided by Hobbit to a script is not 
quite the same as that which BB provides. Some BB extensions use
environment variables for some commands, e.g $GREP instead of grep.
Hobbit does not set this up by default, so you should check what 
your scripts expect, and if necessary add the extra environment
variables to hobbitserver.cfg (or change the script).
Just wondering if there is a reason for this?

Personally, whenever writing ext scripts, I always made an effort to
call all the various utilities like sed/grep/etc as ${SED}/${GREP}/etc.
This, I figured saved everyone from editing the ext script for each
platform they needed to run it on (assuming it is either being shared on
deadcat, or else being used across multiple OS's.... Even different
releases of linux use different paths.

It would seem a shame to need to make all these scripts *more*
specific...

PS, I haven't yet had a chance to install hobbit, so perhaps I am
missing something really obvious... It sounds great, and once it is
released, I'm sure I will install and use it.

Regards,
Adam

-- 
 -- 
Adam Goryachev
Website Managers
Ph:  +XX X XXXX XXXX                        user-eaec2ffb4cbc@xymon.invalid
Fax: +XX X XXXX XXXX                        www.websitemanagers.com.au