Home > Jamf Pro, Slack > Sending Jamf Pro notifications to Slack

Sending Jamf Pro notifications to Slack

One of the features offered by Jamf Pro is the ability to send notifications of various events to specified email addresses. Any Jamf Pro user account can be set up to receive these emails, so they’re a convenient way to be notified about events affecting your Jamf Pro service.

These notifications include the following:

  • An instance of the Jamf Pro web application in a clustered environment fails
  • An updated patch reporting software title is available
  • Computer is enrolled using PreStage
  • Database backup fails
  • Database backup succeeds
  • Error occurs during imaging
  • Error occurs when policy runs
  • Jamf Pro account is locked out because of excessive failed log in attempts
  • Jamf Pro fails to add file to JDS instance or cloud distribution point
  • License limit is exceeded
  • One or more Memcached Endpoint(s) are not reachable
  • Restricted software violation occurs
  • Smart computer group membership changes
  • Smart mobile device group membership changes
  • Smart user group membership changes
  • SSL certificate verification is disabled
  • Tomcat is started or stopped
  • VPP token is approaching expiration date

Screen Shot 2018 06 14 at 9 26 49 AM

That said, I get enough emails on a daily basis that I’d prefer to have these notifications go to a channel in Slack. That way, my whole team can be notified about issues and there’s a searchable log of when events occurred.

There are solutions for sending notifications directly to Slack, but I wanted to avoid using middleware in favor of using the built-in notifications in Jamf Pro. Fortunately, there’s a way to do that using tools available from Slack. For more details, see below the jump.

As part of its paid plans, Slack includes an app integration called Email. This Slack app will give you an email address to send to and allow you to select a channel where the emails should appear.

As an example, you may want to set up a channel in your team’s Slack instance named #jamfpro-notifications and then configure the Email app so that it provides an email address associated with the #jamfpro-notifications channel.

Any emails sent to the specified address would appear in the #jamfpro-notifications channel. You can also configure a specific icon to be associated with the posted messages.

Screen Shot 2018 06 13 at 8 34 20 PM

Once you have the Slack email address, you can then set up a local user in Jamf Pro to send the notifications. This user account can have no account privileges at all, as no privileges are needed to receive email notifications. To set up the user, please use the procedure below:

1. Log into your Jamf Pro server using an account with administrator rights.
2. Go into Management: System Settings: Jamf Pro User Accounts & Groups

Screen Shot 2018 06 14 at 10 17 01 AM

3. Click the New button.

Screen Shot 2018 06 13 at 8 41 19 PM

4. Select Create Standard Account and click the Next button.

Screen Shot 2018 06 13 at 8 41 24 PM

5. Set up a new account, with the email address from Slack as the account’s email address.

Note:No account privileges need to be assigned to this account.

Screen Shot 2018 06 13 at 8 42 42 PM

6. Once the new account has been set up and configured as desired, click the Save button.

Screen Shot 2018 06 13 at 8 42 43 PM

7. Log out of your Jamf Pro admin account and log into the newly-created account.

Screen Shot 2018 06 13 at 8 44 17 PM

8. If no privileges were set for the account, verify that everything is coming up as Access Denied.

Screen Shot 2018 06 13 at 8 44 33 PM

Screen Shot 2018 06 13 at 8 44 35 PM

Screen Shot 2018 06 13 at 8 44 38 PM

9. Click the account drop-down menu and select Notifications.

Screen Shot 2018 06 13 at 8 44 51 PM

10. Select your desired notification options. Once finished, click the Save button.

Screen Shot 2018 06 13 at 8 45 29 PM

11. Log out of Jamf Pro.

Once that this has been configured, you can go to your Slack channel and see the notifications appear.

IMG 8956

Categories: Jamf Pro, Slack
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: