youngmon/atlassian-qna huggingface dataset:
Prevent Google Stackdriver from auto closing an Alert in OpsGenie
Asked by Ray Statham:

Hello all, is there any way to prevent Google StackDriver from auto closing an alert in OpsGenie when the value of the matrix drops back below the alerts threshold? My GCP notification channel is a Webhook.

The problem I have is that the alert needs to be escalated in OpsGenie regardless that the state has become good.

Many thanks in advance, Ray


Answers:
author: Nick H
body: Hi [@Ray Statham](/t5/user/viewprofilepage/user-id/4172192) ,

You can manage what creates or closes alerts in the Advanced tab of the integration:

![stack comm 1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/119459iF1B831FBE0FDDD33/image-size/large?v=v2&px=999 "stack comm 1.jpg")

\^ Note - this section is only available on the Standard and Enterprise plans.

Seems like you'll want to add an additional Create Alert action that almost replicates what the Close Alert action does - filtering on the action that closes the alert. What this will do is deduplicate the alert when the close request is sent to Opsgenie.

<https://docs.opsgenie.com/docs/alert-deduplication>

You'll also want to make sure this action increases the priority when it triggers. Deduplication is meant to prevent alert fatigue by increasing the count of an alert. But - if the alert deduplicates with a higher priority, the notification workflow will restart. That configuration might look something like this:

![stack comm 2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/119463iFE8C6BA9D07BD8F9/image-size/large?v=v2&px=999 "stack comm 2.jpg")![stack comm 3.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/119464i4B92B79FEB734E19/image-size/large?v=v2&px=999 "stack comm 3.jpg")

If the integration shouldn't be closing any alerts, you have the option to delete the Close Alert action in this section as well:

![stack comm 4.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/119465i759F4B384A2608C1/image-size/large?v=v2&px=999 "stack comm 4.jpg")

Hope this helps. Let us know if you have additional questions or issues.

comments: author: Ray Statham
body: Hello Nick,

Thank you for taking the time to respond to my question. I did find reference to the "Advanced" button during my initial search, but our account is "Essentials" so the option is missing. I will try and justify an account upgrade to finance and then follow your steps.

Many thanks, Ray


Tags: cloud
Co-term new users
Asked by Travis Herman:

I am looking at Opsgenie with an eye to jump from PagerDuty. I'm wondering how new users are billed when you are paying annually? Is co-terminus an option? My company uses other Atlassian products so I would really like to be able to move to Opsgenie.


Answers:
author: Robert
body: Hi [@Travis Herman](/t5/user/viewprofilepage/user-id/3777390) !

If you subscribe to an annual plan, any licenses added beyond that initial agreement are billed on a pro-rated basis for the remainder of the period and co-termed with renewal.

Hope this helps!


Tags: cloud
How can I set marid integration in opsgenie
Asked by ???_Jinwoo Lee_:

When I click on link [Opsgenie Marid Integration](https://app.opsgenie.com/integration#/add/Marid ""), I don't see anything on the Opsgenie screen.

My Subcription plan is Enterprise.

How can I do?

![opsgenie_marid_integration.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/118121i879266FC13CFFD7F/image-size/large?v=v2&px=999 "opsgenie_marid_integration.JPG")


Answers:
author: Andrew Laden
body: 2 possibilites.

1: Marid is an old product, The preferred way is to use OEC. <https://docs.opsgenie.com/docs/oec-overview>

2: What plan are you on for OpsGenie.

As per <https://docs.opsgenie.com/docs/marid-integration-server-for-opsgenie>

Marid is not available under Free and Essentials Plans. Please upgrade to a Standard or Enterprise Plan to use this feature.

comments: author: ???_Jinwoo Lee_
body: Thank you for your answer.

I will try OEC.
How to attach alert action output to Opsgenie
Asked by Richard Bocchinfuso:

Hello, I am working on creating custom actions and wondering:

A. Is it possible to attach the output from a triggered custom action to the alert once the action runs. It seems like this is possible in the documentation as I see ping.py referenced in the docs, but I can't find an example. I think that I will need to pass the alertId to the action so the output can be attached to the proper alert, not sure how to pass that and hoping to shortcut the research.

B. If A above is possible, does anyone have an example they are willing to share.

Thanks in advance.

-Rich


Answers:
author: Robert
body: Hi [@Richard Bocchinfuso](/t5/user/viewprofilepage/user-id/4158983) !

The alertId will be sent in the payload for whatever custom action you are performing. If you capture the output of whatever command you are looking to execute (ping or traceroute for example) you can use the addNote endpoint on the Alert API to attach the text to the alert that triggered it.

<https://docs.opsgenie.com/docs/sample-alert-action-data>

<https://docs.opsgenie.com/docs/alert-api#add-note-to-alert>

That's just an example of when you'd want the output attached to the alert, but you could also use it to take some other action on the alert that's supported through the API (snooze, acknowledge, close, create an incident, etc.).

Hope this helps!


Tags: alert

app
OpsGenie API (Create alert) Authentication problem
Asked by Ricardo Felgueiras:

Hi, all.

I'm trying to create an alert via OpsGenie API but I'm getting an error related to the authentication.  
Please, find below the steps I'm following and all the details about the problem.

Here is the command I'm executing:

```
curl --location --request POST 'https://api.opsgenie.com/v2/alerts' \--header 'Authorization: GenieKey <MY API KEY>' \--header 'Content-Type: text/plain' \--data-raw ''\''{"message": "Test alert", "description": "This is just a test" }'\'''
```

But, I'm getting this error:

```
{ "code": 40301, "message": "To perform this action, use an API key from an API integration.", "took": 0.002, "requestId": "1343b720-98e8-49f1-bb4e-1706c2b9ae83"}
```

I generated the API key from the settings menu (Settings -\> API Key Management). The API key has *read, create and update* access rights.

Regarding the API URL, I tried to use the Europe URL - <https://api.eu.opsgenie.com/v2/alerts>

But, I get this error

```
{ "message": "Could not authenticate", "took": 0.007, "requestId": "6d3adc4c-d201-4fdc-9caf-8db62233e4fb"}
```

What am I missing?

Thanks in advance.


Answers:
author: Nick H
body: Hi [@Ricardo Felgueiras](/t5/user/viewprofilepage/user-id/4157224)

The Create Alert API requires an API key from an [API integration](https://docs.opsgenie.com/docs/api-integration). This can be added under the Settings tab \>\> Integrations tab, or under a team's Integrations tab. NOTE - If the integration is assign to a team, it will only be able to create alerts for that team.

An API key from the API Key Management tab will produce this 403 error (*apiKey is valid but the apiKey cannot do this operation because of permissions*).

Let us know if you have any issues or errors after.

comments: author: Nick H
body: Also - I noticed your syntax is using header:

Content-Type: text/plain

And Opsgenie will be expecting it in

Content-Type: application/json

Otherwise you'll most likely receive a "Content type is not supported" error.


author: Ricardo Felgueiras
body: Yes, it works.

Thank you very much for your help.


author: premsaisala
body: This is not working even if the content type is application/json


Tags: atl-gruland

cloud

rest-api
How can I make opsgenie sent message to slack differently on day and night
Asked by Lawrence:

Our opsgenie is integrated with pingdom.

```
we're looking for a feature that would allow us to change the monitoring behavior based on a schedule
for example, during the day, alert when it receive http call from pingdom, however, during the off hours (e.g. midnight to 4am or something), only alarm if the service is down for 15 minutes(or opsgenie only alarm if it received over 3 downtime alert from pingdom )
```

appreciate if any advice.


Answers:
author: Wei Wung
body: Hi [@Lawrence](/t5/user/viewprofilepage/user-id/3949441),

Thank you for reaching out. Unlike voice/SMS/email/mobile push notifications (which are contact methods in Opsgenie), Slack is a chat integration whose messages are triggered by alert actions such as when an alert is created, acknowledged, closed, etc. As such, it is not currently controlled by notification policies that you can set time restrictions for.

I am adding you to a feature request for the ability to delay the Slack messages similar to those found in notification policies like the examples you shared. If this feature request is implemented, we will post an update here.

comments: author: Lawrence
body: thank you for letting me know.


author: Wei Wung
body: you are welcome!


author: Connor McBrine-Ellis
body: [@Wei Wung](/t5/user/viewprofilepage/user-id/2767047) could you please share that feature request with me as my team is interested in seeing this functionality implemented as well, it would give us some additional flexibility on our Slack integration.


author: Maria Wyrzykowska
body: Was there any progress in implementing this feature? I would also like to see it added!


Tags: cloud

integration

pingdom
OpsGenie Email Integration Alert add attachment to Service NOW Incident
Asked by Godfrey, Scott:

We need to create a process to take the email attachment from an Email Integration Alert and add it to the Incident ticket that was created for the alert. We have the API calls to add it via Service NOW and we were thinking about doing this via an OEC connector.

Has anyone done this? Does anyone have an OEC action script that could do this?


Answers:
author: Allen Barnard
body: Hi Scott,

A script for that specific use case does not exist however I have good news, our API supports a call that generates a download URL link so that you can download the attachment.

[Use this documentation](https://docs.opsgenie.com/docs/alert-api-continued#get-alert-attachment) to make the API call that returns a JSON that contains the download URL. From there the next steps depends on the scripting language you choose to write your OEC script in, the basic logic will be to parse the JSON response and extract the URL as a variable then download it to the server running OEC, once it has completed downloading store the local file path in a variable so that you can pass it to your Service NOW API call.

I hope this helps.

Allen.


Tags: cloud

servicenow
Can I get from ops genie time spent on an issue for call out\overtime hours
Asked by Natalie Bateman:

Hi,

We are looking to start using OpsGenie to track on-call incident management process.

At the moment we are using Atlassian products, Jira Software, Jira Service Desk and also use plug-ins such as Slack and Tempo Time Sheets.

If we are using ops genie can then engineers record time they are called out and for how long? If so, can this be exported to a report that we can use for payroll or would it be through Jira and tempo time sheets.

Thanks

Natalie


Answers:
author: Kate Clavet
body: Hi! [@Natalie Bateman](/t5/user/viewprofilepage/user-id/2791614)   

Thanks for your question! To clarify [@G?k?em](/t5/user/viewprofilepage/user-id/2905119)'s advice. You can certainly access the On-Call report that way, and it's a great way to determine how fair the on-call load is being distributed amongst the team. But we don't recommend it be used for tracking hours and payroll as it's not designed for that. Hope that helps!   

Best,  

Kate


author: G?k?em
body: Hi Natalie,

In Opsgenie, it is possible to get on-call time reports. It shows the on-call time analytics per user over the time defined in the Time Period filter.

Here is a more detailed link about the "On-call Time Reports":

<https://docs.opsgenie.com/docs/on-call-reports-global>


Tags: cloud

timesheet
Team members do not have permissions to open alert
Asked by Anastasiia Shevchenko:

Hi all,  

Some members of the team in Opsgenie are not able to open the alert link. They all have admin permission in this team. Could you please suggest what can be the root cause?   
Here is the error:  
![Screenshot 2020-10-29 at 22.48.01.png](https://community.atlassian.com/t5/image/serverpage/image-id/116356i4D41D5C49AE5ED07/image-dimensions/441x271?v=v2 "Screenshot 2020-10-29 at 22.48.01.png")


Answers:
author: Nick H
body: Hi [@Anastasiia Shevchenko](/t5/user/viewprofilepage/user-id/4126218)

I have to assume that alert is not being sent directly to the Team this admin is a member of - but instead sending to one of the team's escalations, schedules, etc.

The easy fix is sending alerts directly to the team vs. another responder. That way - all members will have visibility of the alert in their dash.

Otherwise, they may have trouble viewing the alert (like in your screenshot) since they are not a direct responder on the escalation, schedule, etc.

Hope this helps. Let us know if this isn't the case, if you have additional questions, issues, etc.

-Nick


Tags: cloud
Can segregation of messages be applied in managing incident comms with OpsGenie/Statuspage?
Asked by Cushla:

I want to use OpsGenie and Statuspage to manage customer comms during an incident, but to use multiple email messages. To one set of users, I want to proactively manage notifications that they are impacted and to the remainder of the users of my platform, I want to manage comms advising that the other users are currently impacted/unavailable. Can this usecase be readily supported?


Answers:
author: Mark Campbell-Vincent
body: Hi [@Cushla](/t5/user/viewprofilepage/user-id/4142730) -

You can leverage Opsgenie's stakeholders and Statuspage's subscribers to accomplish this. Within Opsgenie, you can have incidents create alerts that would trigger a Statuspage incident. You would need to use this workflow since Opsgenie incidents currently does not directly create Statuspage incidents.

Once the Statuspage incident is created, your subscribers will be initially notified about this. This can be applied to your first set of users. Every time you update the Statuspage incident, the subscribers will be notified.

In Opsgenie, you still have an open incident that created the Statuspage incident. You have the option to update stakeholders, this can be applied to the remainder of users of your platform.

![Opsgenie_-_Incidents.png](https://community.atlassian.com/t5/image/serverpage/image-id/116967i769BC44DF625C0CA/image-dimensions/520x223?v=v2 "Opsgenie_-_Incidents.png")

Hope this helps!

comments: author: Cushla
body: Excellent, thanks Mark!


Tags: cloud

statuspage
Opsgenie - CheckMK integration with multiple teams doesn't create multiple alert
Asked by Dipayan Sil:

Dears,

I have an Opsgenie setup with 2 teams. Both the teams have integration with same Checkmk instance. Integration for 2 teams in Opsgenie is configured with 2 different users in Checkmk with corresponding API key. However when the alerts are created, it is only visible / created for 1 team. 2nd team do not get the alert created and hence no notification is generated for on-call person of the 2nd team. Is there anyway that Ops genie can create 2 alerts to 2 different team for 1 alert from Checkmk?

Thanks.


Answers:
author: Aysun ?zg?n
body: Hey [@Dipayan Sil](/t5/user/viewprofilepage/user-id/4124955),

I'm not entirely sure if CheckMK is capable of triggering two different Opsgenie integration endpoints for the same host or service problem. However, with your explanation of your setup; looks like this is possible. Only one alert is getting created instead of 2 separate ones might be due to *deduplication*.

When the received data contains the same alias value of an open alert; that data deduplicates the open alert instead of creating a new one. When an alert gets deduplicated, its count increases. Overall, alert de-duplication is a feature presented for reducing alert and notification fatigue; with not sending notifications over and over again for the same alerts. For further information you can check this doc: <https://docs.opsgenie.com/docs/alert-deduplication>

This being said, if you're looking for avoiding deduplication; you can customize the alias value upon alert creation. This can be done through Advanced settings of CheckMK integration on Standard and Enterprise plans. Let me also share the related doc here: <https://docs.opsgenie.com/docs/advanced-integration-settings>

On CheckMK integration; by default, "Host Name" is designated as alias for host alerts. For Service alerts; it is designated as a combination of "Host Name" and "Service Description".

Instead of "{{hostName}}_{{serviceDesc}}"; you can you can update the alias field such as with "TeamA_{{hostName}}_{{serviceDesc}}" for one integration so that the second data would create a new alert instead of deduplicating the open one.

Please note that; if you update the alias field of Create Alert rules, you might also need to reflect this change to Close Alert and Acknowledge Alert rules since alias value is also used to find the matching alert to apply Close and Acknowledge action to the data sent from CheckMK.

Hope this answers your question!

In case you need further assistance with checking the logs for deduplication or setting up alias field; you can reach out to Opsgenie Technical Support Team through in-app chat or from <https://support.atlassian.com/opsgenie/>


Tags: alert

cloud

integration
OpsGenie -> JiraServiceDesk | copy OpsGenie tags in JiraServiceDesk Issue
Asked by Tobias Patzelt:

Hi,

I am trying to get the tags of Alerts in OpsGenie to the Issue in Jira Service Desk.

The Issue creation is working, I see the Alert description and the summary in the JSD issue.

But no other information besides a label "fromOG" .

The way back to OpsGenie is working, so the IssueKey of JSD is filled in in the Extra properties of the Alert in OpsGenie.


Answers:
author: G?k?em
body: Hi Tobias!

Under the current design, sending Opsgenie alert tags to the Jira SD labels is not an automated functionality. But we do have a feature request and I can add you to the requester's list on that ticket.

Besides that option, as a custom solution, you can use OEC, to grab the tags and map them over to the "Labels" field in JSD. <https://docs.opsgenie.com/docs/jiraservicedesk-integration#configuring-jira-service-desk-integration-for-oec>

comments: author: Tobias Patzelt
body: Thank you for your answer, please add me to the list. I will wait then.


author: G?k?em
body: Hi Tobias. I have added you to the requester's list. Have a nice day! Please feel free to reach us if you will have any other questions.


author: wajdan zahid
body: Hello Gokcem,

Any update on this?


author: wajdan zahid
body: I have a workaround for it if you are adding tags after the alert has been created.

comments: author: Jon Rydarowski
body: I'd be interested in the workaround as this is a requirement for a POC I'm sorting out.


Tags: jira-service-desk
ETA for when OpsGenie will be compatible with/certified on the ServiceNow Paris release
Asked by Petter Buskland:

Do you have an ETA for when OpsGenie will be compatible/certified on the ServiceNow Paris release?

And secondly, is there a way to perform an actual install on Paris even though it's not available for Paris instances from the ServiceNow Store?


Answers:
author: G?k?em
body: Hi Petter,

We do have a feature request ticket for ServiceNow Paris release but currently have no defined ETA. I have consulted to our team about it.

About your second question, it should be enabled by our side for you to use Opsgenie with the ServiceNow Paris release. I have asked the ETA and will keep you updated once I will receive an answer.

comments: author: Petter Buskland
body: Is there any update on this?

What can we do while waiting?


author: G?k?em
body: Hi Petter,

Our engineering team has added the implementation in their current sprint. I will be informing you about the progress.


author: Petter Buskland
body: Hello G?k?em,

Thanks for the update.

Just to clarify, The integration works well on latest version of the ServiceNow (Paris) if OpsGenie is installed prior to the upgrade. All good.

The core problem relates to a situation where the ServiceNow Instance is updated/installed on the Paris release, the OpsGenie plugin is not available for install inhibited by the certification tag.


author: Petter Buskland
body: What in detail is required from your product department team is to submit a request for re-certification on The ServiceNow Paris Release. Integration vendors need to re-certify their integrations or applications with each NOW release to remain compatible.

Any hints regarding a manual install is highly appreiciated.


author: G?k?em
body: Hi!

Wanted to inform you that app is auto-approved \& certified on ServiceNow Paris.


author: Petter Buskland
body: Excellent News. Installed last Saturday.


Tags: servicenow
When condition is not met for a conditional task, why the whole build fails?
Asked by Chitrarth Sahai:

I have a conditional task for which i have used a plan variable isRCBuild to trigger.

When isRCBuild=0 it should run otherwise no.

When the isRCBuild=1 the condition is not met but the whole builds stops, why is that? shouldn't it just be skipped??

![Build.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/101663iA45A7414BA5F9AFA/image-size/large?v=v2&px=999 "Build.PNG")


Answers:
author: Alexey Chystoprudov
body: If it's the only task then build fails because there were no tasks for execution. Add dummy Script task "echo hi" to avoid it

comments: author: Chitrarth Sahai
body: If it's only task then it should go to next job. I think this qualifies as a bug.

[@Alexey Chystoprudov](/t5/user/viewprofilepage/user-id/781646) Do you think this should qualify as a bug?

For the workaround, i now check the bamboo variable from the script itself and EXIT if required. Bamboo conditional tasks are not that robust from my POV.


author: Alexey Chystoprudov
body: [@Chitrarth Sahai](/t5/user/viewprofilepage/user-id/3923064) , it's existing behaviour. When you create job without task Bamboo fails it as we decided it's not a good situation.

The same when all tasks are skipped, it means job had no executable tasks and its state is unknown.


author: Dana Smoot
body: Well then it would be nice if there was a conditional Job and not just conditional tasks :)

Right now the only way to get a conditional job, is to set the same condition on each task in the job, except a final dummy task that always runs. That seems like a bad way to have something change in the future, but forget to change it everywhere.


author: pBogey
body: You cannot skip the default checkout task for a job. You need a workaround in order to not do this.

You cannot skip a job from running, you need to set conditions on every task inside that job, but then the job will fail so you need a workaround for this too.

You cannot set conditions on artifacts (unless I am missing something), so when the task that generates the artifact is skipped due to a condition, the job will fail if the artifact is required.

It doesn't make sense, do bamboo developers not use bamboo?


Tags: task