Skip to content

Working with notifications

Defining a notification involves the following steps:

  1. Create the notification. This step defines the name and the type of a notification.
  2. Edit the notification. This step associates triggers, specifies the action, and for email actions, specifies the list of recipients.
  3. Set a schedule for the notification, if desired. This optional step defines a time window during which a notification is active.

Best practice recommendations

Use the Count property in triggers and the delay and repeat options in notifications to calibrate the sensitivity of a notification.

  • Typically, configuring a notification to initiate its action the very first time one of its triggers matches an event results in false alarms. Services send events in response to temporary conditions frequently, so a delay, a count, or both can reduce frustrating false alarms.
  • Set delays at a minimum of one polling cycle plus 10%. This provides enough time to determine whether the observed conditions are temporary or symptoms of an issue that needs attention. The default polling cycle is 300 seconds (5 minutes) and is defined by the zPropertyMonitorInterval property.
  • The repeat option has priority over other options, except delay. So even if the Send only on Initial Occurrence option is checked, the notification action is repeated until the trigger no longer matches an event.
  • The Send only on Initial Occurrence option is useful for all events except intermittent, out-of-band events.

For more information about notifications, take a look at this video. It features a different version of Collection Zone technology, but all the steps are identical.

Creating a notification

Follow these steps:

  1. Navigate to EVENTS > TRIGGERS.

  2. In the left column, click Notifications.

  3. In the NOTIFICATIONS area, click the Add icon.

  4. In the Id field, enter a name for the notification.

    Tip

    Use descriptive names. If possible, use a name that identifies the trigger that the notification contains. For example, LinuxDBServerFileSystemHigh_Email.

    Only uppercase and lowercase letters, digits, spaces, and underscores are allowed in notification names.

  5. In the Action field, choose an action type.

    Action Description
    AWS Email Host Send a plain-text or HTML email message through Amazon SES. You must have an Amazon SES account to use this action.
    Command Invoke a Linux shell command or script on a remote host. Use this action to correct issues automatically or integrate with external systems.
    Email Send a plain-text or HTML email message through the default Zenoss Cloud SMTP service.
    Page Send a message to a pager service.
    Syslog Send a message to a syslog host.
    SNMP Trap (v1/v2c) Send an SNMP trap to a v1 or v2c network management station. Event details are converted to OIDs.
    SNMP Trap w/Impact Send an SNMP trap with additional event details that are specific to Service Impact.
    SNMP Trap (v3) Send an SNMP trap to a v3 network management station. Event details are converted to OIDs.
    WinCommand Invoke a Windows CMD or PowerShell command on a remote host.

    Note

    The list of actions in a Collection Zone instance may include additional options, because ZenPacks can introduce new actions.

  6. Click Submit.

Editing a notification

Follow these steps:

  1. Navigate to EVENTS > TRIGGERS.

  2. In the left column, click Notifications.

  3. Double-click the name of the notification to edit.

  4. On the Notification tab, configure the notification.

    Option Description
    Enabled Activate or deactivate the notification. (Use a notification schedule to override this option for specific periods of time.)
    Send Clear Perform the action when the problem is resolved by a clearing event.
    Send only on Initial Occurrence? Perform the action only the first time a trigger matches an event.
    Delay (seconds) The number of seconds to wait before performing the action.
    Repeat (seconds) The number of seconds to wait before performing the action again. The action repeats until the triggering event is cleared.
  5. On the Notification tab, add one or more triggers.

    1. From the drop-down list in the TRIGGERS area, choose a trigger.

    2. Click Add.

    3. Repeat the previous substeps as desired.
  6. On the Content tab, configure the action. For more information, see Notification content.

  7. For AWS Email Host and Email actions only: On the Subscribers tab, specify the recipients.

    Tip

    To simplify maintenance, use groups rather than individual recipients.

    1. From the drop-down list in the SUBSCRIBERS area, choose a recipient.

    2. Click Add.

    3. Repeat the previous substeps as desired.
  8. Click Submit.

Setting a notification schedule

A notification schedule defines the time window when a notification is active. When a notification is inactive, the event processing service does not initiate its action. Typical use cases for notification schedules include scheduling production hours, managing service level agreements, and configuring after-hours procedures.

Defining a notification schedule includes the following steps:

  1. Create the notification schedule. This step associates a specific notification with a schedule object.
  2. Edit the notification schedule. This step configures the schedule.

Creating a notification schedule

Follow these steps:

  1. Navigate to EVENTS > TRIGGERS.

  2. In the left column, click Notifications.

  3. In the NOTIFICATIONS area, click the name of the notification to schedule.

  4. In the NOTIFICATION SCHEDULES area, click the Add icon.

  5. In the Id field, enter a name for the schedule.

    Tip

    Schedules are bound to notifications, so the name can just describe the schedule.

  6. Click Submit.

Editing a notification schedule

Follow these steps:

  1. Navigate to EVENTS > TRIGGERS.

  2. In the left column, click Notifications.

  3. In the NOTIFICATION SCHEDULES area, double-click the name of the schedule to edit.

  4. In the Edit Notification Schedule dialog box, configure the schedule.

    Field Description
    Enabled Activate or deactivate the schedule.
    Start Date The first date and time at which the schedule is active.
    Repeat

    The schedule frequency, one of the following options:

    • Never
    • Daily
    • Every Weekday
    • Monthly
    • First Sunday of the Month
    Duration (minutes) The length of time for the schedule.

  5. Click Submit.

Notification permissions

You can set global or individual notification permissions. By establishing permissions, you can control which users have the ability to view, manage, and update notifications.

Global permissions

Permissions are granted based on the user's assigned role. The following table lists account roles and their associated notification permissions:

Role Permissions
ZenManager Users assigned the ZenManager role can view, update, and manage any notification.
Notification owner When a user creates a notification, that user is designated the owner of that notification. During the life of the notification, the owner can view, update, and manage it.
All other users Must be specifically granted permissions through the interface to view, edit, or manage notifications.

You can set global permissions for viewing, updating and managing a notification. Global permissions are given to any user with "manage" permission, which includes:

  • Users with the ZenManager role
  • The notification owner

Edit global permissions from the Subscribers tab on the Edit Notification Subscription panel.

Global options are:

  • Everyone can view - Global view permission.
  • Everyone can edit content - Global update permission.
  • Everyone can manage subscriptions - Global manage permission.

Permission checks occur when the data is sent to the browser and when any action occurs. To determine where a user can make modifications to a particular tab, permission checks are performed on global roles, then managerial roles, and then individual roles. Any role that provides the required permission will allow that permission's associated behavior.

Setting individual notification permissions

You can grant permissions to individual users or groups.

  • Write - Select this option to grant the user or group permission to update the notification.
  • Manage - Select this option to grant the user or group permission to manage the notification.

You can manually enter in the name of a user or group, or select one from the list of options.