...
Jira Service Management provides a rich bidirectional integration plugin for Nagios. Jira Service Management has a number of easy-to-use integration methods (email, API, command line tools, programming libraries, etc.) to ensure all monitoring tools are easily integrated with Jira Service Management. Nagios is integrated with Jira Service Management via the email interface , or by executing scripts in any language that uses Jira Service Management Web API. This document describes two supported integration options.
...
The Nagios plugin for Jira Service Management supports bidirectional integration with Nagios. The integration leverages Jira Service Management’s Nagios-specific executable and JEC utility to automatically create rich alerts (status, alert histogram, trends, etc.) and . It synchronizes alert status between Nagios and Jira Service Management. The Nagios plugin is the recommended integration method as it enables Nagios to take advantage of advanced capabilities provided by Jira Service Management.
...
When a host or service state becomes down in Nagios, an alert is created in Jira Service Management.
Upon creation of creating the new alert, related histogram and trends images from Nagios is are automatically attached to the alert automatically.
When the Jira Service Management alert is acknowledged, the alert in Nagios is also acknowledged automatically, and vice versa.
When a note is added to the Jira Service Management alert, the alert in Nagios is also updated automatically, and vice versa.
...
The Nagios integration plugin utilizes the full capabilities of Jira Service Management and provides bi-directional integration with Nagios. The steps in the following procedure describe how to integrate Jira Service Management and Nagios by using the Nagios integration plugin. Note that slight alteration to these instructions may be necessary depending on the exact Linux distribution and your Nagios configuration.
...
Install the Jira Service Management plugin for Nagios
Jira Edge Connector (abbreviated as JEC) is a prerequisite for configuring the outgoing authentication of Nagios integration. You can combinedly use JEC and Nagios scripts to update alerts on Nagios. With this setup, you can deploy your own script, modify the ones provided, or run customized actions on Nagios. Download the latest version of the Nagios package from this repository.
Expand | ||
---|---|---|
| ||
Note | ||
Run the following command:
Before rpm upgrades, back up your configuration files. The rpm package does not overwrite the existing configuration during upgrades. It saves the new default configuration file as integration.conf.rpmnew. To Add the-- force parameter to upgrade from version 201X-XX-XX to 2.X.X, add the Learn more about config file handling for rpm upgrades. |
Expand | ||
---|---|---|
| ||
Run the following command:
|
Installation
The steps below describe how to integrate Jira Service Management and Nagios using Jira Service Management Nagios integration plugin. Slightly alter these instructions depending on the exact Linux distribution and Nagios configuration.
Note |
---|
If Lamp based Nagios plugin is being used, backup all existing configurations. Uninstall the old plugin, then install the new one. |
Prerequisites
Packages provided support the following systems:
Red Hat based Linux distributions, REHL7 and above
Debian based Linux distributions, Debian 8(Jessie) and above
Installation of Nagios plugin for Jira Service Management
Info |
---|
Download the latest version of OEC To download the latest version of Nagios packages, please use readme file of oec-scripts repository. |
For Red Hat Based Distributions
Run the following command:
Code Block rpm -i jsm-nagios-<your_version>.rpm
Note |
---|
During upgrades, rpm package does not overwrite your existing configurations. It saves the new default configuration file as jsm-integration.conf.rpmnew. Find more information about rpm upgrade config file handling from here. |
To update from version 201X-XX-XX to 2.X.X, you must add --force parameter. E.g.: We suggest backing up your configuration files before update! |
...
Learn more about config file handling for rpm upgrades. |
Expand | ||
---|---|---|
| ||
Run the following command:
|
...
|
Add Nagios integration
Info |
---|
If you're using the Free or Standard plan in Jira Service Management. To access the feature through Adding an integration from your team’s operations page makes your team the owner of the integration. This means Jira Service Management only assigns the alerts received through this integration to your team. |
...
The plugin uses a golang-executable file (included in the plugin as send2jsm) to create, acknowledge, and close alerts in Jira Service Management. To make send2jsm work, you need to make some configurations. The following table lists the parameters and states if they are mandatory. Setting the apiKey is required. Other configuration parameters are set to their default values that work with most Nagios implementations but may also need to be modified as well.
Expand | ||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
...
Expand | ||
---|---|---|
| ||
Configure by entering flags to command in the jsm.cfg file. Use Configure the apiKey from the jsm.cfg file as follows (in JSON format):
When apiKey is added to the cfg file, it overrides the apiKey in the integration.conf file. To send additional custom arguments, add them after the flags. For example, |
Expand | ||
---|---|---|
| ||
Configure apiKey and nagios_server from the send2jsm.go script. Build the script again and put the new executable into the /home/jsm/jec/scripts directory. Learn more about the location of the send2jsm.go and how to build a go script in the “Source and recompiling send2jsm” section in this article. |
...
Expand | ||
---|---|---|
| ||
Run the following test command from the shell and check if a test alert is created in Jira Service Management:
Set send2jsm plugin's log level to DEBUGSet the send2jsm plugin's log level to DEBUG. Open the /home/jsm/jec/conf/integration.conffile and change the line |
Expand | ||
---|---|---|
| ||
Check the alert logs.
|
...