Security Compliance
Create a rule notification when a SEM agent goes offline
This article describes how to create a rule that sends an email alert when a SEM agent goes offline.
First published date
Last published date
Overview
This article describes how to create a rule that sends an email alert when a Security Event Manager (formerly Log & Event Manager) agent goes offline.
An agent could go offline because the service stopped, the server was shutdown, or the network experienced an outage. If the network experienced an outage (complete disconnection), the agent offline notification will require a timeout period before the notification is sent.
An agent online notification can be configured, but it is less common. If the agent cannot send data to SEM, the agent will queue the log data under the agent "ContegoSPOP" directory. Once the agent is able to connect, all of the queued data will be sent to SEM.
Product section
Cause
Resolution
Create/add a new rule for the event called Internal Agent Offline.
There are two ways to accomplish this.
Simple Rule configuration:
Note: This procedure assumes you have previously set up some rules, and have email notifications enabled.
SEM HTML5 console
- In the SEM Events console, click the Rules tab, and then click Create new rule.
- In the Rule values search box, enter agent.
- Drag InternalAgentOffline into the rules builder to the right.
- Drag InternalAgentOnline into the rules builder under InternalAgentOffline.
- Next to InternalAgentOnline, click occurred, and then change it to did not occur.
- Drag InternalAgentOffline.DetectionIP into the rules builder, and then drag InternalAgentOnline.DetectionIP next to it as shown below.
- Click Next to assign actions and complete the rule configuration.
- Enter a descriptive name for the rule.
- Ensure the rule is set to Enable rule after saving.
- Under Actions, click Add new action.
- Type email, select Send Email Message, and then click Next.
- Select your email template and recipients, and then click Add.
- Review your rule settings, and then click Create.
- On the SEM console menu bar, navigate to Build > Rules.
- In the top left under Refine Results, enter agent offline.
- Under the Templates on the lower right, click the gear icon next to Template: Agent Offline - Server, and then select Clone.
- To enable the rule, select the Enable check box next to the description.
- In the Actions box, select one or more email recipients from the Users drop-down list, and then click Save on the bottom right.
- To perform a global save of all changed rules, click Activate Rules on the top right (also activates the rule).
A more automated method for rule construction:
- On the SEM console menu bar, navigate to Build > Rules.
- Click Add Rule.
- Click the IT Operations tab, select the General Best Practice check box, and then click Next.
- Configure email settings and verify that it is working.
- Select one or more email recipients, and then click Finish.
- In the search bar on the left pane, type agent.
- Select InternalAgentOffline and drag it to the Correlations box.
- Leave the Correlation Time as it is.
- In the Actions box, select Send Email Message and drag the InternalAgentOffline events under the $EventInfo field.
- Do the same for Detection Time.

- Click Save.
- Click Activate Rules in the top right.
In case you do want the Agent Online notification:
- On the SEM console menu bar, navigate to Build > Rules.
- In the top right, click the Plus sign to add a new rule.
- At the top under the main part of the page, enter a name like Agent Online.
- Under Rule Creation on the left, enter InternalAgent in the Events group search box.
- Select InternalAgentOnline, and then drag it into the Correlations box (make sure there is a green check for this event).
- Select InternalAgentOffline, and then drag it into the Correlations box, but select the green check mark to change it to a red X.
- Select InternalAgentOnline, and then select DetectionIP in the Fields list below, and then drag to the Correlations box.
- Select InternalAgenOffline, and then select DetectionIP in the Fields list below, and drag to the pencil field next to the InternalAgentOnline that you placed in the Correlations box.
- Next to the description field, select the Enable check box to enable the rule.
- In the left panel, click to expand the Actions list, and then drag Send Email Message into the Actions box.
- Select the Agent Offline Dell Phone Messages email template, or create your own template.
- From the Events list, select InternalAgentOnline, drag the AgentAddress from the Fields list below into the blank area to the right of $Agent under the email action.
- From the Fields list, drag the DetectionTime into the $time field under the email action.
- In the Actions box, select one or more recipients from the Users drop-down list, and then click Save.
- To perform a global save of all changed rules, click Activate Rules on the top right (also activates the rule).