Xymon Mailing List Archive search

Returning the state of an agregate service.

list Anna Jonna Armannsdottir
Mon, 21 Jan 2008 20:36:00 +0000
Message-Id: <1200947761.5865.4.camel@localhost>

On mán, 2008-01-21 at 17:11 +0200, Wayne wrote:
Hi all

I have 3 tests monitoring in one column. I want to have an AND
condition where all the tests have to be true in order for the service to revert to
green. At the moment the one server fails, I return a red, the next service
works and the whole column gets returned to green. Is there any way to implement
this without makeing 3 seperate columns?
Hi Wayne, maybe i misunderstand you, but have you tried to put this in
bbcombotest.cfg ? Lets say it is the http service running on hosta.com hostb.com and hostc.com: 
hostwayne.http = ( hosta.com.http && hostb.com.http && hostc.com.http )

in bb-hosts you would put a line like this:
0.0.0.0 hostwayne # noconn 
If you only want the status the above will do fine. If you also want the graphs to show the sum of the services, you could try something like this: 
hostwayne.http = ( hosta.com.http + hostb.com.http + hostc.com.http ) &&
( ( hosta.com.http == 1) && (hostb.com.http == 1 ) && (hostc.com.http ==
1) )

Is this what you are really asking for? 
-- 
Kær kveðja, Anna Jonna Ármannsdóttir,   %&   A: Because people read from top to bottom.
Unix Kerfisstjórnun, Reiknistofnun HÍ   %&   Q: Why is top posting bad?