1. Home
  2. Integrations
  3. Nagios XI Integration Guide – VictorOps

Nagios XI Integration Guide – VictorOps

Requirements

Versions Supported: Nagios XI 5.x and below

VictorOps Version Required: Getting Started, Essentials, or Full-Stack

 

Fully install the VictorOps plugin package for Nagios/Icinga before proceeding with the following setup.

Enable Environment Macros

Sending alerts to VO is done via a shell script that requires the Nagios/Icinga environment macros. To enable this Nagios functionality, find the enable_environment_macros directive in /etc/nagios/nagios.cfg (actual path may vary) and make sure it is set to “1”.  If this directive does not exist, add it to the config file.

1
enable_environment_macros=1

Import the Configuration

In the Nagios XI dashboard click Configure in the top menu:

nagiosxi1

 

Click Core Config Manager in the left-hand menu:

nagiosxi2

 

Click Tools -> Import Config Files in the left-hand menu.  Select the config from the file list, then click the “Import” button:

nagiosxi3

 

Nagios XI imports our service check commands as “misc command”. In order to enable ack-back through the Nagios XI UI, the service check will have to be changed to a “check command”.  Navigate to the Core Config Manager, and bring up the list of commands.  Then click the little configure icon for the “check_victorops_cmds” command:

nagiosxi4

 

Once in that dialog, change the command type to “check command” and save:

nagiosxi5


Send Alerts to VictorOps

You should now be able to enable active checks on the “VictorOps Command Poll” service through the Nagios XI interface.

If alerts still aren’t coming through, try copying this file /opt/victorops/nagios_plugin/nagios_conf/victorops.cfg to: /usr/local/nagios/etc/cfgprep/victorops.cfg

If you are experiencing the error Duplicate definition found for contact ‘VictorOps_Contact_Settings’ then remove the line cfg_file=/usr/local/nagios/etc/victorops.cfg from nagios.cfg.

Updated on December 12, 2018

Was this article helpful?

Related Articles