<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Using a recovery in OpsMgr - Basic</title><link>http://blogs.technet.com/kevinholman/archive/2008/03/26/using-a-recovery-in-opsmgr-basic.aspx</link><description>This is a simple overview of using a recovery for a custom Monitor in OpsMgr Lets say we create a simple service monitor in OpsMgr... for this example - I will use the Print Spooler service: Create a new monitor, unit monitor, and choose windows services</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Using a recovery in OpsMgr - Basic</title><link>http://blogs.technet.com/kevinholman/archive/2008/03/26/using-a-recovery-in-opsmgr-basic.aspx#3139326</link><pubDate>Mon, 20 Oct 2008 21:53:59 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3139326</guid><dc:creator>npagonor</dc:creator><description>&lt;p&gt;Do you have a procedure for scenario that you talked about in your last paragraph? &amp;nbsp;I have a need to attempt recovery about three times then raise an alert that can be forwarded to the responsible tech. &amp;nbsp;Any help will be appreciated.&lt;/p&gt;
&lt;p&gt;send response to: npagonor@up.com&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
</description></item><item><title>re: recovery attempt - three times then alert</title><link>http://blogs.technet.com/kevinholman/archive/2008/03/26/using-a-recovery-in-opsmgr-basic.aspx#3139352</link><pubDate>Mon, 20 Oct 2008 23:01:22 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3139352</guid><dc:creator>kevinhol</dc:creator><description>&lt;p&gt;I dont - and I dont know offhand of any community examples.... basically the logic is, that you would write a script that attempts to restart the service three times with a sleep between, then if it doesnt start... you can have the script create an event in the opsmgr EVT log. &amp;nbsp;Then have a rule watching for this event and generate an alert. &amp;nbsp;You could always have the recovery just do a &amp;quot;NET START &amp;amp; NET START &amp;amp; NET START&amp;quot; but running these back to back isnt as good as a script, which can sleep, analyze the service state, kill processes, etc... but that all depends on your scripting skills and testing.&lt;/p&gt;
</description></item></channel></rss>