The PagerDuty configuration setting is going into disconnected state constantly; after attempting to re-establish the connection it will get disconnected after a few minutes and PagerDuty incidents will fail to generate.

The following messages are displayed in the Foglight Management Server logs:
VERBOSE [Data-4-thread-778] Cartridge_PagerDuty_Integration_Rule_PagerDuty_integration___Troubleshooting_alarm_Severity_Critical_Expression_com_quest_nitro_service_rule_expression_Condition_script_8619667d2f0d4a4da54185c4ef5bac3d - Update pagerDuty topology with pd_IsActive as false
Some of the PagerDuty services are listed as "SERVICENAME Unavailable" and when attempting to edit Foglight - PagerDuty service associations and save changes it fails with error:
Please select an active PagerDuty service for Foglight service SERVICENAME

The following error is displayed in the "Errors" list in the PagerDuty dashboard.
The following configured services were deleted form PagerDuty: SERVICENAME

The PagerDuty integration is in an "Error" state because a PagerDuty service previously associated to a Foglight service has been deleted from PagerDuty.
The rule "PagerDuty_General_API_Troubleshooting_Failure_Time" will disable the PagerDuty integration if it is in an "Error" state for more than 24 hours.
The initial error time will be logged in the registry variable "PagerDuty_General_API_Troubleshooting_Failure_Time" and it will be updated to "sucess" once the "Error" state is cleared.
RESOLUTION 1
The view will fail to save changes if any Foglight services are associated to PagerDuty services that are listed as "SERVICENAME unavailable".
To be able to save associate ALL listed Foglight services with an existing PagerDuty service and then "Save".
RESOLUTION 2
If the deleted service is the one used while initially configuring the PagerDuty integration it will be defined as a default and new Foglight services will be associated to it upon creation. To reset the default service, the PagerDuty integration would need to be re-configured.
To reset the configuration:

Example:

Note: For additional details on how to delete the objects from Script Console, please refer to How to delete objects from Foglight using the Script Console (4288125).
Note: After re-configuring the PagerDuty integration, previous Foglight - PagerDuty service associations will need to be set.