Actions
Introduction
Actions are an integral part of the monitoring ecosystem, where problems and issues are addressed and resolved. Actions can vary widely and come with several considerations:
Manual vs. Automated Actions: Determining whether the action should be manually executed by an operator or automatically by the system.
Approvals Required: Identifying necessary approvals before executing the action.
Type of Action: Specifying the nature of the action, such as restarting a service, scaling resources, or sending notifications.
Nature of the Impact: Understanding the potential impact of the action on the system and its users.
The Virtana Wisdom supports the full lifecycle management of action configurations, including Create, Read, Update, and Delete (CRUD) operations. Each operation includes specific steps that interact with user interface elements.
Create an Action Configuration
Navigate to Settings > Actions Configuration.
Click on the "Add Action" button. Select the action type from the drop-down menu.
You can select actions such as, Slack, MatterMost, Teams, Https and WebEx
Enter the "Name" in the Name input field.
Enter the "Webhook URL" in the Webhook URL input field.
To test if the webhook URL is correct, click on Send Message.
Click Add Action to save.
Update Action Configuration
Locate an existing action configuration in the list.
Click the "Action Name" in row go to the edit configuration.
Update the necessary fields (e.g., Name, Webhook url).
Click the "Save" button.
Delete Action Configuration
Locate an existing action configuration in the list.
Click the "Delete" icon next to the configuration.
In the confirmation dialog, click "OK".
List Action Configurations
Navigate to Configurations List:
Click on Settings > Actions menu item
A list of all available action configurations is displayed.
Search Action Configuration by Name
Click on Settings > Actions menu.
Locate the search bar or search input field at the top of the configurations list page.
Enter the name (or part of the name) of the action configuration you want to search for.
Click the "Search" button.
The list of action configurations remains filtered based on the search query until the search input is cleared or a new search is performed.
Default Action Policy
For each category of alarms (Info, Warning, and Critical), select the appropriate actions to be triggered. These actions can include notifications, alerts, or any predefined responses based on the severity of the alarm. Action configuration supports setting multiple actions, allowing you to configure various action types for both rules and actions settings.
Alarm Rules
To create Alarm rule:
Navigate to Alarms >Rules >Create New Rule.
To set up a new rule, choose the option for multiple action types as the target for notifications
Based on the selections made in the rule configuration screen, the chosen multiple action types will be triggered, and notifications will be sent using the action service.
For existing rules, you can edit and modify the action type selections as needed.
Create an HTTP Configuration
Here are the steps to use the newly added HTTP action type
Navigate to Settings > Administration >Action menu.
To create a new action, select Add Action from the drop-down menu and choose the HTTP type.
Provide the Name, HTTP endpoint URL, JSON data payload (below is the sample), and HTTP header (optional).
In document we have to provide json sample formate as input, here is document for more detail:
{ "Title": "${title}", "Title Link": "${link}", "Rule Id": "${ruleId}", "Case Id": "${caseId}", "Case Name": "${caseName}", "Case Description": "${caseDescription}", "Open Time": "${openTime}", "Entity Name": "${entityName}", "Entity Type": "${entityType}", "Rule Name": "${ruleName}", "Rule Type": "${ruleType}", "Threshold Values": [ <#list thresholdValues as value> { "Gauge Name": "${value.gaugeName}", "Threshold": "${value.threshold}", "Exceeded Value": "${value.exceededValue}" }<#if value_has_next>,</#if> </#list> ], "Source Uuid": "${sourceUuid}", "Severity": "${severity}" }
Description
${title}: Case name
${link}: Applaince Case Url
${ruleId}: Case Rule Id,
${caseId}: Case Id
${caseName}: Case name
${caseDescription}: Case Description
${openTime}: Case Open Time (e.g., 2024-10-25 03:05:00 PDT)
${entityName}: Entity Name (e.g., qe-appdisc-01.lab.vi.local)
${entityType}: Entity Type (e.g., ESXHost)
${ruleName}: Alarm Rule Name
${ruleType}: Alarm Rule Type
${sourceUuid}: Applaince UUID
${severity}: Case severity (e.g.,info, warning, critical)Threshold Values List (#list thresholdValues as value)
${value.gaugeName}: Gauge Name
${value.threshold}: Threshold
${value.exceededValue}: Exceeded Value