I Figured out, PD works fine with the following config.
object NotificationCommand "notify-service-by-pagerduty" {
import "plugin-notification-command"
command = "/usr/local/bin/pagerduty_icinga.pl enqueue -f
pd_nagios_object=service"
env = {
"ICINGA_CONTACTPAGER" = "$user.pager$",
"ICINGA_NOTIFICATIONTYPE" = "$notification.type$",
"ICINGA_SERVICEDESC" = "$service.name$",
"ICINGA_HOSTNAME" = "$host.name$",
"ICINGA_HOSTALIAS" = "$host.display_name$",
"ICINGA_SERVICESTATE" = "$service.state$",
"ICINGA_SERVICEOUTPUT" = "$service.output$"
}
}
object NotificationCommand "notify-host-by-pagerduty" {
import "plugin-notification-command"
command = "/usr/local/bin/pagerduty_icinga.pl enqueue -f
pd_nagios_object=host"
env = {
"ICINGA_CONTACTPAGER" = "$user.pager$",
"ICINGA_NOTIFICATIONTYPE" = "$notification.type$",
"ICINGA_HOSTNAME" = "$host.name$",
"ICINGA_HOSTALIAS" = "$host.display_name$",
"ICINGA_HOSTSTATE" = "$host.state$",
"ICINGA_HOSTOUTPUT" = "$host.output$"
}
}
On Tue, Sep 23, 2014 at 7:30 AM, Niranjan Babu Bommu <
[email protected]> wrote:
> Could you please help me to set up pd?
> On Sep 23, 2014 6:00 AM, <[email protected]> wrote:
>
>> Send icinga-users mailing list submissions to
>> [email protected]
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> https://lists.icinga.org/mailman/listinfo/icinga-users
>> or, via email, send a message with subject or body 'help' to
>> [email protected]
>>
>> You can reach the person managing the list at
>> [email protected]
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of icinga-users digest..."
>>
>>
>> Today's Topics:
>>
>> 1. Icinga2 Pagerduty integration (Niranjan Babu Bommu)
>> 2. Re: Icinga2 Pagerduty integration (Alexander Wirt)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Mon, 22 Sep 2014 15:14:39 -0400
>> From: Niranjan Babu Bommu <[email protected]>
>> To: [email protected]
>> Subject: [icinga-users] Icinga2 Pagerduty integration
>> Message-ID:
>> <
>> ca+7hzvm47xlarxcjk9uf6vrqbu30soqkohx8hnvrz_5pk28...@mail.gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Hi,
>>
>> Anybody have good luck with icinga2 pagerduty, seems to be there is no
>> near
>> future plans from PD to release for icinga2.
>>
>>
>> --
>> *Thanks*
>> *Niranjan*
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <
>> http://lists.icinga.org/pipermail/icinga-users/attachments/20140922/7c151838/attachment-0001.html
>> >
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Tue, 23 Sep 2014 09:17:16 +0200
>> From: Alexander Wirt <[email protected]>
>> To: Icinga User's Corner <[email protected]>
>> Subject: Re: [icinga-users] Icinga2 Pagerduty integration
>> Message-ID: <[email protected]>
>> Content-Type: text/plain; charset=us-ascii
>>
>> On Mon, 22 Sep 2014, Niranjan Babu Bommu wrote:
>>
>> > Hi,
>> >
>> > Anybody have good luck with icinga2 pagerduty, seems to be there is no
>> near
>> > future plans from PD to release for icinga2.
>> Just with reading the docs and the code, it was just a few minutes work to
>> get the integration running.
>>
>> Alex
>>
>>
>>
>> ------------------------------
>>
>> Subject: Digest Footer
>>
>> _______________________________________________
>> icinga-users mailing list
>> [email protected]
>> https://lists.icinga.org/mailman/listinfo/icinga-users
>>
>>
>> ------------------------------
>>
>> End of icinga-users Digest, Vol 9, Issue 21
>> *******************************************
>>
>
--
*Thanks*
*Niranjan*
*+1 781.956.6900*
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users