Introduction

Whenever you create an Alert Condition (based on SMTP Mail, Sametime Chat Message, etc.) you can specify your own specific “Run this action when“ formula.
This is not complex at all because you have access to all possible Expressions via the Expression Templates.

This Article explains you in simple steps how you can configure such actions in two real case examples.

Example

Configuration

Before we start you need to understand first the AND or OR expression rule:

AND or OR ?

Two pipe symbols “ || “ are indicating a OR rule whereas  “ && “ are indicating an AND rule.

 

Example 1: Domino Statistic Sensor

The first action can be used whenever you have a Domino Statistic Sensor active. Please note that you need to have Platform Statistics enabled as well.

-Open your existing Domino Statistic Sensor and click on the Actions Tab.

-Drag&Drop the Action type you want to use into the Monitoring Configuration window

-On Conditions,  select “Run this action when …” and paste the following lines

Copy/paste: 
${result.statistics['Update.PendingList']>200 || result.statistics['Platform.Memory.RAM.PctUtil']>80 || result.statistics['Platform.Process.ActiveDomino.TotalCpuUtil']>50}

You can select the expression by using the Expr. Templates Icon. 

 

Use the filter to find the Expression quickly:

 

 

-Click on Next to specify your Notification Text:

Copy/paste: 

One of the following Values is above the threshold:

Update.PendingList (>200) = ${result.statistics['Update.PendingList']}
Memory Utilization (>80%) = ${result.statistics['Platform.Memory.RAM.PctUtil']}
CPU Utilization (>50%) = ${result.statistics['Platform.Process.ActiveDomino.TotalCpuUtil']}


What is the result of this Example ?

Whenever the Update.Pendinglist is above 200 OR the Memory Util. is above 80% OR if the CPU Util. is above 50%, the action gets triggered by sending a mail message with the above configured text.



Example 2: Domino Cluster Analysis Sensor

The second example can be used whenever you have a Domino Cluster Analysis Sensor active.

-Open your Sensor and click on the Actions Tab.

-Drag&Drop the Action type you want to use

-On Conditions,  select “Run this action when …” and paste the following lines

Copy/paste:

${result.details['greenlight.ca.cldbdir.missing_cldbdir_entries']>0 || result.details['greenlight.ca.replicas.acl_inconsistent']>0 || result.details['greenlight.ca.replicas.doc_count_inconsistent']>0 || result.details['greenlight.ca.replicas.inexistent']>0}

 

-Click on Next to specify your Notification Text:

Copy/paste:

How many......
-DB(s) are missing: ${result.details['greenlight.ca.cldbdir.missing_cldbdir_entries']}
-ACL(s) are inconsistent: ${result.details['greenlight.ca.replicas.acl_inconsistent']}
-DB(s) have a different document count: ${result.details['greenlight.ca.replicas.doc_count_inconsistent']}
-Replica(s) are missing: ${result.details['greenlight.ca.replicas.inexistent']}


What is the result of this second Example ?

Whenever DBs are missings on a cluster OR if the document count in databases differs between the nodes OR if the ACL entries are inconsistent, the notification gets triggered.


Conclusion

Those simple examples demonstrates the power of GreenLight where you as an administrator can specify in which specific situation you want to get an alarm / notification (not only if the server is up/down or if there are pending e-mails).

Due to the fact that GreenLight can make use of all available Domino Statistics +  GreenLight internal statistics there are hundreds of possible scenarios where you can combine them together so that it fits for your needs.