Goal: trying to create a monitor that will return an alert when a process set to autostart is not on
I am currently using the following script:
' Monitor if automatic process is not running
Dim oAPI, oBag
Set oAPI = CreateObject("MOM.ScriptAPI")
Set oBag = oAPI.CreatePropertyBag()
Set objFSO = CreateObject("Scripting.FileSystemObject")
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root
\cimv2")
Set colListOfServices = objWMIService.ExecQuery _
("Select * from Win32_Service Where StartMode = 'Auto'")
For Each objService in colListOfServices
If Not objService.Started = True Then
strDesc = "Service " & objService.Caption & " is not running!"
Call oBag.AddValue("Description", strDesc)
Call oBag.AddValue("State", "BAD")
Else
Call oBag.AddValue("State", "GOOD")
End If
Next
I get the following error from the create a unit monitor wizard:
Date: 6/16/2009 9:27:11 AM
Application: System Center Operations Manager 2007
Application Version: 6.0.6278.0
Severity: Error
Message:
: Database error. [MPInfra_p_ManagementPackInstall] failed with exception:
Database error. [MPInfra_p_ManagementPackInstall] failed with exception:
The transaction log for database 'OperationsManager' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases