youngmon/atlassian-qna huggingface dataset:
Issues with Opsgenie Edge Connector and Icinga integration on RHEL/CentOS 7?
Asked by Brian O'Neill:

\[RESOLVED mostly...I changed the import from urllib to urllib3...the graphs don't come through in the emailbut not really concerned about them right now\]

The installation instructions seem to be fairly straightforward and give indications it should work on RHEL/CentOS 7, but out of the box it does not work for getting acknowledgements back to Icinga.

I am using the opsgenie-icinga-1.1.0-rpm-x86-64.rpm package (by the way - re-using the naming convention from the Marid packages was bad as it conflicts...)

The actionExecutor.py script executes under the default python interpreter, which for RHEL 7 is still python 2.7. This causes the calls to urllib.urlparse to fail because there were a lot of changes between 2 and 3 with urllib. I couldn't find any way to explicitly call actionExecutor.py with Python 3 (/usr/bin/python3).

I was able to get the script to _mostly_ work by replacing "import urllib.urlparse" with "import urlparse", and I also had to explicitly install the python html library via pip. I then changed the urlparse calls appropriately. But there are still problems with the urlecode calls, etc. I've tried some fixes but I just get more errors.

As of right now, it works for the acknowledgements, but the attempts to get the histogram and trend graphs are broken.

It seems to me like this wasn't well tested in 7.

And FYI, it would be nice if the ability for an acknowledgement notification from icinga was configurable - we prefer to send out the notification so we know someone is working on it.


Answers:
author: Robert
body: Hi [@Brian O_Neill](/t5/user/viewprofilepage/user-id/2463149) !

I'm sorry to hear you've run into so many issues along the way.

As you mentioned, RHEL/CentOS 7 (and earlier) have dependencies on python2 at the system level. So any "hard" changes that set python3 as the default can break quite a bit elsewhere. Unfortunately, since golang doesn't execute commands in a typical shell, less drastic options like aliasing the command won't work.

<br />

This means the best option is to modify OEC to explicitly look for the "python3" command instead of just "python."

In case you (or anyone else who comes across this!) want to use that method, here's a write up on modifying and recompiling OEC:

<https://intercom.help/opsgenie/en/articles/4322942-modifying-oec-to-explicitly-use-python3>

It sounds like at this point you've essentially refactored the provided script to work with python2. If you are still having issues, please feel free to reply here or hop into our in-app chat and we can work on getting things up and running for you.

Hope this helps!


Tags: icinga
Notify Team when On-Call Schedule has a gap?
Asked by Martin Boehme:

Hi,

Is there a way to set up automatic notifications to team members when the On-Call Schedule is incomplete for the upcoming week?

Thanks!

Martin


Answers:
author: Robert
body: Hi [@Martin Boehme](/t5/user/viewprofilepage/user-id/351171)

Unfortunately, there's no way to alert based on gaps in coverage in a given schedule. But you do have a few options for exporting the schedule to other tools to increase the visibility of it:

<https://docs.opsgenie.com/docs/on-call-schedules-and-rotations#export-schedules-as-icalendar>

Alternatively, you could use some type of scheduled task/script to call the get-on-calls API endpoint and, if empty, create an alert to notify the owner of the schedule:

<https://docs.opsgenie.com/docs/who-is-on-call-api#get-on-calls>

This use case is currently part of feature request we have open too. So I'll get a +1 on it for you in the meantime.

Hope this helps!

comments: author: Martin Boehme
body: Hi [@Robert](/t5/user/viewprofilepage/user-id/2275658)

Thanks for you helpful answer!

Is this feature request tracked publicly? If so, could you please provide me a link?

Martin


author: Robert
body: [@Martin Boehme](/t5/user/viewprofilepage/user-id/351171) Unfortunately Opsgenie doesn't have public request tracking at this point, but you (or anyone else who sees this :) ) can check in on the status with support by referencing TARDIS-2857.


Tags: cloud
Changing alert priority which created by AWS ASG notification
Asked by Abe Bazouie:

Hi folks

I monitor instances by getting SNS notification when ASG scales.

Link: <https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html>

Then, I route the alerts to SNS -\> Opsgenie. Till here everything works perfectly fine.

My question is, I don't have any control over "Priority" field in Opsgenie and all the alerts have the same priority.

What's the best way to get around that and specify priorities based on either AWS accounts or SNS topics or even ASGs?

Thanks,

Abe


Answers:
author: Robert
body: Hi [@Abe Bazouie](/t5/user/viewprofilepage/user-id/4035558)

In general, the best way to set this up is with the [integration's advanced settings](https://docs.opsgenie.com/docs/advanced-integration-settings). This approach uses filters on the incoming payload to map a given priority in Opsgenie. This screenshot is from a Jira integration, but the same method still applies for an SNS integration too:

![2020-08-04_10-42-57_01.png](https://community.atlassian.com/t5/image/serverpage/image-id/105476iB1D0B023E9A6DFF2/image-size/large?v=v2&px=999 "2020-08-04_10-42-57_01.png")

Hope this helps!


Tags: alert

priority
Can OpsGenie create a support ticket in JSD?
Asked by Shashi Matha:

I would like to know if there is a capability to create ticket in JSD on demand from OpsGenie.


Answers:
author: Kate Clavet
body: Hi [@Shashi Matha](/t5/user/viewprofilepage/user-id/4000880)  

Thanks for your question. The integration between Opsgenie and Jira Service Desk is bi-directional. Once you set up the integration, you're able to tell Opsgenie to create Jira Service Desk records based on the content of an alert.

![Screen Shot 2020-07-29 at 9.53.27 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/104797i25C1D106A04CF18A/image-dimensions/507x257?v=v2 "Screen Shot 2020-07-29 at 9.53.27 AM.png")  

Within the integration, you can choose which specific parameters you'd like an Opsgenie alert to create a Jira Service Desk issue. You also determine which Jira Service Desk "Issue Type" and "Project Key" Opsgenie can create issues in. See below, just note that I've scrubbed personal info from the screenshot so it looks "blank" :)  

<br />

![Screen Shot 2020-07-29 at 9.55.55 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/104798i74301BB5EA30EB5D/image-dimensions/455x247?v=v2 "Screen Shot 2020-07-29 at 9.55.55 AM.png").

Hopefully that helps answer your question!   

Best,

Kate


Tags: cloud
OpsGenie / AWS Cloudwatch Alarms - Map priority
Asked by Mike Melusky:

We have AWS cloudwatch sending a SNS notification to the following:

<https://api.opsgenie.com/v1/json/cloudwatch>

Is there a way when configuring the alarm in Cloudwatch to also include the priority? We'd like some alarms to be P2, some to be P3, et al. I saw solar winds has a mapping feature, does AWS feature similar?


Answers:
author: Allen Barnard
body: Hi Mike,

Sorry for the delayed response, what you are attempting to do is possible with all our product integrations, it does require the user to make use of the "Advance integration settings" which is only available on Standard and Enterprise plans. Follow the below guide which shows you how to create a "Create alert rule" to filter for alerts matching certain conditions. Once you have created the filter you can customize the fields for alerts that are created when that filter is matched, one of the fields that can be set in the rule is the "priority" field.

<https://docs.opsgenie.com/docs/advanced-integration-settings>

Please note that for fastest support the best communication channel to use is the chat bubble that appears at the bottom right-hand corner of Opsgenie website: ![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/104601i654AE945279E9CC7/image-size/large?v=v2&px=999 "image.png")  
Our support agents aim to respond to customers within 3 minutes of the initial communication.

comments: author: Mike Melusky
body: Thank you for the response


Tags: cloud

cloudwatch

priority
Let incident reporters talk to agents directly via phone
Asked by Martin Boehme:

Hi there,

Is there a possibility to let reporters of incidents speak to an on-call agent directly via phone?

E.g. There is an incident, Lisa calls the Incident Phone Number and Alex who is on call picks up on his phone (the call is redirected to Alex' phone because he is on call) and speaks to Lisa.

Is this possible with any of the Opsgenie's plans by default? If not: is it possible with an integration?

If not: Does anyone have a workaround for this use case?

Thanks a lot :)

Martin


Answers:
author: Robert
body: Hi [@Martin Boehme](/t5/user/viewprofilepage/user-id/351171)!

This sounds like our Incoming Call Routing integration might be what you are looking for:

<https://www.atlassian.com/software/opsgenie/incoming-call-routing>

Definitely follow up here if you have any questions and we'll be happy to help out!

comments: author: Martin Boehme
body: Exactly what I needed, thanks!


Tags: cloud

integration

phone

redirect

telephone
How to define alias for email based alerts
Asked by Sammy Odenhoven:

Hi there,

I'm trying to setup rules for an email based integration (Heroku system status). Their emails subjects have the following format:  
- "\[Issue\] some text" - incident is opened  
- "\[Update\] some text"  
- "\[Monitoring\] some text"  
- "\[Resolve\] some text" - incident is fixed

In order to automatically close an alert, I need to provide an alias. I'm not sure what kind of value I should set here. I can't use the email subject, as that changes based on how the incident evolves. I also don't see a way to manually process the email contents in order to strip out an incident number, and use that as an alias.  

How can I set this up?


Answers:
author: Amit Kumar
body: If "Some Text" always the same text for each instance of an alert cycle, you can use String Manipulation methods when you go into the Advanced Settings mode of the email integration.

<https://docs.opsgenie.com/docs/string-processing-methods>


Tags: cloud
Add Note to Alert via IPA (403 ERROR )
Asked by Michael Smith:

Hi everyone.  

I'm new to using API's. When I'm trying to add note to Alert via IPA I'm getting the error:  

403 ERROR  
The request could not be satisfied.  

This distribution is not configured to allow the HTTP request method that was used for this request. The distribution supports only cachable requests.  
We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.  

If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.  

Generated by cloudfront (CloudFront)  
Request ID: IZRkiFS1DofLrBqVJENTXDABYBjiMA4FCoq19s6ag6QMV29Rv-i6iQ==  

What I'm doing wrong?  

Example from documentation:  

curl -X POST <https://api.opsgenie.com/v2/alerts/8418d193-2dab-4490-b331-8c02cdd196b7/notes?identifierType=id>  
-H "Authorization: GenieKey eb243592-faa2-4ba2-a551q-1afdf565c889"  
-H "Content-Type: application/json"  
-d  
'{  
"user":"Monitoring Script",  
"source":"AWS Lambda",  
"note":"Action executed via Alert API"  
}'  

My request:  

curl -X POST [https://mycompany.app.eu.opsgenie.com/v2/alerts/4d704a13-3ca3-4c57-a8ca-c8ab21211b5a-1594821021926/notes?identifierType=id](https://mycompany.app.eu.opsgenie.com/2/alerts/4d704a13-3ca3-4c57-a8ca-c8ab21211b5a-1594821021926/notes?identifierType=id)  
-H "Authorization: GenieKey xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"  
-H "Content-Type: application/json"  
-d  
'{  
"user":"DB Manager",  
"source":"Test",  
"note":"Test Note"  
}'  

<br />

Documentation:  
<https://docs.opsgenie.com/docs/alert-api>  

Please help.  

Regards,  
Michael


Answers:
author: Michael Smith
body: Ok, My bad. I need to use <https://api.eu.opsgenie.com> instead of <https://mycompany.app.eu.opsgenie.com>. It wasn't obvious to me. I thought <https://api.eu.opsgenie.com> is an example.

comments: author: DaveMenc
body: Made the same mistake; you're my hero!


Tags: api
Set Alert Responder based on Jira Assignee
Asked by clayton.chancey:

I have a Jira Service Desk integration configured within my OpsGenie instance. When certain jira issues are created, these will create alerts in OpsGenie. In my integration settings, I assign alerts to specific teams based on the Component of the Jira issue.

However, I would like to somehow accomplish the following: ***If the originating Jira issue already has an Assignee, assign the alert to that person.***

However, I'd like to do this without creating a bunch of individual rules (e.g. matching "Assignee" to a user's name). Is there a way to simply assign an alert to a placeholder value of whatever the issue's assignee is?


Answers:
author: Allen Barnard
body: For now, the functionality does not exist, this is due to the fact that not all of our Opsgenie customers have opted to migrate user management to Atlassian Access. I have raised a feature request to have this functionality added the internal reference link for the request is <https://ifountain.atlassian.net/jira/servicedesk/projects/OGS/issue/OGS-1727> (this link is not accessible to customers it's for our internal tracking only).  

Currently, user mapping is a dangerous endeavor because if you have a Jira user that is not registered with the exact same email address in Opsgenie, the API calls will fail and will result in API calls not being processable.

For now, I would suggest waiting for a few more months, once more of our customer base has migrated user management to Atlassian Access, mapping user objects between the 2 tools will be much easier. You can attempt to script the workflow yourself using our alerts API <https://docs.opsgenie.com/docs/alert-api>, however, due to the risk I mentioned before, implementing such a workflow falls outside the scope of Opsgenie support, I cannot stress enough how much caution should be taken when considering, to implement user mapping between the tools.


Tags: jira-service-desk
Solarwinds Integration: Passing Solarwinds Variables to Opsgenie Alerts
Asked by Scott Wright:

I am passing the standard variables from Solarwinds [TriggerActionBody.txt](https://github.com/opsgenie/opsgenie-integration/blob/master/solarwinds/triggerActionBody.txt) . I'd like to customize the alert to pass volume for disk utilization alerts and reference them in Opsgenie. If I pass them from the Trigger Action in SW to Opsgenie, how to I reference them? Do they become draggable or do I need to define them in Custom Properties? What is the format in the message to reference these?

For example: VolPctUsed=${N=SwisEntity;M=VolumePercentUsed}


Answers:
author: Allen Barnard
body: Hi Scott,

Please note that only Standard and Enterprise customers can make such a config change.

The field is passed as a HTTP parameter to our webhook, you can therefore call in your create alert rule by specifying it's JSON path between curly brackets (you can see JSON in the log entry entitled **"\[Solarwinds\] Received integration request"** switch to "raw" so you can see the _incomingdata.. please not do not include the _incomingdata key in your JSON path, only reference it's child keys )

To call it in the description of your alert, go to "Settings" =\> "Configured integrations" Edit the SolarWinds integration, within the description to call "VolPctUsed" you need to enter it like this:

**{{_httpParams.VolPctUsed}}**

For more information regarding working with fields passed by webhook please see this guide. <https://docs.opsgenie.com/docs/draggable-fields#using-raw-parameters-from-webhook-url-payload-and-headers>


Tags: cloud
can't find advanced settings for Jira Service Integration
Asked by Celeste Dwyer:

I have Jira Service desk integrated with Opsgenie.

I have an automation rule that when a request type = support and priority = highest is created in JSD, it creates an alert in Opsgenie.

However the priority in Opsgenie is P3. I would like this to be P1.

In the documentation I've found this is done in Opsgenie in the Jira Service Desk integration page. The screen shots I've seen have an 'Advanced' settings tab. In my cloud version I do not see this.

Screen shot with Advanced tab: <https://docs.opsgenie.com/docs/jiraservicedesk-integration>:

What I see:


Answers:
author: Kate Clavet
body: Hi [@Celeste Dwyer](/t5/user/viewprofilepage/user-id/2023677) great question!   

Please note I edited your post to remove your screenshots, since they showed sensitive information (API key). The reason you can't see the advanced tab is likely because of the plan you're using. Do you know which plan you're on?   

Best,

Kate


Tags: cloud
Is OpsGenie approved by FedRamp
Asked by Daniel_Ko:

Is OpsGenine approved by Fedramp?


Answers:
author: Jonas Martinez
body: Hi Daniel! I don't believe we hold that specific certification, but you can read all about Opsgenie's security and privacy

Atlassian Trust Center - <https://www.atlassian.com/trust>

Atlassian Compliance - <https://www.atlassian.com/trust/compliance>

Opsgenie Security - <https://www.atlassian.com/software/opsgenie/security>
Generating reports in Opsgenie
Asked by andrea:

Hi :)

I hope somebody is using Opsgenie and can help me with the problem.

I am trying to set scheduled reports but am failing at it. We have team in two countries with different time zones (one team is one hour ahead). I don't know if that is something important to emphasize for the reports so I am doing it nevertheless.

What I want is to generate report (separately) for weekdays and weekends (specifically 00-09, 17-24). This is how I do it. But it seems like the system ignores filter business time, and shows results for 00-24. Am I doing something wrong here? I used filter matches advanced \[0,9\], \[17,24\], I used is between (inclusive 00-9, 17-24), I even used other time just to check and every time I got the same results...

Is anybody using Opsgenie, that can help me with this one?

Thanks!

Andrea

![Untitled.jpg](/t5/image/serverpage/image-id/99764iA9AC619E93267B24/image-size/large?v=v2&px=999 "Untitled.jpg")


Answers:
author: Samir
body: Hi [@andrea](/t5/user/viewprofilepage/user-id/3734766) - when scheduling/sending reports, you specify the filters for the report within the schedule/send section itself. It doesn't pull in the filters specified on the report itself.

e.g. <https://share.getcloudapp.com/nOueDAxd>

![Image 2020-06-21 at 1.22.41 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/99821i06D2972FFA08347F/image-size/large?v=v2&px=999 "Image 2020-06-21 at 1.22.41 PM.png")

Hope that helps!

Thanks,

Samir

comments: author: andrea
body: Hi Samir,

thanks for answering.

Still, it looks like it does not include the time I specified but the whole day (0-24). And again, whatever I put in that section business hours, the result (total hours) is the same.


author: Samir
body: Hi [@andrea](/t5/user/viewprofilepage/user-id/3734766) - could you reach out to our support team via the in-app blue chat bubble in bottom right of screen when logged into Opsgenie, or by entering a ticket through <https://getsupport.atlassian.com/> for the Opsgenie product? We can work with you there.

Thanks,

Samir


author: andrea
body: Hi,

yes I did.

Thank you!

Best,

Andrea


Tags: cloud
How to set priority in AWS SNS
Asked by Jose_Martin:

Hello, I would like to know how it is possible to set the priority using message's attribute in Opsgenie through the integration with AWS through SNS.

I have tried the following code:

"MessageAttributes": {  
"teams": {"Type": "String", "Value": "TeamA"},  
"alias": {"Type": "String", "Value": "myAlias"},  
"eventType": {"Type": "String", "Value": "create"},  
"priority": {"Type": "String", "Value": "P1"},  
"tags": {"Type": "String", "Value": "RDS"}  
}  
All the fields work except the priority one that assigns always P3 by default or not found mapping value, any idea?

I checked out documentation but nothing useful :(

Thank u


Answers:
author: Nick H
body: Related more in depth article on how this can be done as well:

[How to Map Alert Priorities in Opsgenie](https://community.atlassian.com/t5/Opsgenie-articles/How-to-Map-Alert-Priorities-in-Opsgenie/ba-p/2044304)


author: Nick H
body: Hi [@Jose_Martin](/t5/user/viewprofilepage/user-id/3958536) ,

Thanks for reaching out. This similar community post may help with your issue: <https://community.atlassian.com/t5/Opsgenie-questions/Mapping-alert-values-from-Solarwinds/qaq-p/1327612>

\^ Although related to Solarwinds, the concept is the same. AWS's priority might vary from Opsgenie's so it will not map 1-to-1.

Depending on which field (like the Subject, AlarmDescription, etc.) the AWS priority is being parsed in, multiple Create Alert actions can be added to the integration that filter on this -\> then map to the corresponding Opsgenie priority.

Example:

![comm1.1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/99337i6946622607168321/image-size/large?v=v2&px=999 "comm1.1.jpg")![comm1.2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/99338i5BA14F6CCFA489F9/image-size/large?v=v2&px=999 "comm1.2.jpg")

If you have any additional details, screenshots, examples, etc. of your AWS alerts defaulting to P3s, I could provide some more suggestions. Let us know, or if this helps!

Best,

Nick


Tags: aws

integration

priority