Alarm not enriched with ElementName and Classname
search cancel

Alarm not enriched with ElementName and Classname

book

Article ID: 410685

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

  • I was able to create a alarm and clear it using the Restful Interface on Smarts. But the Element Class and Element Name is not getting populated.
  • Alarm injected via API is not having Element Class and Element Name enriched. 

Environment

All release of Smarts

Cause

Device is not part of the topology

Resolution

 Suggestion is to first create the instance and then update the OccuredOn field so that Element Class and Element Name gets enriched

  • API Query to create router instance: 
    curl -XPOST -H 'Content-Type: application/json' http://<SAM_IP/FQDN>:8080/smarts-edaa/msa/<domain_name>/types/Router/instances -d "{'Router' : {  'Name': 'NameOftheInstance', 'DisplayName': 'MyInst' } }"
  • API Query to update the OccuredOn field, Example notification (NOTIFICATION-Host_test_Down) use the below command. This only takes xml payload:
    curl  -XPOST -H 'Content-Type: application/xml' http://<SAM_IP/FQDN>:8080/smarts-edaa/msa/<domain_name>/instances/ICS_Notification::NOTIFICATION-Host_test_Down/relationships/OccurredOn -d '<link href="/smarts-edaa/msa/<domain_name>/instances/Router::NameOftheInstance"/>'

 

Additional Information

  • API Query to update the EventText:
    curl  -XPUT -H 'Content-Type: application/json' http://<SAM_IP/FQDN>:8080/smarts-edaa/msa/<domain_name>/instances/ICS_Notification::<Notificatoin Name>?alt=json -d ' { "ICS_Notification": { "EventText": "MyEventText"
       }
    }'