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.
PDAgent
Re: PDAgent
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.
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.
Let us know if you find a workable solution.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.
Please let us know if you have any other questions or concerns.
-Laura
-Laura
-
matson-itops
- Posts: 143
- Joined: Wed Nov 18, 2015 11:19 pm
Re: PDAgent
thanks! Will ee what we can do and reach out PagerDuty.