Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 707 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 707 Bytes

pd_ack_to_nagios_ack_poller.pl

to supplement https://github.com/PagerDuty/pagerduty-nagios-pl

pagerduty_nagios.pl does a good job of getting nagios events into pagerduty... this script provides the reverse, for a more round-trip-synced experience

more specifically, it polls pagerduty for new events since the last poll, checks whether they are acks or resolves, and if so applies those to their corresponding nagios alerts. i.e., if you ack in pagerduty, via sms or web ui or phone app, that ack will find it's way back to your nagios instance.

set up a cron like so:

* * * * * nagios /usr/local/bin/pd_ack_to_nagios_ack_poller.pl -p [my_pagerduty_token] -u [my_pagerduty_domain]