Notification template fails to work while adding "${SYMPTOMS}" field to a payload template in Aria Operations
search cancel

Notification template fails to work while adding "${SYMPTOMS}" field to a payload template in Aria Operations

book

Article ID: 378507

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

  • While using the field ${SYMPTOMS} , the outbound method Webhook plugin is not working in Aria Operations.
  • The notification stop reaching the destination, while adding ${SYMPTOMS} field to the payload template.
  • Example JSON template :
{
    "records": [
        {
            "message_key": "${ALERT_ID}",
            "source": "Aria",
            "event_class": "Aria",
            "severity": "1",
            "resolution_state": "New",
            "node": "${RESOURCE_NAME}",
            "resource": "${RESOURCE_NAME}",
            "metric_name": "${ALERT_DEFINITION}",
            "description": "${ALERT_DEFINITION_DESCRIPTION}",
            "symptoms": "${SYMPTOMS}",
            "type": "vROps:${ALERT_TYPE}|${ALERT_SUBTYPE}",
            "time_of_event": "",
            "additional_info": "{'resourceKind':'${RESOURCE_KIND}','AlertType':'${ALERT_TYPE}','AlertSubType':'${ALERT_SUBTYPE}','AlertImpact':'${ALERT_IMPACT}','alertID':'${ALERT_ID}','Criticality':'${ALERT_CRITICALITY}','startDate':'${CREATE_TIME}','updateDate':'${UPDATE_TIME}','cancelDate':'${CANCEL_TIME}','resourceId':'${RESOURCE_ID}','adapterKind':'${ADAPTER_KIND}','resourceName':'${RESOURCE_NAME}','Health':'${OBJECT_HEALTH_STATE}','Risk':'${OBJECT_RISK_STATE}','Efficiency':'${OBJECT_EFFICIENCY_STATE}','impact':'${ALERT_IMPACT}','alertName':'${ALERT_DEFINITION}','status':'${ALERT_STATUS}','hostName':'${HOST_NAME}'}"
        }
    ]
}
  • Adding  ${SYMPTOMS} in notification template leads to "Invalid JSON payload".
  • Snippet from "analytics-<ID>.log"

        

2024-09-15T00:08:47,045+0000 ERROR [pool-30-thread-2]  com.vmware.vcops.alertplugins.webhook.WebhookPlugin.createWebhookMessage - Invalid JSON payload: 

Environment

VMware Aria Operations 8.17.1

Cause

  • This is a known issue with Aria Operations 8.17.1.

Resolution

This issue is resolved in VMware Aria Operations 8.17.2.

To fix the " invalid JSON payload" , upgrade VMware Aria Operations to 8.17.2 version.

Additional Information

Fixes made in VMware Aria Operations 8.17.2 from previous versions : https://knowledge.broadcom.com/external/article?articleNumber=368977