Blog
By Post of the Week on 8/20/2010 10:37:03 PM • Rank (1268) • Views 1403
0

0

SCC_Logo_smallThe prize for week 4 in our 2010/2011 post-of-the-week contest (week ending Aug 7th) goes to SCOM 2007 guru Raphael Burri. Raphael provided an XML in answer to the challenge of dynamic web monitoring – discovering the URL (and changes in the URL).

The Problem

For Robert G., dynamic web monitoring on Operations Manager 2007 SP1 was necessary to automatically to avoid a very real business problem. Says Robert:

I am trying to make our web monitoring as dynamic as possible. The monitoring that we need to do is only till the first page is loaded in other words only request 1. The way I see it there is 2 basic thinks needed for web monitoring. The watcher node and the URL.

Watcher node: I have a discovery that uses registry keys to discover watcher nodes.

URL: We have the IIS MP that discovers all websites. What I do is I target the IIS Websites class looking for specific websites and populate a class with the URL info. The reason I want to discover the URL's is that if the sever name changes the URL changes and if the URL is hard coded in the Web Application (URL Probe) then you have to re-record the Web Application or in the least change the URL in the URL Probe. In doing this you have to take the MP through a full development cycle and have everything tested again. This takes time so the URL will not be monitored for a time. Bad for Business.

The Solution

Says Raphael: Assuming you only need to call that discovery script once a day or so: You may also use the pre-R2 way of using PoSh from within an MP by calling powershell.exe from aCommandExecuterDiscoveryDataSource running somewhere where you've got the Operations Manager Shell installed and proxying is enabled (RMS for example). Pseudo code snippet is attached.

A word of warning: That way of calling PoSh is rather heavy on the HealthService as it needs to load the entire PoSh environment on every call. So don't use it unless absoultely required and set a reasonably high frequency.

Read and Download

To read the original discussion and download the code, register on the site (free), login and visit the original thread at http://www.systemcentercentral.com/Forums/tabid/60/indexid/75912/Default.aspx?tag=Forums%20MP_Development

Well done Raphael! You're name goes into the hat for the next Post-of-the-Week prize drawing at TechEd Europe in Berlin.

SPECIAL THANKS TO OUR SPONSORS

We want to give a special shout out to proud Gold Sponsor Quest Software, who helps make all of this possible. As we've said in the past..great company with great people we've enjoyed working with over the years. Quest is now offering VMware ESX and VSphere monitoring for FREE!

Click the banner below to check out Quest Management Xtensions (QMX) Solutions for System Center, including how to get started monitoring your VMware infrastructure

Quest_Banner

Previous Installments of POST OF THE WEEK (2nd edition)

Details on the POST OF THE WEEK

Want to know how your contributions can be considered for the post of the week? Read more HERE.

 

Follow System Center Central via Twitter and RSS

Twitter_icon rss_big_default_300x300

Comments - Comment RSS


Who Viewed
Who Reviewed
Categories
Related Pages
Shortened URL
http://tinyurl.com/2bpk4eq

Top Contributors
Featured Members
Pete Zerger
Points: 65622
Level: System Center Expert
Tommy Gunn
Points: 42748
Level: System Center Expert
Simon Skinner
Points: 40804
Level: System Center Expert
Stefan Koell
Points: 28999
Level: System Center Expert
Andreas Zuckerhut
Points: 27734
Level: System Center Expert