[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xymon] depends-like test for processes
- To: xymon (at) xymon.com
- Subject: Re: [xymon] depends-like test for processes
- From: Vernon Everett <everett.vernon (at) gmail.com>
- Date: Tue, 19 Oct 2010 09:59:58 +0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=IskrM7iqtn5aijw4P0QdBN3N4k/YtrAYXXERJizla+A=; b=nb5tzoGLyJl+0/3aOb+QMuRvXps+qEYqReMW1jqAt8LLM+HCslxxTeuB1dJgKDpmXY MsLWxzoL95LrGeXt4YXI5v19O7SCEtX1FUzikXppbqB7OmeEWDo7k646H1H3FoMVCbZB XWQWFcsjHsmVSgVkWYAa9N2y0NyyWeG5cIFFo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=VEJagozXVVRGwbSdnXs2/Kd+h1eXFCcgtPPLo8VeKn+IscxVgimcE2b6gxcKknX/aj ZGCAhaQ53S7nUDdF3IDPZT11VonjhKI2JnxgrV6wQNl21RAMa8DQRdFb4vyfq9OwtVkl JMTzTnjSAMyVUxoNUen03v46mbCj4wycEeU+Q=
- References: <AANLkTinOENy6z3YNuxqCF=ZKkjBbDxKXiaPGYtZK6orm (at) mail.gmail.com>
Hi Colin
We did something similar at previous client we know too well. :-)
It's called a combo-test.
Look for "Combination Tests" under the man pages.
What you need to do is define a new test. Call it "Cluster" for lack of a
better name.
You then define servername.Cluster=(insert logical arguments here) into
bbcombotest.cfg
This will generate a new test which is dependant on the logic you define.
The server name doesn't even need to exist. So you can define your combo
test as cluster.app=(logic)
This will send the results of a new test "app" as if it came from a new
server called "cluster"
You then add cluster to bb-hosts as follows
0.0.0.0 Cluster # noconn
Very powerful, and the man page does explain it fairly well.
Let me know how you go.
Cheers
Vernon
On Tue, Oct 19, 2010 at 9:42 AM, Colin Coe <colin.coe (at) gmail.com> wrote:
> Hi all
>
> I'm trying to do a depends-like test for processes. What I'd like is
> ensure that process foo is running on one of four hosts, if the
> process is running on more than one host or on none, a red flag should
> be raised.
>
> Has anyone done this previously?
>
> Thanks
>
> CC
>
> --
> RHCE#805007969328369
>
> To unsubscribe from the xymon list, send an e-mail to
> xymon-unsubscribe (at) xymon.com
>
>
>