nagios icon indicating copy to clipboard operation
nagios copied to clipboard

PagerDuty recipe does not install agent

Open jldugger opened this issue 7 years ago • 6 comments

notify_pagerduty.pl enqueues alerts in /tmp/pagerduty_nagios, but there's no agent installed to forward these on to PagerDuty.

https://www.pagerduty.com/docs/guides/agent-install-guide/ suggests they have a repo, GPG key and package. Is this functionality missing intentionally?

jldugger avatar Jul 20 '16 17:07 jldugger

@jldugger Hi, This cookbook is using perl script integration: https://www.pagerduty.com/docs/guides/nagios-perl-integration-guide/ It doesn't require to install PagerDuty agent. Perl script flush alerts to PagerDuty. If your nagios instance doesn't trigger alert in PD, check if on service/host pagerduty contact is added, also check if you are using right api key.

mdarii avatar Jul 21 '16 07:07 mdarii

Ah, thanks for that reference!

It looks like I need to add the pagerduty user to a contact group. I ran that perl script directly as root and didn't see anything go through, and couldn't find any logs for pdagent. As we're running CentOS7 and want bidirectional support, I hadn't really considered the perl script compatibility mode. Perhaps a separate setup for centos 6+ should be used.

Jul 21 16:55:01 mon1.osuosl.org pagerduty_nagios[20555]: Nagios event in file /tmp/pagerduty_nagios/pd_1469035215_27159.txt DEFERRED due to network/server problems.

I'll have to look into that more, but I at least understand more about the problem.

jldugger avatar Jul 21 '16 16:07 jldugger

Had to install yum install perl-LWP-Protocol-https, which isn't mentioned in PD's docs.

jldugger avatar Jul 21 '16 23:07 jldugger

tl;dr: CentOS7 support is not present, as clearly documented in the metadata.

jldugger avatar Aug 02 '16 01:08 jldugger

@jldugger if you'd like to open a PR and fix this we'd greatly receive it!

Thanks!

damacus avatar Jun 15 '17 12:06 damacus

Marking stale due to inactivity. Remove stale label or comment or this will be closed in 7 days. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.

github-actions[bot] avatar Sep 30 '20 00:09 github-actions[bot]