Update: this issue also applies to SCOM 2012 R2 as confirmed in this article by Kevin Holman
Microsoft released a KB article on the 5th of December on how to deal with a particular issue in SCOM 2012 SP1. It may be worth applying this fix preemptively if you are still running SP1, in order to avoid unnecessary downtime.
“After an instance of Microsoft SQL Server that hosts the OperationsManager database goes offline, the System Center Management service of the Microsoft System Center 2012 Operations Manager Service Pack 1 (SP1) management server stops responding.
For example, the System Center Management service stops responding after the instance of SQL Server disconnects, restarts, or fails. To recover from this issue after the instance of SQL Server is available again, you must restart the System Center Management service. “
NB: As always backup your registry before making any changes
To resolve this issue, you can enable the automatic recovery feature in System Center 2012 Operations Manager SP1. By default, this automatic recovery feature is disabled.
To enable the automatic recovery feature on the management server, follow these steps:
Start Registry Editor.
Locate and then click the following registry subkey:
DALInitiateClearPoolSecondsType: DWORD
Decimal Value: 60Note The DALInitiateClearPoolSeconds setting controls when the management server drops the current connection pool and when the management server tries to reestablish an SQL connection. We recommend that you set this setting to 60 seconds or more to avoid performance issues.
Restart the System Center Management service on the management server.
Update Rollup 4 for System Center 2012 Service Pack 1 has been released:
Note: This Post from Microsoft hi-lights issues with the SCSM UR4 and explains why it was pulled from the download center. “Our team realized today that no Debug Symbols were available for the MSI. Giving us no ability to support any issue that may occur. We are asking everyone that has downloaded it as of now to please “NOT” install UR4 into your Service Manager 2012SP1 environments. If you have already installed the update, we ask you to please bear with us while we sort out the issue. “
.This update contains many fixes listed below, particularly for SCVMM and overall seems like a good update, there are 20 updates for SCOM and the SCOM Unix agent , however as usual test before implementing as these updates can cause their own complications.
More information and fix list: Here Download: Here
As many of you are aware new Management Packs have been released for Windows Server 2012 R2 and System Center 2012 R2. Remember to read those guides and leave a comment if you experience any issues with these Management Packs.
Something to be aware of when monitoring SharePoint, especially if you upgraded your environment from SCOM 2007 to SCOM 2012, is that you might find that your previously discovered SharePoint servers suddenly return to being Unidentified.
What appears to be missing from the SharePoint Management pack configuration guide is that in a SCOM 2012 deployment the SharePointMP.Config file needs to be present in the same location on all management servers. What seems to happen is that if the management server that executes the workflows for the configuration task does not have the config file, then the workflows undiscover the SharePoint servers, which makes them come up as unidentified again. This is due to the task being executed against the “All Management Servers” resource pool.
A symptom of the above is that when running the configuration task you find that you get this error:
Failed to create process due to error ‘0x8007010b : The directory name is invalid.’, this workflow will be unloaded
Note: This applies to monitoring SharePoint 2010 and 2013
Something that was brought to my attention by a colleague of mine the other day. When running the Most Common Alerts report in SCOM 2012, if you select more then 15 for your top N alerts then the report renders with multiple blue, red and green blocks. I then tested on my SCOM 2012 environment and discovered the same situation.
We logged a support call to MS on this one and they were able to replicate the issue in their lab environments. They have since provided us with a fixed version of the report which has been amended to render better for higher amounts of alerts.
In order to update the report follow these steps:
1. Browse to the report server manager http://server/reports
2. Open Microsoft.SystemCenter.DataWarehouse.Report.Library
3. On the drop down menu next to the report Microsoft.SystemCenter.DataWarehouse.Report.MostCommonAlerts select download and make a backup of this report
4. Then click on upload File
5. Browse to the updated .rdl file
6. Select “Overwrite items if it exists” and then click OK
7. Refresh the Reporting Pane in the SCOM console and run the report
Something to bare in mind if you upgraded your SCOM 2007 environment to SCOM 2012 is that any AV exclusions you may have had in place for the monitoringhost.exe and similar processes will need to be redone. This is due to the installation path changing during the upgrade process.
The default installation path for SCOM 2012 RTM / SP1 is as follows:
Agent: C:\Program Files\System Center Operations Manager
Server: C:\Program Files\System Center 2012\
Recently I came across an issue with SCOM 2012 availability reports which causes the bars at the top level to display incorrectly.
This is due to an error which is causing a duplicate entry to be created in the HealthServiceOutage table which has an outage start time but not an outage end time which causes an incorrect availability calculation for those objects..
The following SQL query will allow you to identify if you are affected by this issue:
Step 1:
SELECT * FROM HealthServiceOutage HS1 JOIN HealthServiceOutage HS2
ON HS1.StartDateTime = HS2.StartDateTime
AND HS1.ManagedEntityRowId = HS2.ManagedEntityRowId
WHERE HS2.EndDateTime IS NULL AND HS1.HealthServiceOutageRowId <> HS2.HealthServiceOutageRowId
If this query returns any records make a note of the StartDateTime values in the duplicate rows this date will be used again later to correct the problem.
This issue is addressed in UR3 for SCOM 2012 SP1 but if you are not planning on rolling this out in the near future there is a private fix available from Microsoft which will correct the relevant stored procedure. Also as this is an acknowledged known issue Microsoft will not charge for any case to address this problem.
Once you have applied the fix you will need to use the following queries to add an outage end time to the duplicate entries and then re-aggregate the affected data.
As always before performing any database update operations, ensure to make a full backup of the OperationsManager and OperationsManagerDW databases.
Step 2:
This query will update the EndDateTime value from NULL to valid time stamp.
UPDATE HS2
SET HS2.EndDateTime = HS1.EndDateTime
FROM HealthServiceOutage HS1 JOIN HealthServiceOutage HS2
ON HS1.StartDateTime = HS2.StartDateTime
AND HS1.ManagedEntityRowId = HS2.ManagedEntityRowId
WHERE HS2.EndDateTime IS NULL AND HS1.HealthServiceOutageRowId <> HS2.HealthServiceOutageRowId
Once Step 2 has finished running you should re-run the query in Step 1 to make sure that there are no additional affected rows.
Step 3:
This query will set the DirtyInd value for all the rows in the specific time range from 0 to 1, making them eligible for re-aggregation. The start date will be the StartDateTime value noted in step 1, the end date should be todays date.
update StandardDatasetAggregationHistory
set DirtyInd = 1
where DatasetId = (Select Datasetid from Standarddataset where Schemaname = ‘state’)
and AggregationDateTime => ‘2012-21-01 00:00:00’
and AggregationDateTime < ‘2012-13-03 00:00:00’
Step 4:
Disable the Standard Data set Maintenance rule for the State data set ONLY, then run the below query to manually re-aggregate the State Data.
declare @i int
set @i=1
while(@i<=500)
begin
DECLARE @DataSet uniqueidentifier
SET @DataSet = (SELECT DatasetId FROM StandardDataset WHERE SchemaName = ‘State’)
EXEC standarddatasetmaintenance @DataSet
set @i=@i+1
Waitfor delay ’00:00:05′
End
Note: Thie query may need to be run multiple times depending upon the amount of data that need to be aggregated .
Step 5:
Once this query returns less then 5 rows Step 4 can be stopped and the Standard Data set Maintenance rule can be re-enabled.
Select count(*) from StandardDatasetAggregationHistory
where Datasetid = (Select Datasetid from Standarddataset where Schemaname = ‘state’)
AND DirtyInd=1
In my case there were 741 rows that needed to be re-aggregated, on average it takes between 5 and 10 minutes for each row, which resulted in 105 hours total, although your mileage may vary depending on the power of your SQL server and how busy your environment it.
Recently I experienced an issue with SCVMM 2012 where I needed to remove a vCenter which exists at a remote site.
Trying to remove the server from the console caused VMM to try and perform an inventory update before removing the server which resulted in this error, due to the inventory job taking quite some time to complete:
Error : Unable to perform the job because one or more of the selected objects are locked by another job.
To find out which job is locking the object, in the Jobs view, group by Status, and find the running or canceling job for the object. When the job is complete, try again.
I ended up requesting the VMware admin remove the access for my SCVMM run as account, which caused the inventory to fail immediatly and not lock the objects. This enabled me to remove the vCenter without resorting to drastic measures.