Xymon Mailing List Archive search

Checking for mutually exclusive processes

list Thomas R. Brand
Thu, 11 Jun 2009 11:49:33 -0400
Message-Id: <user-ddfe383718df@xymon.invalid>

Beautiful....

Too simple!

Thanks!
-----Original Message-----
From: Daniel Hartmeier [mailto:user-30a162321ef9@xymon.invalid]
Sent: Thursday, June 11, 2009 9:02 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Checking for mutually exclusive processes

On Thu, Jun 11, 2009 at 08:50:02AM -0400, Brand, Thomas R. wrote:
Given ProcessA and ProcessB,
 If ProcessA is running AND ProcessB is running
 then YELLOW
 else
     if ProcessA is NOT running AND ProcessB is NOT running
     then YELLOW
     else GREEN


 ProcessA and ProcessB are mutually exclusive; one OR the other must
be running, but not BOTH.
PROC %(ProcessA|ProcessB) 1 1 yellow

Daniel