Problem with triggering an alert via Relevance

(imported topic written by SystemAdmin)

Hi,

I’ve got two relays in my environment and want to trigger an alert (via Email), if the BESRelay Service is not running on one or both relays.

I used the following settings:

Schedule ID: 16

Creator: Christian Fritsch

Start Time: Fri, Oct 5, 2012 at 3:44:00 PM

Expire Time: None

Next Scheduled Time: Fri, Oct 5, 2012 at 4:06:00 PM

Activity Trigger:

Generate report every 1 minute

Generate report when relevance evaluates to true

Relevance: exists (bes computers whose (relay server flag of it = true) AND( exists services whose((service name of it as lowercase = “BESRelay” as lowercase ) AND (state of it= “Stopped”)) ))

Include trigger information in report

Is there somewhere a fault?

The Email settings are correct, other Reports are send normally.

Another report triggered by the following relevance (found somewhere here in the forum) is send, if the Relay is offline:

exists (bes computers whose ( (now - last report time of it) > (“00:20:00” as time interval) and (relay server flag of it = true)))

I am quite unexperienced in relevance language right now, can you probably help me?

Thank you,

Christian