...
Expand | ||
---|---|---|
| ||
Either share the OP5 file to the remote OP5 monitor or copy the link on the opening page.
Before rpm upgrades, back up your configuration files. During upgrades, the rpm package does not overwrite the existing configuration. It saves the new default configuration file as integration.conf.rpmnew. To update from version 201X-XX-XX to 2.X.X, add the |
Add OP5 integration
Info |
---|
You can add this integration from your team dashboard If you're using Opsgenie's using the Free or Essentials plan, or if you’re using Opsgenie with Jira Service Management's Standard plan, you can only add this integration from your team dashboard as the Integrations page under Settings is not available in your Standard plan in Jira Service Management. To access the feature through Adding the an integration from your team dashboard will make team’s operations page makes your team the owner of the integration. This means Opsgenie will assign Jira Service Management only assigns the alerts received through this integration to your team only. To do that,
Follow the rest of the steps to complete the integration. |
Go to your team’s operations page.
On the left navigation panel, select Integrations and then Add integration.
Run a search and select “OP5”.
On the next screen, enter aname for the integration.
Optional: Select a team in Assignee team if you want a specific team to receive alerts from the integration.
Select Continue.
The integration is saved at this point.Expand the Steps to configure the integration section and copy the integration API key.
You will use this key while configuring the integration in OP5 later.Select Turn on integration.
The rules you create for the integration will work only if you turn on the integration.
...
Expand | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||
|
...
Expand | ||
---|---|---|
| ||
Configure from the |
Expand | ||
---|---|---|
| ||
Configure by entering flags into the command in the jsm.cfg file. Use
When apiKey is added to the cfg file, it overrides the apiKey in the config.json file. To send additional custom arguments, add them after the flags. For example, |
Expand | ||
---|---|---|
| ||
Configure apiKey and nagios_server from send2jsm.go script. To use this option, build the script again and put the new executable to /usr/bin directory. Find information about the location of the send2jsm.go and how to build a go script in the "Source for send2jsm and recompiling" section. |
...
If everything goes well, alerts are created in Jira Service Management for every notification created in OP5.
Map alert actions
You can define mappings between Jira Service Management actions and OP5 actions (also when the source of the alert is OP5), which requires additional authentication for your OP5 account.
Username: The username of your OP5 account
Password: The password of your OP5 account
OP5 Monitor URL: This is the domain name of your OP5 Monitor. For example: https://19.167.1.143
For alerts created by OP5
In the Send alert updates back to OP5 section, map Jira Service Management actions to OP5 actions when the source of the alert is OP5 (when the alert is created by OP5 integration itself). Map different Jira Service Management actions to different OP5 actions. For example, acknowledge the alert in OP5, when the alert is acknowledged from OP5. To do this, define If alert is acknowledged in Jira Service Management, acknowledge in OP5 mapping in Send alert updates back to OP5 section.
Configure Jira Service Management to update OP5
...
Use Jira Service Management’s JEC and the OP5 script to update alerts on OP5. This enables deployment of your own scripts/ability to modify the ones provided and execute customized actions on OP5. To execute actions in OP5, JEC gets the configuration parameters from the configuration file. The configuration file is found under /home/jsm/jec/conf/jec-config.json.
Configuration parameters
url – JEC posts alert actions to an endpoint which is constructed using this URL.
username – JEC uses your OP5 account's username to authenticate.
password – JEC uses your OP5 account's password to authenticate.
The package that you downloaded also includes JEC utility which is located under /usr/local/bin and the script that is needed to be run by JEC which is under /home/jsm/jec/scripts. After the configuration of JEC is done, be sure to run it. Learn more about about running JEC documentation.
Source
...
and recompiling send2jsm
The source for the executable send2jsm is found in /usr/bin/ and send2jsm.go, in /home/jsm/jec/scripts respectively and is also available in this repository. To change the behavior of the executable, edit send2jsm.go and build it by using the following command: go build send2jsm.go
...
If the integration is not working, review this section and follow the guidance prescribed:
Expand | ||
---|---|---|
|
...
Expand | ||
---|---|---|
| ||
Run the following test command from the shell. Check if the test alert is created in Jira Service Management:
If "Trace/breakpoint trap" error occurs: It means the send2jsm plugin isn't compatible with the server distribution. Follow the "Source and Recompiling send2opsgeniesend2jsm" section on this page and rebuild send2opsgeniesend2jsm.go according to the specific server environment. If the alert is created in Jira Service Management: It means the integration is installed configured correctly. The problem might be that OP5 is not notifying the Jira Service Management contact for alerts. Check the OP5 alert notifications log. If not: Check the log files under /var/log/opsgeniejec. Look for the following errors in the log file:
Set log level of send2jsm plugin to DEBUG Change the line send2opsgeniesend2jsm.logger=warning to nagios2opsgenieto nagios2jsm.logger = debug in /etc/opsgeniedebug in /home/jsm/jec/conf/opsgenie-integration.conf filefile. Configure Jira Service Management to update ZenossSet the send2jsm plugin's log level to DEBUG. Open the /home/jsm/jec/conf/integration.conffile and change the line |
Expand | ||
---|---|---|
|
...
Expand | ||
---|---|---|
| ||
|
Expand | ||
---|---|---|
|
...
Expand | ||
---|---|---|
| ||
|
If unsure of the problem, set the JEC's script log level to debug, “debug” and try again, and contact us and share . Contact us with the log files found under /var/log/jsm/.
Map alert actions
You can define mappings between Jira Service Management actions and OP5 actions (also when the source of the alert is OP5), which requires additional authentication for your OP5 account.
Username: The username of your OP5 account
Password: The password of your OP5 account
OP5 Monitor URL: This is the domain name of your OP5 Monitor. For example: https://19.167.1.143
For alerts created by OP5
In the Send alert updates back to OP5 section, map Jira Service Management actions to OP5 actions when the source of the alert is OP5 (when the alert is created by OP5 integration itself). Map different Jira Service Management actions to different OP5 actions. For example, acknowledge the alert in OP5, when the alert is acknowledged from OP5. To do this, define If alert is acknowledged in Jira Service Management, acknowledge in OP5 mapping in Send alert updates back to OP5 section.
...