Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleMethod 2: Configure by using Golang flags

Configure by entering flags into the command in the jsm.cfg file. Use -apiKey flag for your apiKey and -ns flag for nagios_server name. If multiple OP5 servers are not in use, there is no need to define the nagios server. Using flags overwrites all the other configuration methods discussed earlier in the article.
Configure the apiKey from the cfg file as follows:

Code Block
define command {
    command_name    notify-service-by-jsm
    command_line    /home/jsm/jec/scripts/send2jsm -apiKey="apiKey1" -entityType=service ...
}

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, customArgName1 customArgValue1 customArgName2 customArgValue2. Parse custom arguments by adding {{_payload.customArgName}} to wherever is needed in the input fields. To learn more about using raw parameters, see dynamic fields.

Expand
titleMethod 3: Configure from script

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.

...

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

...

If the integration is not working, review this section and follow the guidance prescribed:

Expand
title1. OP5 alerts are not getting created in Jira Service Management

...

Expand
title
Steps to troubleshoot

Run the following test command from the shell. Check if the test alert is created in Jira Service Management:

/home/jsm/jec/scripts/send2jsm -entityType=host -t=PROBLEM -hs=DOWN -hn=test_host

If "Trace/breakpoint trap" error occurs: It means the send2jsm plugin isn't compatible with the server distribution. Follow the "Source and Recompiling send2jsm" section on this page and rebuild send2jsm.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/jec. Look for the following errors in the log file:

  • If a "RestException[Could not authenticate.]" error appears in the logs, it means Jira Service Management couldn't identify your API key. Check if the API key is set correctly, as explained in "Configure OP5 Package in OP5 Monitor" on this page.

  • If "Could not execute this action with apiKey of [OP5] integration" appears in the logs, the wrong integration package may have been downloaded. Make sure to download the OP5 integration package.

  • If unsure of the problem, set the plugin's log level to debug, try again, and contact us and send the logs. If there is no log files under /var/log/jec file, or there are no logs in it, check the following:

  1. First, make sure the nagios user has permission to write to /var/log/jec directory. The installation package automatically does this for you. If you encounter problems, execute chown -R nagios:nagios:jsm /var/log/jec.

  2. Now check the OP5 server logs under /var/log/jec. See if there are error logs regarding send2jsm, and contact us with them.

Set log level of send2jsm plugin to DEBUG

Change the line send2jsm.logger=warning to nagios2jsm.logger = debug in /home/jsm/jec/conf/integration.conf file.

Configure Jira Service Management to update Zenoss

Set the send2jsm plugin's log level to DEBUG. Open the /home/jsm/jec/conf/integration.conffile and change the line zenoss2jsm.logger=warning to zenoss2jsm.logger=debug.

Expand
title2. The OP5 alert is not acknowledged when acknowledged in Jira Service Management

...

expand
titleSteps to troubleshoot
  1. First, check your alert logs.

  • If a "Posted [Acknowledge] action to OP5.." error does not appear in the log, it means Jira Service Management didn't send the Acknowledge action to OP5. Check the integration configuration, it might not have matched the alert action.

  • If a "Executed [Acknowledge] action via JEC with errors." error appears in the log, it means the op5ActionExecutor.groovy script in JEC has encountered an error. Check the log files under /var/log/jsm/ for error logs.

  • If the "Posted [Acknowledge] action to OP5.." is the only error to appear in the log and no related log after that, it might mean JEC is having connection problems. Check the log files under /var/log/jsm/ for error logs.

Note

If no logs exist, restart JEC and try sending an Acknowledge action again.

Expand
title3. Could not open OP5 RPM package

...

Expand
titleSteps to troubleshoot
  • If you figure out while installing the rpm package that the package is obsolete, use rpm -i jsm-op5-1.0.4-rpm-x86-64.rpm --nodeps instead.

  • If you get "is already installed" error, use rpm -i jsm-op5-1.0.4-rpm-x86-64.rpm --force instead.

...