Using Alerts with Webhooks
HPE Aruba Networking Central, has the ability to report all types of alerts and events that occur in your network pertaining to device provisioning, configuration, and user management. You can enable and configure these alerts in the Alerts & Events pane in the Network Operations app within HPE Aruba Networking Central. While configuring these Alerts & Events, users have the option to enable Webhooks as a delivery method for when these alerts/events occur. This can be extremely useful when building automated event-driven workflows or integrating with other third-party applications.
For more information regarding Alerts & Events as well as how to configure them, visit the Alerts & Events help documentation for HPE Aruba NetworkingHPE Aruba Networking Central.
When an Alert is configured to notify the user via Webhook, the alert is sent out as a JSON formatted string within an HTTP POST. The data in this JSON string contains information regarding the type of alert, the alerts priority, as well as other details and identifiers. There are several fields within the returned JSON, to see a sample of each Alert's returned JSON and its fields you can refer to the guides below:
Here are just some of the available fields:
JSON Field | Description |
---|---|
id | This is an unique ID for every generated alert/notification. |
nid | This is the ID of a particular alert type and will remain same for all messages of the same alert type |
alert_type | Type/Name of Alert configured in HPE Aruba Networking Central |
timestamp | Linux epoch timer when the alert was generated |
state | State of the alert. This can have 1 of the following values Open or Close. See "Alert State" below for more details. |
severity | Severity of a particular alert type received, which can be configured while configuring alerts. |
setting_id | Setting ID is the combination of HPE Aruba Networking Central Customer ID and the nid from above. |
description | Description of the Alert received |
details | These are details associated to the particular type of alert received |
webhook | ID of the Webhook that forwarded an alert/notification. |
Webhooks Retry Policy
While creating or editing a Webhook, you can specify a retry policy for Alerts & Events sent by HPE Aruba Networking Central. You can use select one of three options:
- None - No retries needed
- Important - Up to 5 retries over 6 minutes
- Critical - Up to 5 retires over 32 hours
MSP mode alert configuration
HPE Aruba Networking Central's MSP mode enables administrators to trigger alerts when tenant provisioning, network, device, or user management events occur. An MSP administrator can configure alerts at the MSP level, which percolate down to all tenant accounts managed by the MSP. For example, if the MSP administrator has configured an alert to be triggered when an AP is disconnected, the MSP is notified when an AP is disconnected in any of the tenant networks managed by the MSP. This allows for faster reactive support and makes monitoring and troubleshooting easy across multiple tenant accounts.
An MSP administrator can also configure additional alerts at the tenant account level. At the tenant account level, alerts can be configured based on groups, labels, sites, or devices. Tenant account administrators can also configure additional alerts for their account. In this case, the alert is triggered only for the corresponding tenant account.
The MSP administrator can edit an alert configured by the tenant account administrator. However, the tenant account administrator cannot edit an alert created by the MSP administrator.
MSP level and tenant level alert configurations are managed separately. For example, if an alert is configured and enabled at both the MSP level and tenant level, two separate notifications are triggered for the event.
Alert State
When you receive a new alert that is forwarded to the configured Webhook, there exists a field titled state in the JSON string which denotes the state of the alert received. When the alert is new, the value will be Open. Certain alerts will automatically send a Webhook notification for the same incident but with the state set to Close to show that the original alert has been resolved. For example, the "Switch Disconnected" alert sends a notification to the Webhook when the switch initially disconnects with state: Open and a unique identifier. When the switch reconnects, the Webhook will receive another "Switch Disconnected" alert matching the original unique identifier with state: Close.
When an alert is acknowledged, no notification is sent to the Webhook and the state of the alert will be state: Open but a new field will exist in the payload titled acknowledged and it's value will be set to true.
Acknowledging Alerts
To close the state of any alert (if not done automatically), you'll need to acknowledge the alert. Acknowledging an alert can be done using two methods in HPE Aruba Networking Central:
Web UI
- Go to Alerts
- Acknowledge all or acknowledge individual alerts from the list of Open Alerts
REST API
- Get list of alerts with the List Notification API. This will return all open alerts and their id.
API Endpoint:/central/v1/notifications
API Method: GET
Base URL:https://apigw-prod2.central.arubanetworks.com
(Replace the Base URL with correct API Gateway)
Request Header:'Content-Type': 'application/json'; 'Authorization': 'Bearer <access-token>'
Note
If an alert is acknowledged, the List Notifications API will provide you a timestamp when the alert was acknowledged and the user who acknowledged it.
Note the id of the open alert your wish to close{ "count": 1, "total": 84, "notifications": [ { "id": "2", "severity": "Major", "settings_id": "AWLTCw983zA1xiLvI9DF", "timestamp": 1523958870, "group_name": "IAP 5GHz", "labels": [ "dual_5GHz" ], "type": "AP disconnected", "acknowledged": true, "description": "AP with Name IAP_345_1 and MAC address c8:b5:ad:c3:b2:02 disconnected", "state": "Open", "acknowledged_by": "user1", "acknowledged_timestamp": 1523958870, "created_timestamp": 1523958870 } ] }
- Using the id noted above, you can acknowledge the alert using Acknowledge Notification API
API Endpoint:/central/v1/notifications/{id}
API Method: POST
API Parameters:'notification_id': '<id>'
Base URL:https://apigw-prod2.central.arubanetworks.com
(Replace the Base URL with correct API Gateway)
Request Header:'Content-Type': 'application/json'; 'Authorization': 'Bearer <access-token>'
{
"acknowledged": true
}
For auto-generated alerts like the above example of "Switch Disconnected", if the device comes back online and an alert with state as Close is generated, the List Notifications API will only return the alert with the state: Close when device reconnects and not the original alert. If the device has not reconnected, it will show the "Switch Disconnected" alert with state: Open.
If you would like to acknowledge multiple alerts with one API call, you can do so, with the Acknowledge Notifications by ID List API. This is an async operation.
Alerts that Auto-Close
Below are the HPE Aruba Networking Central Alerts that auto-close - which means Central will send an additional alert notification via Webhook once the alert closes:
- Controller Memory Utilization
- Controller CPU Utilization
- Controller Cluster AP Capacity
- Controller Cluster Client Capacity
- Controller Cluster Tx Rate
- Controller Cluster Rx Rate
- Connected Clients To Controller
- Controller Tx Rate
- Controller Rx Rate
- Controller Port Input errors
- Controller Port Output errors
- Controller Port Tx Rate
- Controller Port Rx Rate
- AP CPU Utilization
- AP Memory Utilization
- Radio Channel Utilization
- Radio Noise Floor
- Connected Clients Per VC
- Connected Clients Per AP
- Radio Non Wi-Fi Utilization
- Switch CPU Utilization
- Switch Memory Utilization
- Switch Port Tx Rate
- Switch Port Rx Rate
- Switch Port Input errors
- Switch Port Output errors
- Gateway CPU Utilization
- Gateway Memory Utilization
- Uplink flapping
- Tunnel flapping
- Virtual Controller Disconnected
- Switch Disconnected
- AP Disconnected
- Gateway Disconnected
- Controller Disconnected
- WAN Health-check failure
- IPSec SA Down
- All IPSec SAs Down
- IPSec Establishment Failure
Updated 3 months ago