Integrating with Slack

Slack is a digital workspace that powers your organization - all the pieces and the people - so you can get things done.

A team is a group of people that use Slack to communicate. Larger organizations - possibly comprised of many locations, people, and sub-groups - may have multiple interconnected Slack workspaces. The Slack workspace is comprised of channels. Channels hold conversations between team members. They can be organized around anything - departments, projects, or even office locations - and you can create as many as you need.

eG integration with Slack ensures that eG alerts are automatically routed to a configured channel, so that they can be circulated amongst all team members using that channel. For instance, if help desk personnel are part of a team, then that team can be associated with a channel. You can have eG Enterprise integrate with that channel. This way, help desk personnel are instantly notified of problem conditions, and can effectively work together for a speedy resolution.

Note:

HipChat was acquired by Slack in July 2018. Following this, HipChat customers were migrated to the Slack group collaboration platform.

The steps in this regard are as follows:

  1. Login to the eG administrative interface.
  2. From the Alerts menu in the Admin tile, select the ITSM/Collaboration Integration option.

  3. The third-party ITSM/Collaboration tools that eG Enterprise can integrate with will be listed.

    Figure 1 : Viewing the ITSM/Collaboration tool options

  4. Now, click on the Slack option. A Slack section will now appear (see Figure 2).

    Figure 2 : Configuring integration with Slack

  5. To enable integration with Slack, first slide the Slack slider in Figure 2 to the right.
  6. Then, specify the following in Figure 2:

    • Webhook URL: Incoming Webhooks are a simple way to post messages from external sources into a Slack channel. eG Enterprise uses these Webhooks to send event notifications to a specific Slack channel. Against Webhook URL, specify the Slack channel URL to which the eG alerts are to be transmitted. To know how to generate this URL, refer to the Generating API Token and Webhook URL for Integrating eG Enterprise with Slack topic .
    • Channel: Specify the name of the Slack channel to which the eG alerts are to be sent.
    • Token: Specify the token required to access the Slack Channel configured above. To know how to generate this token, refer to the Generating API Token and Webhook URL for Integrating eG Enterprise with Slack topic .
    • Incident title: Specify the format in which the title of the trouble ticket is to be displayed in Slack. The default format is as follows:

      $prior Issue Detected on $ctype: $cname - AlertID $alertID - $pdesc on $info

      The ‘dollared’ ($) text in the format above is a key, the value of which varies at run time, depending upon the information contained in the eG alarms. For example, in the default format above, $prior is a key that represents the alarms priority, and changes according to the priority of the actual alarm that is sent by the eG manager to Slack. You are advised against changing any of the key names.

      The other keys that are part of the default format are discussed in the table below:

      $cname

      Will display the name of the problem component

      $ctype

      Will display the component type to which the problem component belongs

      $alertID

      Will display the unique ID that the eG manager has auto-generated and assigned to the alarm

      $pdesc

      Will display a brief problem description

      $info

      Will display the problem descriptor (if applicable)

      If required, you can override the default Incident Title, so it includes additional details about the problem condition. For that, click on the icon alongside Incident Title. Figure 3 will then appear.

      Figure 3 : Adding additional problem information to Incident Title

      From Figure 3, select the information you want included in the Incident Title and click on the SELECT button. The Incident Title will then change accordingly.

    • Description Format and Problem description: Use these parameters to indicate the format in which problem information should be communicated by the eG manager to Slack. By default, the Description Format flag is set to Concise. In this case, the Problem description will be of the format indicated by Figure 4 below:

      Figure 4 : The Concise Problem Description

      The Concise Problem description, as you can see, is characterized by a list of label : variable pairs. In each pair, the 'label' is a static value that qualifies/describes the value of the 'variable' that follows. The 'variable' on the other hand will be substituted at run time by relevant alert information. For instance, in the pair Alert Description : $pdesc, 'Alert Description' is the static label that will be sent as is to Slack. This label implies that the value that follows it will be a brief problem description. The variable $pdesc will be replaced at run time by the actual problem description contained within the corresponding alarm. You can change 'labels' if you so need, but you are advised against changing the variable names.

      If you set the Description Format to Descriptive instead, then, by default, the Problem description you see in Figure 5 will be displayed.

      Figure 5 : The Descriptive Problem description

      Unlike the Concise format, where key elements of the alert information are listed one after another, the Descriptive format reads like a 'meaningful problem statement. It is structured like a sentence, with variables embedded within. These variables will assume actual values at run time. Here again, you are free to play around with the sentence structure, but are advised against changing the variable names.

      Regardless of the format you choose, the following variables apply by default:

      $cname

      The name of the problem component

      $ctype

      The component type to which the problem component belongs

      $pdesc

      A brief description of the problem

      $layer

      The problematic layer

      $prior

      The problem priority/severity

      $starttime

      The date/time at which the problem was first detected

      If required, you can override the default Problem description, so it includes additional problem details. For that, click on the icon alongside Problem description. This will open Figure 6.
    • Figure 6 : Selecting the details to be included in the Problem description

      Say, you want the problem description to include the name of the business service that was impacted by the problem condition. In this case, select Service Affected from Figure 6 and click the SELECT button. The Problem description will then change as depicted by Figure 7 below:

      Figure 7 : Problem description changed to include Service Affected

    • Custom Payload: Use custom payload to customize the alert information you send to Slack, so that it includes additional static information.

      Typically, the details of an eG alert are sent as a JSON file to the configured URL. Every piece of information contained within an eG alert - eg., priority, component name, component type etc. - is represented in the JSON file as a $key:$value pair, where 'key' denotes the alert field, and 'value' denotes the actual value of that field at run time. The 'key' is configured based on the keys supported by the Slack REST API. For instance, if the REST API represents alarm priorities using the key 'prior', then the same key will be used in the JSON file for denoting alarm priorities. Accordingly, the entry for alarm priority in the JSON file will be $prior:$value. The $value will be Critical, Major, Minor, or Normal, depending upon the actual priority of the alarm being sent.

      • First, check whether the Slack REST API supports a 'key' that can be used for capturing the 'source' of alerts/incidents. If no such key exists, then you cannot proceed with the Custom Payload configuration. On the other hand, if such a key is available, then proceed to replace the $key in your Custom Payload specification, with that key value. For the purpose of our example, let us assume that the REST API supports the key named 'source'. In this case therefore, substitute '$key' with 'source'.
      • Then, proceed to explicitly specify the FQDN of your eG manager in the place of $value. This is because, you can use the Custom Payload configuration to add only 'static' information - i.e., information that you explicitly configure, and hence will never change. In the case of our example therefore, the $value will be egmanager.innovations.com.
      • The complete Custom Payload specification will now be: source:egmanager.innovations.com
  7. Finally, click the Update button in Figure 2.