Trouleshooting SCOM MP Discovery Scripts

If you suspect your discoveries are failing first thing to look at is Operations Manger Event log on the RMS,  MS, GW Servers. Look out for event ID’s 33333 & 10801.

You often get 33333 events if Agent Proxying needs enabling.

Event ID 10801 is more informative as it will give you the Discovery ID so all you have to do is open command shell and type ‘get-discovery -id f3124f32-cba5-5974-77fd-004e5c2f05ce f3124f32-cba5-5974-77fd-004e5c2f05ce’ for example. You can also put additional string | ft DisplayName

For Event 33333 you will need to get the Monitor ID from the Event description

Using the below as an example

For EventOrigin run – get-monitoringobject -id ae2c0896-7e5a-4188-a567-b48d9faee588 in commandshell

For Monitor ID run – get-monitor -id b59f78ce-c42a-8995-f099-e705dbb34fd4 in commandshell

Event Type:    Warning
Event Source:    DataAccessLayer
Event Category:    None
Event ID:    33333
Date:        09/09/2011
Time:        01:04:42
User:        N/A
Computer:   TestServerRMS
Description:
Data Access Layer rejected retry on SqlError:
Request: p_StateChangeEventProcess — (BaseManagedEntityId=3ac604c1-376f-40a9-db97-1d3bc6b8d04d), (EventOriginId=ae2c0896-7e5a-4188-a567-b48d9faee588), (MonitorId=b59f78ce-c42a-8995-f099-e705dbb34fd4), (NewHealthState=3), (OldHealthState=1), (TimeGenerated=09/09/2011 00:03:38), (Context=<DataItem type=”Microsoft.Windows.EventData” time=”2011-09-09T01:03:38.0000001+01:00″ sourceHealthServiceId=”C841C146-8BC7-156C-…), (RETURN_VALUE=0)
Class: 14
Number: 2627
Message: Violation of PRIMARY KEY constraint ‘PK_StateChangeEvent’. Cannot insert duplicate key in object ‘dbo.StateChangeEvent’.

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

Advertisements
This entry was posted in Authoring, Management Packs. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s