Xymon Mailing List Archive search

External scripts - template or how-to ?

4 messages in this thread

list Torben Aagaard · Tue, 25 Oct 2005 10:26:46 +0200 ·
It's me again :)
 Just installed my first hobbit server - and now I can't wait to stuff more
and more tests into the box.
 Hobbit does come with a lot of predefined tests, but I've come to the point
where I'd like to create my own external test.
 Is there a skeleton or template for ext scripts somewhere ? Or perhaps a
nice HOW-TO ?
 Poking around on the web gives me some ideas ( how to launch, use
bbhostgrep, ect. ) - but I'm sure some of you guys have allready done this.
 For instance, how do you determine if tests should be done on the
ip-addresse or the host name ?
 Thanks for your time ...
  /Torben
list Henrik Størner · Tue, 25 Oct 2005 10:46:22 +0200 ·
quoted from Torben Aagaard
On Tue, Oct 25, 2005 at 10:26:46AM +0200, Torben Aagaard wrote:
It's me again :)
 Just installed my first hobbit server - and now I can't wait to stuff more
and more tests into the box.
 Hobbit does come with a lot of predefined tests, but I've come to the point
where I'd like to create my own external test.
 Is there a skeleton or template for ext scripts somewhere ? Or perhaps a
nice HOW-TO ?
I hate to tell people to Read The Fine Manual, but it's there:
    http://www.hswn.dk/hobbit/help/hobbit-tips.html#scripts

Also included in your own Hobbit server setup, under the "Help->Tips..."
menu item.


Henrik
list Torben Aagaard · Tue, 25 Oct 2005 11:02:43 +0200 ·
quoted from Henrik Størner
On 10/25/05, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:

I hate to tell people to Read The Fine Manual, but it's there:
http://www.hswn.dk/hobbit/help/hobbit-tips.html#scripts
 Yes - but these fine examples do not take the "testip" tag into account.
 So, basically I need to test for the presence of "testip" to determine if
the test should be run with $1 or $2 ?
 Or am I totally missing the point here ?
 Since I'm new to Hobbit, I don't know what else I'm missing :)
 Perhaps there is a more complete example out there ?
 Thanks again
 /Torben
list Henrik Størner · Tue, 25 Oct 2005 12:22:17 +0200 ·
quoted from Torben Aagaard
On Tue, Oct 25, 2005 at 11:02:43AM +0200, Torben Aagaard wrote:
On 10/25/05, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:

I hate to tell people to Read The Fine Manual, but it's there:
http://www.hswn.dk/hobbit/help/hobbit-tips.html#scripts
 Yes - but these fine examples do not take the "testip" tag into account.
 So, basically I need to test for the presence of "testip" to determine if
the test should be run with $1 or $2 ?
bbhostgrep provides the "testip" tag from the bb-hosts file also, so
you can go through the $1 $2 etc. and see if there's a "testip"
keyword among them.


Regards,
Henrik