Page 1 of 1

PDAgent

Posted: Thu May 07, 2026 2:43 pm
by matson-itops
want to use PDAgent with RHEL9 and Nagios2026R1.4
however, seeing it requires python2

anyone have advice on how to accomplish this?
Obviously I will check on PagerDuty side.

Re: PDAgent

Posted: Fri May 08, 2026 9:42 am
by lgute
Hi @matson-itops,

Thanks for reaching out. After doing a bit of research, I would definitely contact PagerDuty. Python 2 was EOL in 2020, so they should have a modern solution by now.

After a few discussions with the "robot", it provided these suggestions, which may or may not be useful.
1. Use the Events API v2 Directly
Since pdagent fails on RHEL 9 due to Python module issues, bypass it and use curl to send events:

curl -X POST "https://events.pagerduty.com/v2/enqueue" \
-H "Content-Type: application/json" \
-d '{
"routing_key": "YOUR_ROUTING_KEY",
"event_action": "trigger",
"payload": {
"summary": "Test alert from RHEL 9",
"severity": "critical",
"source": "RHEL9-Host"
}
}'

2. Use Alternative Tools
PDaltagent (GitHub): A high-performance, Python-based alternative that uses RabbitMQ for queuing and supports plugins. Runs well on modern systems.
GitHub - martindstone/PDaltagent
Centreon Stream Connector: If using Centreon, integrates directly with PagerDuty via the Events API and supports RHEL 9.

3. Containerized Solutions
Run pdagent or custom alerting logic in a Docker container based on RHEL 8 or CentOS 7 to maintain compatibility.
Let us know if you find a workable solution.

Re: PDAgent

Posted: Fri May 08, 2026 12:56 pm
by matson-itops
thanks! Will ee what we can do and reach out PagerDuty.