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 12345»»»

Monitoring Database Blocking Through SCOM 2007 Custom Rules and Alerts Expand / Collapse
Author
Message
Posted Saturday, October 11, 2008 12:23 PM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Wednesday, October 8, 2014 12:34 PM
Points: 1,865, Visits: 3,615
Comments posted to this topic are about the item Monitoring Database Blocking Through SCOM 2007 Custom Rules and Alerts

__________________________________________________________________________________

Turbocharge Your Database Maintenance With Service Broker: Part 2
Turbocharge Your Database Maintenance With Service Broker: Part 1
Real-Time Tracking of Tempdb Utilization Through Reporting Services
Monitoring Database Blocking Through SCOM 2007 Custom Rules and Alerts
Preparing for the Unthinkable - a Disaster/Recovery Implementation
Post #584420
Posted Monday, October 13, 2008 4:30 AM
SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Thursday, October 16, 2014 4:46 AM
Points: 5,415, Visits: 1,400
Nice one..


Post #584768
Posted Monday, October 13, 2008 11:39 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Tuesday, October 7, 2014 8:03 AM
Points: 53, Visits: 232
Marios,
Very useful article, thanks. This opens up other posibilities with SCOM.
Post #585045
Posted Monday, October 13, 2008 8:31 PM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Wednesday, October 8, 2014 12:34 PM
Points: 1,865, Visits: 3,615
SQLEngine (10/13/2008)
Marios,
Very useful article, thanks. This opens up other posibilities with SCOM.


Thanks!

I will post the .vbs as a .txt file in the next day or so.


__________________________________________________________________________________

Turbocharge Your Database Maintenance With Service Broker: Part 2
Turbocharge Your Database Maintenance With Service Broker: Part 1
Real-Time Tracking of Tempdb Utilization Through Reporting Services
Monitoring Database Blocking Through SCOM 2007 Custom Rules and Alerts
Preparing for the Unthinkable - a Disaster/Recovery Implementation
Post #585182
Posted Tuesday, October 14, 2008 6:54 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 6:52 AM
Points: 13,920, Visits: 28,314
Excellent. Well done. I'll have to see if we can use this one on our servers.

----------------------------------------------------
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood..." Theodore Roosevelt
The Scary DBA
Author of: SQL Server Query Performance Tuning
SQL Server 2012 Query Performance Tuning
SQL Server 2008 Query Performance Tuning Distilled
and
SQL Server Execution Plans

Product Evangelist for Red Gate Software
Post #585409
Posted Tuesday, October 14, 2008 7:49 AM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Wednesday, October 8, 2014 12:34 PM
Points: 1,865, Visits: 3,615
Grant Fritchey (10/14/2008)
Excellent. Well done. I'll have to see if we can use this one on our servers.


Thanks!

I'm attaching the 2 .vbs scripts here with .txt extensions to make it easier for people to download them.


__________________________________________________________________________________

Turbocharge Your Database Maintenance With Service Broker: Part 2
Turbocharge Your Database Maintenance With Service Broker: Part 1
Real-Time Tracking of Tempdb Utilization Through Reporting Services
Monitoring Database Blocking Through SCOM 2007 Custom Rules and Alerts
Preparing for the Unthinkable - a Disaster/Recovery Implementation


  Post Attachments 
Custom_SQL2000_Blocking.vbs.txt (56 views, 8.31 KB)
Custom_SQL2005_Blocking.vbs.txt (106 views, 8.93 KB)
Post #585470
Posted Wednesday, October 15, 2008 4:22 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Friday, September 27, 2013 3:21 AM
Points: 74, Visits: 44
Hi,

I want to use this SCOM. i just want to know where can i find it .where is this application residing in vista. do i need to install it

Thanks
Raj Deep.A
Post #586068
Posted Wednesday, October 15, 2008 6:03 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 6:52 AM
Points: 13,920, Visits: 28,314
Operations Manager is a completely seperate product sold by Microsoft. It's intention is for large scale enterprise level monitoring, reporting and alerting. Here's a place to learn a bit more about it (http://technet.microsoft.com/en-us/library/bb310604.aspx?ppud=4)

----------------------------------------------------
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood..." Theodore Roosevelt
The Scary DBA
Author of: SQL Server Query Performance Tuning
SQL Server 2012 Query Performance Tuning
SQL Server 2008 Query Performance Tuning Distilled
and
SQL Server Execution Plans

Product Evangelist for Red Gate Software
Post #586111
Posted Friday, November 7, 2008 1:47 PM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: 2 days ago @ 12:09 PM
Points: 307, Visits: 386
Hi Marios

I like the way you handled this task and the great information it provides. However, I had some errors on the 2000 script thats making me do a lot of head scratching. These our all older 2000 instances on either Windows Server 2000 or 2003

Does any of these make any since to you:

Event Type: Warning
Event Source: Health Service Modules
Event Category: None
Event ID: 21413
Date: 11/7/2008
Time: 1:03:57 PM
User: N/A
Computer: GIS
Description:
The Event Policy for the process started at 1:03:56 PM has detected errors in the output. The 'StdErr' policy expression:
\a+
matched the following output:
C:\Program Files\System Center Operations Manager 2007\Health Service State\Monitoring Host Temporary Files 1\55987\Custom_SQL2000_Blocking.vbs(153, 9) ADODB.Command: Item cannot be found in the collection corresponding to the requested name or ordinal.



Command executed: "C:\WINDOWS\system32\cscript.exe" /nologo "Custom_SQL2000_Blocking.vbs" gis
Working Directory: C:\Program Files\System Center Operations Manager 2007\Health Service State\Monitoring Host Temporary Files 1\55987\

One or more workflows were affected by this.

Workflow name: MomUIGeneratedRule81b439253e464a408ab1d0402a91aad1
Instance name: MSSQLSERVER
Instance ID: {6BEBE62A-DEE0-BEB3-8822-FD9B7941FD43}
Management group: SCOM

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


Event Type: Warning
Event Source: Health Service Modules
Event Category: None
Event ID: 21413
Date: 11/7/2008
Time: 3:43:07 PM
User: N/A
Computer: GIS
Description:
The Event Policy for the process started at 3:43:06 PM has detected errors in the output. The 'StdErr' policy expression:
\a+
matched the following output:
C:\Program Files\System Center Operations Manager 2007\Health Service State\Monitoring Host Temporary Files 1\56373\SQL2000Blocking.vbs(100, 1) Microsoft OLE DB Provider for SQL Server: String or binary data would be truncated.



Command executed: "C:\WINDOWS\system32\cscript.exe" /nologo "SQL2000Blocking.vbs" gis
Working Directory: C:\Program Files\System Center Operations Manager 2007\Health Service State\Monitoring Host Temporary Files 1\56373\

One or more workflows were affected by this.

Workflow name: MomUIGeneratedRule624f6f0c92d14efc8c6798ca7787892d
Instance name: MSSQLSERVER
Instance ID: {6BEBE62A-DEE0-BEB3-8822-FD9B7941FD43}
Management group: SCOM

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Post #599277
Posted Friday, November 7, 2008 2:42 PM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Wednesday, October 8, 2014 12:34 PM
Points: 1,865, Visits: 3,615
Harold Buckner (11/7/2008)
Hi Marios

I like the way you handled this task and the great information it provides. However, I had some errors on the 2000 script thats making me do a lot of head scratching. These our all older 2000 instances on either Windows Server 2000 or 2003

Does any of these make any since to you:

Event Type: Warning
Event Source: Health Service Modules
Event Category: None
Event ID: 21413
Date: 11/7/2008
Time: 1:03:57 PM
User: N/A
Computer: GIS
Description:
The Event Policy for the process started at 1:03:56 PM has detected errors in the output. The 'StdErr' policy expression:
\a+
matched the following output:
C:\Program Files\System Center Operations Manager 2007\Health Service State\Monitoring Host Temporary Files 1\55987\Custom_SQL2000_Blocking.vbs(153, 9) ADODB.Command: Item cannot be found in the collection corresponding to the requested name or ordinal.



Command executed: "C:\WINDOWS\system32\cscript.exe" /nologo "Custom_SQL2000_Blocking.vbs" gis
Working Directory: C:\Program Files\System Center Operations Manager 2007\Health Service State\Monitoring Host Temporary Files 1\55987\

One or more workflows were affected by this.

Workflow name: MomUIGeneratedRule81b439253e464a408ab1d0402a91aad1
Instance name: MSSQLSERVER
Instance ID: {6BEBE62A-DEE0-BEB3-8822-FD9B7941FD43}
Management group: SCOM

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


Event Type: Warning
Event Source: Health Service Modules
Event Category: None
Event ID: 21413
Date: 11/7/2008
Time: 3:43:07 PM
User: N/A
Computer: GIS
Description:
The Event Policy for the process started at 3:43:06 PM has detected errors in the output. The 'StdErr' policy expression:
\a+
matched the following output:
C:\Program Files\System Center Operations Manager 2007\Health Service State\Monitoring Host Temporary Files 1\56373\SQL2000Blocking.vbs(100, 1) Microsoft OLE DB Provider for SQL Server: String or binary data would be truncated.



Command executed: "C:\WINDOWS\system32\cscript.exe" /nologo "SQL2000Blocking.vbs" gis
Working Directory: C:\Program Files\System Center Operations Manager 2007\Health Service State\Monitoring Host Temporary Files 1\56373\

One or more workflows were affected by this.

Workflow name: MomUIGeneratedRule624f6f0c92d14efc8c6798ca7787892d
Instance name: MSSQLSERVER
Instance ID: {6BEBE62A-DEE0-BEB3-8822-FD9B7941FD43}
Management group: SCOM

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


The SQL-2000 vbs script seems to be failing at lines 100 and 153.
If possible, try running the vbs script from the cmd prompt on the server on which you are getting the errors. Do you still get the same errors?

I will have a look at the code and will send out an update soon.


__________________________________________________________________________________

Turbocharge Your Database Maintenance With Service Broker: Part 2
Turbocharge Your Database Maintenance With Service Broker: Part 1
Real-Time Tracking of Tempdb Utilization Through Reporting Services
Monitoring Database Blocking Through SCOM 2007 Custom Rules and Alerts
Preparing for the Unthinkable - a Disaster/Recovery Implementation
Post #599300
« Prev Topic | Next Topic »

Add to briefcase 12345»»»

Permissions Expand / Collapse