Example 1: Backup Notification |
Top Previous Next |
Starting with version 2.50 of EventSentry you can now be notified if a certain event does not occur during a specified time frame. As such, you can be notified if a successful backup event has not been written to the event log during a certain time frame.
Since a successful Windows backup usually consists of more than one NTBackup event record being written, we will need to use the threshold feature in addition to the recurring event feature.
Scenario A Windows Backup job is setup to backup 4 network drives, starting at 11pm. This backup job usually takes between 2 and 4 hours. During this time, 4 informational messages with event id xxxx are written to the Application event log.
Goal We need to be notified by email when less than 4 of the backup jobs are being written to the event log, indicating that one or more jobs failed.
Approach
1. Creating a SMTP target (you can skip this step if you already have an SMTP target) Right-Click the notifications container and select Add Target. Then, choose a name for the new target and configure all required SMTP options. In this example we will choose Important SMTP as the name for this target.
For more information see SMTP Targets.
2. Creating a threshold filter Threshold filters are similar to ordinary filters, except that you can take actions based on the number of events that appear in a certain time frame. In this case, we want to determine whether a certain number (4) of successful backup events were written to the event log.
This threshold filter will log an information event to the Application event log (EventID 10601, source EventSentry) when the threshold is met at any time.
3. Creating a recurring event filter Since our threshold filter will create an event when our 4 backup events are written to the event log, we can instruct our recurring event filter to look for this event.
4. Creating the "notification" filter As already mentioned in step 3, the recurring event filter will write an error event to the application event log when our threshold filter event cannot be found.
In order to be notified by this error we will need to setup a filter that will forward either this error only or all errors (as recommended) to a SMTP target. You can skip this step if you already have a filter in place that forwards all error events by email to the same recipient(s).
|