PDAgent

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
matson-itops
Posts: 143
Joined: Wed Nov 18, 2015 11:19 pm

PDAgent

Post 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.
User avatar
lgute
Posts: 422
Joined: Mon Apr 06, 2020 2:49 pm

Re: PDAgent

Post 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.
Please let us know if you have any other questions or concerns.

-Laura
matson-itops
Posts: 143
Joined: Wed Nov 18, 2015 11:19 pm

Re: PDAgent

Post by matson-itops »

thanks! Will ee what we can do and reach out PagerDuty.
Post Reply