[hobbit] Returning the state of an agregate service.
Anna Jonna Armannsdottir
annaj at hi.is
Mon Jan 21 21:36:00 CET 2008
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?
More information about the Xymon
mailing list