Is it possible for the emailgtw probe or NAS to send an email to verify probe is operational?

Document ID : KB000110934
Last Modified Date : 13/08/2018
Show Technical Document Details
Issue:
Is there a way to get the CA UIM email gateway / NAS to send an email on a regular basis ( say every 2 hours ) to verify that alert emails are operational ? 

If this is not possible is there a recommended way to notify should the email probes fail or go offline ?
Resolution:
In this scenario the customer would like to monitor if the emailgtw probe is still working as expected and sending alarms via email.

Firstly, I thought about using the processes probe however, that would not cover you if the emailgtw probe was running but not sending alarms via email (for whatever reason).

I created a new file on my primary hub server which contained the word "OK". Created a logmon profile to run every 5 minutes (this interval can be changed), to match on the "OK" in that file. This then creates an alarm on every match and will be sent out via email depending on your emailgtw / nas AO configuration. 

1. Created a new folder location with a text file containing the word “OK” on my primary hub server: 

User-added image

2. Deployed the logmon probe to my Primary Hub Robot. 

3. Create a new test profile pointing to the file shown in Step 1: 

User-added image

Note: As a test I set the check interval to 1 min, you can change this to the desired time.

4. Under the logmon profile in question, create a new Watcher Rule: 

User-added image
 
Match expression used: /.*OK.*/

“Message to Send on Match” will be the subject, you can change this to whatever is required. 

Sample Alarm raised from this Profile: 

User-added image

Note: You may also be able to achieve this via a NAS Auto Operator Rule or a custom lua script to query the hub, robot and probe status.