User Tools

Site Tools


resolution_area:prometheus_resolutions:res-p9114

This is an old revision of the document!


Level: Major

Purpose: Notify operations that an ATC Das ticket was not created in Salesforce

Scenario: More than one ATC DAS ticket was not created in Salesforce for the previous 7 days.

Resolution: After the 3.21 release a API will be available to recreate the missing link.

Ticketer/api/v1/integration/salesforce/link/${ticketId}

This can be completed in a Postman POST request or using the below cURL command:

curl -X  POST -i --user '<USERNAME>':'<PASSWORD>' <DOMAIN>/Ticketer/api/v1/integration/salesforce/link/<TICKET-ID>

Before this is implemented the only way an alert will be cleared is if ATC DAS ticket is auto cleared.

Manual Action Steps: Check for ATC Tickets with no Salesforce link

  select
      count(*) as count
  from
      ticketer.ticket t
          left join
      ticketer.external_source es ON es.ticket_id = t.id
      	left join
      snmp_manager.network_element child on child.id = t.network_element_id
      	left join
      snmp_manager.network_element parent on parent.id = child.parent_id
      	left join
      snmp_manager.network_element grandparent on grandparent.id = parent.parent_id
  where
      es.ticket_id is null
      and t.creator_id = 4 -- IDMS Monitor
      and t.workflow_id = 909 -- ATC DAS Workflow
      and t.create_date <= now() - interval 1 MINUTE
      and (t.create_date >= now() - Interval 7 day)
      and t.parent_id is null
      and (parent.name != 'ORPHANS' and grandparent.name != 'ORPHANS');

To fix the problem you will have to requeue the dropped messages Here is a template for this request.

  {
      "event_type": "PostInsert",
      "domain": "f_snmp_trap",
      "CN_Priority__c": "2",
      "Due_Date__c": null,
      "SLA_Date__c": null,
      "Originating_System_ID__c": "ERRIGALTICKET"
      "Description": " ",
      "Alarm_Start_Date__c": "",
      "Alarm_Type__c": "errigalMonitoredCarrierDeviceMissingAlarm",
      "trap_name": "errigalMonitoredCarrierDeviceMissingAlarm",
      "Alarm_System_Link__c": "https://atcwatchdog.com/SnmpManager/errigalEMS#parent/223393",
      "Alarm_IP_Source__c": "10.32.30.57",
      "INT_Integration_ID__c": "223393",
      "Optima_Network_Element__c": "209694 MBTA - 209694 MBTA - Solid DMS#2"
  }

You will need to replace the IP, NE ID, Description, Errigal Ticket, Alarm Start Date, Network Element and others.

  1. Once you have edited the json with the appropriate values from the query, then you can try requeue it.
  2. Click on the exchanges tab
  3. Find `ticketer_audit_event_exchange_topic`
  4. Under publish, use the routing key as f_snmp_trap and paste the json into the payload section
  5. Publish the message. If there is an error it will tell you
  6. Rerun the query to double check that the Salesforce has a case for the Ticket.

For more details, please check this. https://docs.google.com/document/d/1_zwi02B8WoysEUEzfIK2A046xsmFfnrYqiaO4kA7QHk/edit#heading=h.z4rx22cg5uw8

Auto Clear: Yes, Alert will clear when the count of ATC DAS ticket was not created in Salesforce is 0

resolution_area/prometheus_resolutions/res-p9114.1647516908.txt.gz · Last modified: 2022/03/17 11:35 by 10.91.120.28