What's New in Retrospect – Retrospect Backup 19 + Retrospect Virtual 2022 + Retrospect Cloud Storage

How to Integrate Retrospect with Slack
JG Heithcock

5月 10, 2017

JG Heithcock is GM at Retrospect and has eighteen years experience in the storage and backup industry.


tags: partner news author: JG Heithcock blurb_photo: "blog/retrospect_and_slack_778.jpg" blurb: "Slack is an online instant messaging and collaboration tool used by over one million users. One of its compelling innovations is the ability to integrate a wide variety of applications to all go to Slack. With Script Hooks in the latest version of Retrospect, you can monitor Retrospect from Slack as well." ---

Slack is an online instant messaging and collaboration tool used by over one million users. One of its compelling innovations is the ability to integrate a wide variety of applications to all go to Slack. With Script Hooks in the latest version of Retrospect, you can monitor Retrospect from Slack as well.

Installing the Retrospect event handler (retroEventHandler)

Download the example Retrospect script hooks from our website.

For Mac, copy the file "RetroEventHandler.sh" from the Slack folder to

/Library/Application Support/Retrospect

For Windows, copy the file "RetroEventHandler.vbs" from the Slack folder to

C:\ProgramData\Retrospect\

In either case, edit the file in your favorite text editor. Find the text:

slackURL="https://hooks.slack.com/services/Txxxxxxxx/Bxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxx"

You will need to set up a Slack web integration to get a URL to replace the placeholder above with.


Setting up a Slack web integration

This document assumes you already have a Slack account. If you do not, you can set one up for free at https://slack.com/.

Once you do, you will need to create a new incoming WebHook.

This will create a URL that Retrospect (or more correctly, the Slack retroEventHandler) can send its messages to. The only requirement here is to pick which Slack channel you wish Retrospect’s notifications to go to.

Add Incoming WebHooks integration for Retrospect
Figure 1. Add Incoming WebHooks integration for Retrospect

Once you choose Add Incoming WebHooks integration, you will get a screen like the one below with a WebHook URL.

Slack Integration URL
Figure 2. Slack Integration URL

Copy this URL into the Slack Retrospect eventhandler in place of the https://hooks.slack.com/services/Txxxxxxxx/Bxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxx text.

Save the file. You are now done. You do not need to restart the Retrospect engine or application for it to start using the script.


Example


Testing

To test, run a short backup. This should result in a set of messages similar to the following:


Troubleshooting

If you do not get any messages, confirm the URL did not get cut off or have extra characters added. You can also test just the script by opening up a terminal or cmd window, and cd’ing to the eventhandler folder. Then type:

retroEventHandler "StartApp" "2/10/2017 12:01 AM" "true"

If there are any errors, they should display in the terminal or cmd window and point you toward a solution.

(0)
(0)
Contact Us
Contact our sales team by email at sales@retrospect.com or by phone at +1-925-476-1030 to discuss your environment.