<?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>SQL Agent Job Discovery not working?</title><link>http://blogs.technet.com/jimmyharper/archive/2009/06/05/sql-agent-job-discovery-not-working.aspx</link><description>The SQL Server Management Pack includes an option to discover and monitor SQL Server Agent Jobs for SQL 2000/2005/2008. The Discovery for this is disabled by default: I ran into an issue recently where all Agent Jobs for specific SQL Servers were not</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: SQL Agent Job Discovery not working?</title><link>http://blogs.technet.com/jimmyharper/archive/2009/06/05/sql-agent-job-discovery-not-working.aspx#3267825</link><pubDate>Fri, 24 Jul 2009 16:27:11 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3267825</guid><dc:creator>Ravi</dc:creator><description>&lt;p&gt;We have SCOM SP1 and all jobs have been discovered. However, the alert doesn't show the name of job. What should be done to have the Job Name in Alert?&lt;/p&gt;
&lt;p&gt;Alert: Long Running Jobs&lt;/p&gt;
&lt;p&gt;Source: SQLAgent$SCOMXY0798&lt;/p&gt;
&lt;p&gt;Path: SQL Server Name;SQL Instance Name&lt;/p&gt;
&lt;p&gt;Last modified by: System&lt;/p&gt;
&lt;p&gt;Last modified time: 7/24/2009 7:13:05 AM Alert description: There are long running agent jobs on SQL instance SCOMXY0798 on computer SQLServerName. &amp;nbsp;This may indicate an issue with one or more jobs.&lt;/p&gt;
</description></item><item><title>re: SQL Agent Job Discovery not working?</title><link>http://blogs.technet.com/jimmyharper/archive/2009/06/05/sql-agent-job-discovery-not-working.aspx#3270616</link><pubDate>Tue, 04 Aug 2009 20:17:16 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3270616</guid><dc:creator>jimmyharper</dc:creator><description>&lt;p&gt;The alert that you posted is from the &amp;quot;Long Running Jobs&amp;quot; monitor, which targets the SQL Agent. &amp;nbsp;This just tells you if the Agent has ANY jobs wich are running long.&lt;/p&gt;
&lt;p&gt;For alerts on specific Agent Job duration, use the &amp;quot;Job Duration&amp;quot; monitor, targeted at &amp;quot;SQL 2005/2008 Agent Job&amp;quot;. &amp;nbsp;There is nothing in the alert description for this monitor, but the Source field will be the name of the Agent Job.&lt;/p&gt;
</description></item><item><title>re: SQL Agent Job Discovery not working?</title><link>http://blogs.technet.com/jimmyharper/archive/2009/06/05/sql-agent-job-discovery-not-working.aspx#3275757</link><pubDate>Sat, 22 Aug 2009 00:39:40 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3275757</guid><dc:creator>Shiva</dc:creator><description>&lt;p&gt;Is it possible to tap into some kind of event notification / service broker message whenever a SQL Agent Job Completes (either succeeds or fails, doesn't matter) ?&lt;/p&gt;
&lt;p&gt;I need to tap into sysjobhistory rows and copy them over in another db for long history analysis / trends. However, I am unable to find a way to do this as soon as a job is completed running. &lt;/p&gt;
&lt;p&gt;Short of such an event, are my options restricted to simply polling the table for 'Job Outcome' step ? That seems terribly inefficient / improper approach...&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
</description></item><item><title>re: SQL Agent Job Discovery not working?</title><link>http://blogs.technet.com/jimmyharper/archive/2009/06/05/sql-agent-job-discovery-not-working.aspx#3278244</link><pubDate>Mon, 31 Aug 2009 17:35:28 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3278244</guid><dc:creator>nfomi</dc:creator><description>&lt;p&gt;&amp;quot;So, what if you have a very large number of SQL Servers and Agent Jobs and do not want to worry about making sure that all of them have text in the Description field? &amp;nbsp;To take care of this, I created a “workaround” version of the SQL Agent Job Discoveries that will discover these jobs and enters NULL for the NULL propeerty.&amp;quot;&lt;/p&gt;
&lt;p&gt;I wouldn't consider this a work-around. &amp;nbsp;Rather, it's a fix to an inadequately designed script. &amp;nbsp;A description is not required when create a SQL Server Agent job, and, in many cases (at least in our environment), is either not needed or is redundant because the name of the job accurately describes the tasks the job will perform. &amp;nbsp;Any script/program that's going to process this data needs to be designed to correctly handle any valid data from the database.&lt;/p&gt;
</description></item></channel></rss>