Grrrr, SCOM 2012 na mojoj mašini mi ne da da zatvorim stare “Alerts” i/ili “Warnings”, stalno prikazuje grešku :
*****
Please provide the following information to the support engineer if you have to contact Microsoft Help and Support :
Microsoft.EnterpriseManagement.CompositionEngine.CompositionException: An error occurred executing the command: [Microsoft.EnterpriseManagement.Monitoring.DataProviders!AlertProvider/SetAlertResolutionStatesAcrossTiers] in provider: [Microsoft.EnterpriseManagement.Monitoring.DataProviders.AlertProvider, Microsoft.EnterpriseManagement.Monitoring.DataProviders, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35].An object of class MonitoringAlert with ID 0995400f-371f-4b26-b85d-83a3291bec09 was not found.

*****
Problem je u tome što ih je koleginica zatvorila, i kod nje se ti alerti više uopšte ne pojavljuju.
Probala sam da izađem i ponovo uđem u SCOM (Klasika :-)), ali neće. Čak ni (nenamerni) reset moje mašine nije pomogao.
Probala sam i da startujem Microsoft:Enterprise.Management.Monitoring.Console.exe /clearcache, i to direktno iz komandne linije (link), a takođe i da dodam taj svič u startovanje :

Pogađate : ništa.
Postoji Power Shell skripta ovde, koja bi trebala da sredi problem :
*****
PS D:\PoSh-skripte> .\CloseOldAlertsFromRules2012.ps1
Security warning
Run only scripts that you trust. While scripts from the internet can be useful, this script can potentially harm your computer. If you trust this script, use the Unblock-File cmdlet to allow the script to run without this warning message.
Do you want to run D:\PoSh-skripte\CloseOldAlertsFromRules2012.ps1?
[D] Do not run [R] Run once [S] Suspend [?] Help (default is “D”): R
New-SCOMManagementGroupConnection : The Data Access service is either not running or not yet initialized. Check the event log for more information.
At D:\PoSh-skripte\CloseOldAlertsFromRules2012.ps1:9 char:12
+ $connect = New-SCOMManagementGroupConnection -ComputerName localhost
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (Microsoft.Syste…nnectionCommand:NewSCManagementGroupConnectionComma
nd) [New-SCManagementGroupConnection], ServiceNotRunningException
+ FullyQualifiedErrorId : ExecutionError,Microsoft.SystemCenter.Core.Commands.NewSCManagementGroupConnectionCommand
get-scomalert : The Data Access service is either not running or not yet initialized. Check the event log for more information.
At D:\PoSh-skripte\CloseOldAlertsFromRules2012.ps1:20 char:1
+ get-scomalert -criteria ‘ResolutionState=”0” AND IsMonitorAlert=”F …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (Microsoft.Syste…tSCAlertCommand:GetSCAlertCommand) [Get-SCOMAlert],
ServiceNotRunningException
+ FullyQualifiedErrorId : ExecutionError,Microsoft.SystemCenter.OperationsManagerV10.Commands.GetSCAlertCommand
*****
A u “Event View” ništa pametnog…..

Rešeno!!! Trebalo je samo da pokrenem SCOM kao domenski admin nalog uz “/clearcache” svič namešten kao na gornjoj slici 🙂