OpsGenie Who is OnCall

Who is Oncall status. version 1.2 Author: Chris O'Rourke with Help from Josh Lovett, Adam Abell, and Thwack.

Here's a quick and clean method to display OpsGenie's Who is Oncall in your team. 

Quick 10 minutes to get up and running:

  1. Add a new external node pointing at app.opsgenie.com
  2. Install the OpsGenie Template.
  3. Point it at the external node you just created
  4. Edit the Powershell script to add your opsgenie API key
  5. Edit the Powershell script to filter which oncall schedules you want displayed
  6. Run the test of the script to generate your list of schedules.
    1. (Optional) edit the field names for the schedules listed.
  7. Click submit.
  8. Head over to your favorite dashboard view (or wherever you'd like the data displayed).
  9. Edit settings
  10. Add custom HTML widget
    1. Copy the contents of the attached opsgeniewidget.txt.zip file into the widget
    2. Edit the skype section to link to the lync-icon where you can serve it from (we made a custom image folder in Orion to serve it)
    3. Click submit.
    4. If you don't use Lync just comment that portion out (or delete it entirely).

Currently it converts the email address (assuming first.last@domain) into a separate First and Last name and then makes the displayed name a mailto link. It also adds a direct Lync (Skype for Business) link for easier contact.

On deck for next release will be direct Slack DM function as well as Teams too.Snag_4996f86d.png

  • You should be credited and linked in the powershell script. If not I'll add that in. As it stands I'll likely have to do some reworking to make it as pretty in the modern dashboard widget views. 

  • We use slack also (at least for now) and I do post there, and IT staff are logged in, but right now I use the email address for a channel to post alerts instead of the API, but it you look up and store the userid it shouldn't be hard to post to slack either. When you know the ID, it works. Details at: https://api.slack.com/reference/deep-linking

    Example URL: 


    Personally I won't be exporting/looking those values, but the concept is the same and would work if you are a slack shop. 

  • That said, your custom HTML widget is SLICK! 

    , I love your idea of putting primary contact or on-call links on the node details view page. That should totally work, and I'm going to try it ASAP.

  • @chrisorourke, this code sure looks familiar. Glad you found a use for it!  Would you mind contributing to the existing post[s] on this topic? I think that may make it less confusing for others who are trying to use my script monitor. I appreciate your addition of the TLS 1.2 expression and enhancement to the custom HTML widget and would love to give you credit for those!


  • OK, I am mildly distracted by my nodes widget, now with icons for the links, edited from my prod version which also has Service Now and Extrahop links.

        <td><img src="https://statics.teams.cdn.office.net/hashedassets/favicon/prod/favicon-32x32-0b158ae.png" alt="TeamsIcon" width="32" height="32"></td>
        <td><a href="https://teams.microsoft.com/l/chat/0/0?users=${Support_Group_Mgr_Email}&topicname=Chat">Manager: ${Support_Group_Manager}</a></td>
        <td><img src="https://statics.teams.cdn.office.net/hashedassets/favicon/prod/favicon-32x32-0b158ae.png" alt="TeamsIcon" width="32" height="32"></td>
        <td><a href="https://teams.microsoft.com/l/chat/0/0?users=${Primary_Analyst_email}&topicname=Chat">Primary Analyst: ${Primary_Analyst}</a></td>