SCOM Alert Notification–Using Skype

Written by Tao Yang

Recently I’ve been wanting to setup SCOM notifications in my test environment that can reach me even when I’m not home.. However, I had two problem: I don’t have Lync / OCS servers in my lab and my home test lab does not have a registered domain name and so the Exchange server in the lab cannot email outside.

Since I have Skype installed on my PCs, phones and tablets, I thought it would be nice if SCOM can send me a message when a SCOM alert is raised.

It turned out to be relatively easy, with the help from the Skype API Skype4COM, PsExec.exe and some PowerShell scripting, it only took me few hours to achieve this goal.

In a nutshell, I installed SCOM Command Console and Skype on a computer (I’ve tried both 64-bit Windows 7 and Windows Server 2008 R2). I’ll call this computer “Skype Node” in this post. I have also copied and registered the Skype4COM.dll on the Skype Node. I also wrote a PowerShell script that runs on the Skype Node computer to retrieve alert details and send out Skype messages. I then setup SCOM command notification to execute another script on the SCOM 2007 RMS / SCOM 2012 MS, this script will use PsExec.exe to remotely execute the script on Skype Node.

I managed to get this working on both SCOM 2007 R2 and SCOM 2012. The scripts and requirements are very similar, but SCOM 2007 R2 environments requires few additional configurations.

SCOM2007 Diagram

SCOM2012 Diagram

I won’t bother to go through the details on how to set this up for either SCOM 2007 R2 or SCOM 2012. the detailed guide can be downloaded from the link at the bottom of this post.

Now, I receive Skype messages on both my computer and my mobile phone:

PC:

PC Screenshot

Phone:

iPhone ScreenShot

You can download everything you need (except Skype and SCOM itself of course) from below link. Once you’ve unzip the file, you will get:

image

Skype Notification Guide.pdf is the guide that you need to follow to set this up.

Skype4COM-1.0.38.0 is the version of Skype4COM I’ve used in this solution. it is the most recent version as of writing of this post.

Download Link

As always, feel free to contact me if you have questions or need help. However, I’ll try my best but I may not be able to get back to you straightaway.

Have fun Skyping Smile. Bye for now!

12 comments on “SCOM Alert Notification–Using Skype

  1. Nice job! Going to test this tomorrow!
    Keep up the good work!

  2. amazing! Good shot!!!!!!

  3. Pingback: Creative uses of technology: Sending OpsMgr alerts through Skype

  4. Interesting stuf :)

  5. NIce :)

  6. Hi, thanks for your post. But could you please guide me in setting up command subscriber and subscriptions? Let’s say if I want to use skype for sending me an alert when Print spooler service is down. Do I have to configure anything else? I tried quite many times but it gives no result. I’m new to SCOM. Many thanks for you and look forward to your reply ASAP.

  7. I’m so sorry for being too impolite. I only have the gmail account to use as an official email account.
    I did exactly the same as your two articles guided but I still cannot make the Print-spooler-down event to send a message to my skype account. Could you please write an example walkthrough guide for a basic windows service skype notification such as the print spooler? I’ve been struggling with this problem for the whole week long.
    Many thanks to you and best regards.

    • The subscriber for command is pretty easy to setup. just create a subscriber, with address, point to the skype channel you’ve just created. as for subscription, you choose 2 criterias:
      1. “Created by specific rules or monitors (e.g., sources)” and choose the monitor for the print-spooler service.
      2.”with specific resolution state” – choose New(0).

  8. thank you very much. It works perfectly. It turned out that I didn’t set the subscription properly. :D

  9. Hi, I have to setup skype notifications for OM 2012, and I can’t get them to work properly, I have done everything as it is written in manual, but something ain’t right. And, since I can use a separate machine for as skype node, I’m using the same server, that has OM installed on it. When I try to send test message – in powershell windows U can see Sending Notification to and my skype name, but, I can’t get any messages. But, when I launch test script, I get a message with no text in my skype from SCOM. Maybe U can help me or give me a hint where and what could I be doing wrong?

    I will wait for your reply,

    Rihards

  10. Hey Tao Yang,

    Very interesting and very useful stuff to give it a shot in my environment. unfortunately i failed to download the zip file, can you please send me the file or the link.

    Regards
    vrkumar01

Leave a Reply