System Center Orchestrator 2012 : Internet Application monitor

Today, a new Runbook based only on the default activities, I will show you how to monitor an Internet Application with System Center Orchestrator 2012 beta.

Work case : we have an intranet website, we want to ensure the availability. If the website is not available we want to restart a service, re-check the availability, and if still unavailable, we want to be notify.

For that we will use the following activities :
image

1. Runbook design : Every x seconds, we check the availability of the website. If available, we just do an entry in the log with the information “Site up”. If the website is not available, we restart the World Wide Web Publishing Service. If the site become available after the service restarted, we do an entry in the log with the information “Site up”, if still available, we do an entry in the log with the information “Site down” and we send an email.image

2. Monitor Date/Time activity : We decide to run this Runbook every 30 seconds.
image

3. Get Internet Application activity : In that activity, we define the website that we want to monitor. It’s also possible to check a particular word on the website.
image

This activity allows to monitor http website availability, but not only, the following protocols are available in General  part :
image

4. If the website is available the activity returns Success
image 

5. Thanks to the Send Platform Event activity, We could now write in the log that the site web is available.
image

6. Now, if the website is not available, the Get Internet Application activity returns Failed.
image
image

We have to edit the link between the Get Internet Application activity and Start/Stop Service activity for using the failed condition.
image
image

7. The Start/Stop Service activity will restart the World Wide Web Publishing Service on the webserver.
image

8. If the service successfully started, we re-check the website availability for a second time. If available we could now link back to the previous Send Platform Event activity, that will write in the log that the site web is available.
image

9. If the Start/Stop Service activity didn’t succeed to restart the service, or if the website is still unavailable at the second check, we will use a second Send Platform Event activity for writing in the log that the site is down.
image

10. Send Platform Event activity configuration:
image

11. Last but not least, we could use the Send Email activity for being notify of the website unavailability.
image

image
image

12. Let’s testing the policy, the web site is available.
image

13. Start the Runbook :
imageimage
image

14. Stop the World Wide Web Publishing Service, the website is now unavailable. 
image
image

15. The Runbook detects this unavailability, start the service, check again the availability and notify that the site a now available.
image
image
image

16. If the Runbook doesn’t succeed to start the service, or if the site is still unavailable after the service restart, we are notify.
image
image

Et voilà, how to simply monitor a website availability. As always, the Runbook is available here : DOWNLOAD

Microsoft System Center Orchestrator 2012 Resources :

Microsoft System Center Orchestrator 2012 beta is available as public beta at the Microsoft Download Center : http://www.microsoft.com/download/en/details.aspx?id=26503

Microsoft System Center Orchestrator 2012 Team Blog : http://blogs.technet.com/b/scorch/

TechNet Forums for System Center Cross Platform and Interoperability : http://social.technet.microsoft.com/Forums/en-US/category/scinterop

Cheers
Christopher KEYAERT
http://twitter.com/keyaertc

Tweet about this on TwitterShare on FacebookShare on LinkedInShare on Google+Email this to someoneShare on TumblrPin on PinterestDigg thisShare on RedditFlattr the authorBuffer this pageShare on StumbleUpon

About Christopher Keyaert

Christopher Keyaert is a Consultant, focused on helping partners to leverage the System Center and Microsoft Azure cloud platform. He is also a Microsoft Most Valuable Professional (MVP) for Cloud and Data Center Management and a Microsoft Certified Trainer (MCT).
This entry was posted in Uncategorized. Bookmark the permalink.

2 Responses to System Center Orchestrator 2012 : Internet Application monitor

  1. BartVrakking says:

    Looks good, but use something like counters to prevent the flooding of your LOG and the emails you are going to send.

    cheers, Bart

  2. christopher@vnext.be says:

    Yes sure, here it’s just a simple example on how to use these activities.

Leave a Reply

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