PagerDuty template

We recently upgraded our system to 7.2.15. Everything seems to be working aside from our PagerDuty integration. I’m relatively new to the organization and I’m not sure how the integration was set up originally. I have gone through and converted the base templates in “Alert Templates”, but I’m not sure how to get PagerDuty notifications back up and running.

Any suggestions on where to find PagerDuty templates would be appreciated.

====================================

Component Version
LibreNMS 1.48.1-152-g177ca9f
DB Schema 2019_01_16_195644_add_vrf_id_and_bgpLocalAs (131)
PHP 7.2.15-1+ubuntu16.04.1+deb.sury.org+1
MySQL 10.0.38-MariaDB-0ubuntu0.16.04.1
RRDTool 1.5.5
SNMP NET-SNMP 5.7.3

====================================

[OK] Composer Version: 1.8.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct

I would check your alert transport settings in LibreNMS (Default ON etc.) , and API settings on pagerduty portal are all OK.

You can also test the transport via CLI

./scripts/test-alert.php -d

The alert templates are not transport specific.

So if I go to Alerts > Alert Transports in LibreNMS I am taken to a blank screen with no controls. Is this the right menu? PagerDuty integration looks fine.

Testing the transport via CLI throws the following. Does this need to be converted like the default default transports in Alerts > Alert Templates?

image

Figured it out. We replaced the existing Pagerduty.php with the following:

I don’t understand what you have done, that is the exact version upstream.

You should probably check ./validate.php

Looks like we get the below warning now. But PagerDuty transports are working:

====================================

Component Version
LibreNMS 1.48.1-157-g9db9104
DB Schema 2019_01_16_195644_add_vrf_id_and_bgpLocalAs (131)
PHP 7.2.15-1+ubuntu16.04.1+deb.sury.org+1
MySQL 10.0.38-MariaDB-0ubuntu0.16.04.1
RRDTool 1.5.5
SNMP NET-SNMP 5.7.3

====================================

[OK] Composer Version: 1.8.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX]:
You can fix this with ./scripts/github-remove
Modified Files:
LibreNMS/Alert/Transport/Pagerduty.php

What does git diff show then?

Any update for this? I’m starting to use PagerDuty and noticed the PagerDuty transport is not using the template assigned to the alert rule to format notifications sent to PagerDuty.