Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
mountaindude
Partner Ambassador
Partner Ambassador

Open source solution for sending mail, Teams or Slack alerts when reloads fail

After a few months of real-world testing I now feel confident sharing this with the wider community.

"Butler" (butler.ptarmiganlabs.com) is an open source toolbox aiming at making life easier for both Sense admins and developers. It offers a range of features including reload failure alerts, a cron based (and thus very flexible!) task scheduler, generic key-value store (can be used to create task chaining with parameter passing), MQTT pubsub support, sending Slack messages and more.

Butler as such is 4-5 years old by now, but the reload failure alert feature was added a few months ago and has now proven to be stable and very useful.

The idea is simple:

Admins and/or developers should be notified right away when a reload fails in Qlik Sense Enterprise on Windows.
The notification should go out as a nice looking email, via Teams or Slack. Or all of them.

And most importantly: The notification should include enough information so that the admin or developer can right away get an idea of what caused the failure.

No more going to the QMC, download the script log of the failed task (if it's even available there any more!), find the end of that log and then see that someone had forgotten a single semicolon....

Butler does all of the above.
It also has a template engine that allows you to define what your own alert emails should look like, here's an example  (from the Butler doc site )

mountaindude_0-1612362209010.png

A few things to note:

  • The email isn't just a basic text email. It has formatting that makes it easy to read and digest.
  • The email contains info about the task that failed, including what server it executed on, task name, associated app name, reload history etc.
  • You get the last few lines of the script log right in the email. The number of lines that are included is easily configured in Butler's config file.  You can also get the first few lines from the script log included in the email.

 

On mobile an alert email can look like below. Android home screen on the left and actual alert email on the right.

 

mountaindude_1-1612362710703.png

mountaindude_3-1612362834335.png


Slack and Teams alerts:

mountaindude_4-1612362931741.png

mountaindude_5-1612362957279.png

 

As mentioned, Butler is open source and free to use and modify.
Further information, getting-started instructions, examples etc are available at butler.ptarmiganlabs.com.

Enjoy!

Transparency/disclosure: I am the lead developer of this open source project.

Please mark the post as a solution if it provided you with a solution to the topic at hand. Thanks!
Labels (1)
2 Replies
Sonja_Bauernfeind
Digital Support
Digital Support

Hello! This is fantastic! 🙂

Do you think you'd be interested in bringing this to our Feature Content Friday

Don't forget to Like posts and use the "Accept as Solution" button on content that answered your question! Thanks 🙂
mountaindude
Partner Ambassador
Partner Ambassador
Author

Glad you like it!

Sure - it's actually been on my todo list oh-too-many-months now to submit it to Feature Friday. Just haven't gotten around to it.

And - what's described in this post is just a sampler of what the soon-to-be-relased Butler 5.0 does.
Better everything, basically.

Guess I should get started going through those PPT templates for FCF, or?

Please mark the post as a solution if it provided you with a solution to the topic at hand. Thanks!