Returning the state of an agregate service.
list Wayne Gemmell
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? Cheers Wayne
list Steve Holmes
If I'm understanding your situation, you have 3 scripts running on 3 different servers all reporting to the same service column (but on 3 different host lines?). You could have one master server do an rsh to each of the other servers which then would report back to the master server and then that script figures out how many of the client servers are ok and makes a decision about what to send to hobbit. Steve.
▸
On Jan 21, 2008 10:11 AM, Wayne <user-dbaa221d03d2@xymon.invalid> 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? Cheers Wayne
list Anna Jonna Armannsdottir
▸
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?
list Wayne Gemmell
On Monday 21 January 2008 22:36:00 Anna Jonna Armannsdottir wrote:
Is this what you are really asking for?
Thanks, thats exactly what I was looking for. Cheers Wayne