Xymon Mailing List Archive search

hobbitdboard arguments

list Henrik Størner
Mon, 23 Apr 2007 13:52:32 +0200
Message-Id: <user-3bfaae7ce679@xymon.invalid>

On Mon, Apr 23, 2007 at 01:38:41PM +0200, Torsten Richter wrote:
What I'm trying to do is to get a list on which servers a certain test is running.
I do this by firing : ./bb 127.0.0.1 "hobbitdboard test=TEST"|awk -F\| '{print $1}' 
and get a list of all machines running TEST.
But not only thes machines but also the ones that are running test or myTEST or 
TestNEW which I don't want to be displayed.
The "test=..." is used as a regular expression. So to get only those
that have the exact TEST status, use

 ./bb 127.0.0.1 'hobbitdboard test=(?-i)^TEST$ fields=hostname'

The "(?-i)" makes the match case-sensitive, and the "^...$" anchors it.


Regards,
Henrik