# Pagerduty plugin - multiple API's

**URL:** <https://discourse.sensu.io/t/pagerduty-plugin-multiple-apis/255>\
**Category:** Sensu Classic (EOL)\
**Created:** [September 17, 2014, 9:11pm UTC](https://discourse.sensu.io/t/pagerduty-plugin-multiple-apis/255 "2014-09-17T21:11:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jack\_Watroba](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@Jack\_Watroba](https://discourse.sensu.io/u/Jack_Watroba)\
**Post date:** [September 17, 2014, 9:11pm UTC](https://discourse.sensu.io/t/pagerduty-plugin-multiple-apis/255/1 "2014-09-17T21:11:25Z")

</div>

Does anyone have an example of a working pagerduty plugin config that utilizes multiple API keys?

From [this pull request](https://github.com/sensu/sensu-community-plugins/commit/43bd7554e3aad2745071ff0eae0afd5a1d25de2d) it seems as though the plugin supports it, however I cannot find any documentation on how to pass the pager\_team from checks.

If anyone has a working example they could share, that would be greatly appreciated.

Thanks.

---

<div class="post-metadata">

**Author:** ![Kyle\_Anderson](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@Kyle\_Anderson](https://discourse.sensu.io/u/Kyle_Anderson)\
**Post date:** [September 18, 2014, 3:04pm UTC](https://discourse.sensu.io/t/pagerduty-plugin-multiple-apis/255/2 "2014-09-18T15:04:58Z")

</div>

Read a similar take on this regarding mail handlers:  
[https://groups.google.com/forum/#!msg/sensu-users/vaYpa1xGS4w/O69dx9zZ4fQJ](https://groups.google.com/forum/#!msg/sensu-users/vaYpa1xGS4w/O69dx9zZ4fQJ)

You could do something similar that Matthew Barr suggested and define  
two pagerduty handlers, and give send different checks to different  
handlers.

(I promise I'm still working on open sourcing the multi-team handler  
solution we have at work, we have more than a dozen PD api keys)

> **···**
>
> On Wed, Sep 17, 2014 at 2:11 PM, Jack Watroba \<jwatroba@improvementdirect.com\> wrote:
> 
> > Does anyone have an example of a working pagerduty plugin config that  
> > utilizes multiple API keys?
> > 
> > From this pull request it seems as though the plugin supports it, however I  
> > cannot find any documentation on how to pass the pager\_team from checks.
> > 
> > If anyone has a working example they could share, that would be greatly  
> > appreciated.
> > 
> > Thanks.
