Quantcast
Channel: PagerDuty Community - Latest topics
Viewing all 1569 articles
Browse latest View live

Scripting Random Incidents for Testing

$
0
0

@dave wrote:

Here’s an easy ask from one of our larger customers “Can I script a bunch of incidents with descriptions?”

Here’s the custom event transformer I gave them. If picks a random description and adds a random value:

var errors = ["The Server load is over #%", "# Security incidents detected", "Over # support tickets in Queue"]

var description = errors[Math.floor(Math.random()*errors.length)]
var n = Math.floor(Math.random()*100)
description = description.replace("#", n)

var normalized_event = {
  event_type: PD.Trigger,
  description: description,
  details: {
  	count: n
  }
};

PD.emitGenericEvents([normalized_event]);

You can run it manually by hitting the integration URL, but we actually set up monitoring on the integration URL – so a monitoring tool triggers it every hour :slight_smile:

Posts: 1

Participants: 1

Read full topic


Icinga1 send to different services

$
0
0

@JaySangra wrote:

We are trying to integrate icinga1 with pagerduty. The idea is that we have 10 services and icinga1 will need to send alert to these services based on the integration keys we setup. The documentation in icinga1/pagerduty only shows how to do a 1-1 mapping e.g. send everything from icinga to 1 service. Thoughts?

Posts: 1

Participants: 1

Read full topic

Making push notifications trigger an alarm

$
0
0

@EzequielPozzo wrote:

Is there a way of making PD push notifications trigger an alarm? Ideally, I would rely on phone calls to wake me up at night whenever I’m on call, but since I’m traveling sometimes phone calls are unreliable.

Is there a way of making push notifications more noisy and persistent (like a wakeup alarm or a phone call)?

I’m on an Android phone

Posts: 1

Participants: 1

Read full topic

PagerDuty Email integration resolve rule doesn't work.

$
0
0

@sukrit.nge wrote:

please help!

subject alarm message:
for trigger
Alarm from the Applications Manager test - [ Health of xxxx-xxxx-xxxxx01 is Critical ]

for resolve
Alarm from the Applications Manager test - [ Health of xxxx-xxxx-xxxxx01 is Clear ]


Open and resolve alerts based on custom rules:

Trigger an alert if any of the following conditions apply
    The email subject contains "Critical"
    The email subject contains "Warning"
Deduplicate based on the alert key found by matching the regular expression /(\w{5}.\w{4}.\w{3}.\w{12}.\w{7}.\w{3}.\-.\[.\w{6}.\w{2}.\w{4}\-\w{4}\-\w{7}.\w{2}.\w{8}.\])/ against the email subject
Resolve an alert if any of the following conditions apply
    The email subject contains "Clear"
Deduplicate based on the alert key found by matching the regular expression /(\w{5}.\w{4}.\w{3}.\w{12}.\w{7}.\w{3}.\-.\[.\w{6}.\w{2}.\w{4}\-\w{4}\-\w{7}.\w{2}.\w{5}.\])/ against the email subject

Posts: 1

Participants: 1

Read full topic

What's with old topics appearing in the list of "latest" posts?

$
0
0

@jcurreee wrote:

We’re working on some exciting changes for the forums next year, and part of these plans require us to tag (or re-tag) and re-categorize some older posts. Whenever this happens, our forum software moves the topic back to the top of the list of latest topics.

We’re sorry for any confusion and inconvenience this may cause, and promise to wrap this work up ASAP. Update: we’re done! :tada:

:mag: Looking for something? Start a search

Hopefully the revised tags and category assignments will help you find what you need even before we roll out the rest of our planned updates in 2018 :slight_smile:

Posts: 1

Participants: 1

Read full topic

Using Email Rules for filtering

$
0
0

@GavinClark wrote:

Is there a way using email integration to track and bucket emails that come in with ‘INFO’ or ‘WARN’ and use specific rules for these events? I see this is possible in Event Rules, but does not appear to be the case in Email Rules. In Email Rules I can only tell it to disregard an email with certain words, not apply specific rules based on these words.

We only have critical alerts going through PagerDuty currently that automatically page the on-call for the responsible team. To better use the metrics available in PagerDuty, we were looking at setting up a service in PagerDuty for every micro-service we have on our stack. We had planned on then being able to track all lower severity alerts and pageable alerts in PagerDuty allowing us to see what is noise and better tweak our alerting.

Posts: 5

Participants: 3

Read full topic

Need to escalate everything, regardless of urgency

$
0
0

@RaymondGoldstein wrote:

Hello, we need to the ability to escalate all Incidents, regardless of Urgency settings. All our responders have Low Urgency notifications set for Push, Text and EMail, and High-Urgency settings that add phone calls. While our business end-users do not need us to immediately respond to Low Urgency Incidents, our IT management wants to know that someone on the response team is aware of the issue. If someone misses a Low Urgency notification, we would like it to escalate to the next level, but not necessarily having to use the High Urgency settings. The only way to do this now is to just use High urgency for everything, which is not a good solution. How can we have 2nd level be notified that no one has acknowledged a low-urgency incident, after say an hour or two (or on a weekend, a day or 2). We’d rather not resort to High Urgency for everything.

Posts: 4

Participants: 2

Read full topic

Icinga2 director

$
0
0

@ChristoDaSIlva wrote:

I know there is documentation for icinga2 integration. However do you have any documentation for config needed on icinga2 when using the director module?

Posts: 1

Participants: 1

Read full topic


How do I notify a distribution list or shared group email address?

$
0
0

@anton wrote:

For this tutorial, you will need to have access to a web server that supports PHP.

If you’d rather not host a PHP script on your own servers, consider adding a generic distribution list to a Stakeholder user and adding them as a Subscriber.

  1. Save one of the PHP files listed here: https://gist.github.com/eurica/6034108.
  2. Modify the email address listed to the address that you’d like to get emails for all incident status changes within your text editor: $emailAddress = "CHANGEME@example.com";.
  3. Upload the PHP file to your web server.
  4. Log in to your PagerDuty account.
  5. Go to Configuration → Services and select the service that you’d like to get notified about on incident updates.
  6. By default, you will be directed to the Incidents tab of the service’s individual page. To add a webhook, switch over to the Integrations tab.
  7. Click New Extension.
  8. For the Extension Type select Generic Webhook, then enter a name for your webhook, paste the URL to the PHP script that you uploaded, and click Save.

Now when an incident’s state changes, you will get an email notification. You can customize the script to format the data to your liking. By default it will tell you the incident status, subject, and service, along with a link to the incident. The full JSON payload is sent with the message.

Posts: 1

Participants: 1

Read full topic

Configuration Suggestions for Multiple Integrations/Services

$
0
0

@mmartin wrote:

Hello All,

I was wondering if someone would be able to suggest the best method for the following.

Basically, there’s 3 Users who will receive notifications for Nagios. Our initial thoughts were to create 3 Nagios Services OR 3 Integrations. Then, in Nagios, we would have 3 unique PagerDuty contacts which we’ll use one for each of us and assign that contact to our own Hosts and/or Services so the right person is notified when a Problem notification is sent.

So, I’m wondering if the best way to do this is to create one Nagios “Service”, with 3 “Integrations” within that service… Or, should we create 3 Nagios Services with a single Integration within each service, one for each of us.

Basically, we’ll all be on-call 24x7 to receive notifications, as of now. But, I’m sure we’ll each want to tweak certain things like ack timeout, and things like that, per user… So maybe whichever method above gives us the most flexibility/scalability.

Any ideas on which method would be the best way to achieve this? Any thoughts or suggestions would be greatly appreciated.

Thanks in Advance,
Matt

Posts: 2

Participants: 1

Read full topic

Query users by team id

$
0
0

@NathanFalk wrote:

Hi,

I’m working on a program for updating schedules in Pagerduty. Basically, the program will take a text file as input, containing the date and the name of the duty programmer, and will use a PUT to update the schedule.

The program is written in python, but I’m starting out by playing around with curl commands. I think I’ve figured out the quirks of updating the schedule itself, but the piece I’m stuck on now is mapping user names to IDs, so I can provide the IDs when I update the schedule. I’d like to be able to query users by team ID, but when I try, I get back all of the users, not just those users on my team.

curl -H “Accept: application/vnd.pagerduty+json;version=2” -H “Authorization: Token token=” -X GET ‘https://api.pagerduty.com/users?team_id=P448VD9

Any suggestions about how I can limit the results of this query to only those users belonging to a particular team?

Thanks in advance!

Nate Falk

Posts: 2

Participants: 1

Read full topic

Setting Incidents: incident_key in EventsV2 API

$
0
0

@sanjmonkey wrote:

Hi PD community,

I’ve just picked up a project where I’d like one of my apps to trigger events and resolve alerts based on thresholds the app gets from looking at devices. However, I’m struggling to find how when hitting eventsv2 endpoint (https://events.pagerduty.com/v2/enqueue) the incident_key in the incident can be populated at time of creation? No matter where I put it in the parameters or payload, it always ends up as ‘None’ in the subsequent incident. All the alerts subsequently created under incident contain the dedup_key, but, I want to be able to uniquely identify the incident based on my apps dedup_key I specify, without having to recurse all incidents associated alerts…

Heres an example taken from the class I’ve written - can you tell me where I’m going wrong?

    def trigger(self, description, hostname, details, dedup_key=None):
        data = json.dumps({
            'routing_key' : SERVICE_KEY,
            'event_action': 'trigger',
            'incident_key'   : 'my-identifiable-incident-key',
            'dedup_key'   : dedup_key,
            'payload'     : { 'summary'       : description,
                              'custom_details': details,
                              'source'        : hostname,
                              'severity'      : 'error',
                            },
            'client'     : '%s running on %s' % (sys.argv[0], os.uname()[1]),
            'client_url' : 'https://my.super.awesome.app.net',
        })
        r = requests.post('https://events.pagerduty.com/v2/enqueue',
                          headers=self.headers,
                          data=data,
        )
        return r

When setting dedup_key in the above, it is the dedup_key in the associated alert. But incident_key is always None in the incident. If I chose to POST ‘incident_key’ in the ‘payload’, incident_key’ never ends up in the actual ‘incident_key’ field when pulling back the incidents again…

I’ll happily use another (appropriate) customisable field if it can make it into incident at time of creation, but I’m wondering why this is the way it is…?

Cheers!
Sandy

Posts: 3

Participants: 2

Read full topic

Get custom details from incident

$
0
0

@omgitsrasal wrote:

Is anyone aware of any way to get custom details off an incident from the v2 rest api? I know its possible with a webhook - but for a various reasons this isnt something that i can use.

Ive looked through the API ref and can see nothing on getting custom_details. anyone had any luck

R

Posts: 2

Participants: 1

Read full topic

Notifications Based on Data Passed to PagerDuty

$
0
0

@mmartin wrote:

Hello All,

So I read in another topic that the only way to currently use High/Low Urgency notifications, is to have a “Service” dedicated to using either High or Low Urgency.

Is this still the case?

If so, maybe there is another method for our case, using something other then High/Low urgency.

For example, we are using PagerDuty with our Nagios Server. Nagios sends notifications with the status OK (*issue resolved), WARNING, CRITICAL and UNKNOWN.

Is there anyway to send notifications based on those factors sent from Nagios (*i.e. WARNING and CRITICAL messages)? I remember during our trial there was an option under the Configuration tab to perform actions based on strings/Regexs found in notifications received by PagerDuty, but I dont see this anymore, so maybe that was in a higher-price range then what we purchased…?

Does that make sense? If not, I can try and explain further…

Thanks in Advance,
Matt

Posts: 2

Participants: 1

Read full topic

Zabbix 2.2 integration.

$
0
0

@Mickael_C wrote:

Hi,

I’ve installed and configured pdagent on my zabbix 2.2 server. I’ve configured actions in Zabbix and it’s ok, i see the “sent” flag in audit action but anything’s coming in PagerDuty :frowning:

I’ve make manual test to send an alert with :

and it’s ok.

I’ve inspected the pdagent debug log when Zabbix execute action but the queue is always empty.

Do you have an idea for this problem ?

Posts: 1

Participants: 1

Read full topic


Email on ack

$
0
0

@hrzbrg wrote:

Hi,

we are trying to send out an email to a custom group as soon as an incident from a specific service is acked.
I did not find if something like that is currently possible and how I might configure that.

Any suggestions from the community?

Regards
hrzbrg

Posts: 2

Participants: 1

Read full topic

API Documentation for Service Event Rules

$
0
0

@gmpify wrote:

Hi,

I want to manipulate some service event rules using the API, but I can’t find any documentation on that. Can you please give some guidance?

Thanks,

Posts: 2

Participants: 1

Read full topic

sms alert with "res'd" -- already resolved?

$
0
0

@mykmug wrote:

Hi,

I received an sms with the following format (partial):
ALRT #1234 on myAlertName (res’d): alertMessageText…

This was for an alert which was immediately resolved via the API. I’m configured to receive resolves through SMS but neve did for this alert. My question: does the “res’d” in parenthesis mean that this alert has already been resolved but PagerDuty is notifying me anyway?

Thanks.

Posts: 2

Participants: 1

Read full topic

Get the on-call user

$
0
0

@Andrew_Striletskyi wrote:

Hello everyone. How to get On-Call user via REST API (for some schedule) . With this query

https://test.pagerduty.com/api/v1/schedules/id/users

I get all users in schedule. But I want to get on-call user

Posts: 2

Participants: 1

Read full topic

Disable Alerts During Business Hours

$
0
0

@encodingmatt wrote:

Hello -

How do I disable alerts during business hours? We currently have a three man team, with each on call period being a week long. We really only need pagerduty alerts after business hours even though the person is on call 24/7 for a week. I’m hoping I don’t have to create multiple on/off schedules to accomplish this.

Thanks,

Matt

Posts: 4

Participants: 3

Read full topic

Viewing all 1569 articles
Browse latest View live