Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 1234»»»

SCOME - Part 3: The Failed Jobs Report Expand / Collapse
Author
Message
Posted Thursday, April 23, 2009 8:54 PM


Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Sunday, January 12, 2014 9:26 PM
Points: 68, Visits: 172
Comments posted to this topic are about the item SCOME - Part 3: The Failed Jobs Report
Post #703720
Posted Friday, April 24, 2009 12:37 AM


Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Sunday, January 12, 2014 9:26 PM
Points: 68, Visits: 172
Hi all,

There appears to be a dead image in the article, so I've posted the image here. This is what our Failed Jobs report will eventually look like. It has three buttons that will retrieve the relevant logs on the server. Remember, all the work in the previous articles is not just for the one report. It's just part of the initial setup. After this, you'll be able to create a report from anything SQL Server holds in it's system tables for all your servers, with minimal effort.

Post #703763
Posted Friday, April 24, 2009 4:29 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Friday, July 19, 2013 7:44 AM
Points: 38, Visits: 162
We've been using a different variant on this, first there's a job that runs every hour that mails us the results of the following view:

SELECT     CONVERT(DATETIME, RTRIM(H.run_date)) + ((H.run_time * 9 + H.run_time % 10000 * 6) + H.run_time % 100 * 10) / 216e4 AS run_date, J.name, 
H.message, H.run_duration, H.server
FROM LINKED_SERVER_NAME.msdb.dbo.sysjobhistory AS H INNER JOIN
[SRV-NAV01].msdb.dbo.sysjobs AS J ON H.job_id = J.job_id
WHERE (H.step_id = 0) AND (H.run_status = 0)

This also works like a charm and is easy to set up. You can either pro-actively monitor the view, or have a job schedule mail these results to you (like we did). You can simply UNION select any production server (linked) that you'd like or take it one step further and use CLR to enumerate through all available servers.
Post #703832
Posted Friday, April 24, 2009 8:32 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Monday, May 12, 2014 3:12 AM
Points: 54, Visits: 72
Shameless plug : please see the project on http://www.codeplex.com/sqlconsolidate - it does the same on a console application * and can export data to csv/xml/ email / database


Post #704001
Posted Friday, April 24, 2009 2:44 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, May 24, 2010 12:11 PM
Points: 8, Visits: 108
COOL STUFF SO FAR. WHEN WILL YOU GET INTO THE .NET STUFF
Post #704308
Posted Friday, April 24, 2009 2:53 PM


Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Sunday, January 12, 2014 9:26 PM
Points: 68, Visits: 172
LostFromTheStart (4/24/2009)
COOL STUFF SO FAR. WHEN WILL YOU GET INTO THE .NET STUFF


Was going to do it in article 5, but people are getting restless, so going to try and do it next.
Post #704312
Posted Sunday, April 26, 2009 11:13 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Yesterday @ 5:21 PM
Points: 541, Visits: 791
Excellent series! I especially like that I can build on this type of infrastructure and extend it further (and don't have to pay for expensive 3rd party tools ).


Post #704631
Posted Wednesday, April 29, 2009 3:04 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, March 15, 2013 9:20 AM
Points: 18, Visits: 113
Great stuff so far. When will part 4 be posted?
Post #707239
Posted Thursday, April 30, 2009 3:15 AM


Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Sunday, January 12, 2014 9:26 PM
Points: 68, Visits: 172
Hi Gary,

I'll try and finish the next three articles this weekend and publish them on my site thebuddingdba.com, Monday. I'll send them off to SQLServerCentral.com but I think there is a three or four week wait.

Kind regards

Drew
Post #707498
Posted Thursday, April 30, 2009 9:27 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, March 15, 2013 9:20 AM
Points: 18, Visits: 113
Thanks Drew, we're looking forward to the new articles.
Quick question: We have set up links to several servers that just have the default instance installed and it works great...however, how can we set up servers with named instances? For example, we have a SQL Server farm with 9 named instances. How can we link to each of the named instances for monitoring?

Thanks.

Gary and Ann
Post #707767
« Prev Topic | Next Topic »

Add to briefcase 1234»»»

Permissions Expand / Collapse