[hobbit] hobbitdboard arguments
Henrik Stoerner
henrik at hswn.dk
Mon Apr 23 13:52:32 CEST 2007
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
More information about the Xymon
mailing list