Octoblu Intergration with Free Citrix Monitoring Tool

Octoblu Intergration with Free Citrix Monitoring Tool

Octoblu Intergration with Free Citrix Monitoring Tool

This post has already been read 3185 times!

I have been a big fan of Citrix Octoblu and what it can bring to your estate for a while now.  I was thinking about how I could “smarten up” the monitoring scripts I have been developing and thought that using Octoblu Triggers would be a good idea as once the error data from the monitoring tool is in Octoblu the options are endless.

In this example I have used Slack as an output tool for the error messages that the monitoring scripts generate.  Essentially every error message should be posted into a specific slack channel dedicated to monitoring of my Citrix Lab.

Firstly, James Bulpin has done a great video about getting Slack and Octoblu to talk.  You can find that here.  Make sure you have a slack channel and an Octoblu Bot set up to post messages into that channel before you setup your monitoring scripts to output to Octoblu.

First thing you will need to do is set up an Octoblu Flow to push messages into your Slack Channel.  Now if you have followed James video then you will have a monitoring “Thing” as well as a post Thing.

Your Flow should do the following:

  • Have a standard trigger linked to a Slack Post “Thing”
  • Have a Debug Tool linked to the Slack Post “Thing”

Read below for more detail.

The Trigger

Use a standard trigger and leave the payload as time stamp.  HOWEVER, on the right you will see the detail for the trigger, make a note of the HTTP Post URi as you will need this later on

The Slack Post Bot

Add a Slack Bot to post messages.  On the right make sure you are posting into the right channel (The Bot needs to be a user of this channel) and you have set the message to {{data.message}} as this is how the message will come in from the monitoring scripts

The Debug Module

This is there to view the output if there are issues with the messages hitting Slack

The Scripts

As always, drop me an e-mail and I will send you the scripts.  These are free and always will be, and as always, let me know if you want to be involved.  My e-mail address is dave@bretty.me.uk

Once you have the scripts installed you will see 2 new values in the registry.

  • OctobluTrigger is a yes/no field to tell the monitoring if you want to post to Octoblu
  • OctobluPostUri is the HTTP Post Trigger that relates to the trigger in the flow you want to execute in the event of an error

There is also a new module in global.ps1 that calls the defined trigger with ANY error value that is passed into the ErrorLog module.  This essentially executes the trigger for every error generated by the monitoring.  You can always filter these from within Octoblu using the Filter Tool.

A Demo

So, here is a demo of the script running when all is good and then with some simulated failures

Getting the Scripts

As I have always said just drop me an e-mail at dave@bretty.me.uk and I will send you a ShareFile link with all the scripts ready to deploy.

Laters,

b@m

One thought on “Octoblu Intergration with Free Citrix Monitoring Tool

  1. Pingback: Octoblu Intergration with Free Citrix Monitoring Tool

Leave a Reply

Your email address will not be published. Required fields are marked *