Home » 2006 (Page 6)
Yearly Archives: 2006
Custom Script Implementation
I have written a article about custom scripts in MOM 2005. The answer to many MOM questions is to use a custom script. This article is about how-to implement and setup a script.
http://www.momresources.org/momguides/Custom_Script_Implementation.pdf
Inside Microsoft Operations Manager
“Inside Microsoft Operations Manager” is a newsletter from Silent Software Inc, with focus on MOM. In the latest number there was one of my replys about exchange monitoring published.
You can read it here
MOM Notification Workflow and SQL 2005
Soon there will be a KB telling that MOM Notification Workflow solution will not work with SQL 2005, and there is no plans to make it work either. That is sad becurse NTWF is a great solution to improve mail notification. Â
Two new KB
Two new interesting KB is available. There has been a lot of questions about these subjects so they are eagerly awaited. Â
How to move Microsoft Operations Manager 2005 Reporting together with the MOM Reporting database to a different computer
http://support.microsoft.com/?id=922332
How to Troubleshoot DTS and Database Sizing issues in MOM 2005 Reporting
http://support.microsoft.com/?id=899158
A tool to change number of days stored in SystemCenterReporting
Out of the box 395 days of data is stored in MOM Report database, SystemCenterReporting. There is now a unsupported tool to change this. The tool is named SCDWGroomingSettings and you can download it here. If you want to stick to the supported way but still want to change number of days you can read KB.
Restart a service
Here is a script that will monitor a service. If the service is “stopped” it will be restarted and a event will be generated in the local event viewer. You can create a rule to collect event ID 4 and/or event source WSH, then you will get information about it in Operators Console.
strServiceName = "Alerter"strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colListOfServices = objWMIService.ExecQuery _
("Select * from Win32_Service Where Name = '" & strServiceName & "'")
For Each objService in colListOfServices
If objService.State = "Stopped" Then
objService.StartService()Const EVEN_INFORMATION = 4
Set objShell = CreateObject("Wscript.Shell")
objShell.LogEvent 4, strServiceName & " has been restarted."
End If
Next
MOM databas on SQL 2005 X64
A hotfix is available to let you create a Microsoft Operations Manager (MOM) 2005 database on a computer that is running Microsoft SQL Server 2005, X64 Edition
http://support.microsoft.com/default.aspx?scid=kb;en-us;921278
SQL Server Management Pack
A new verion of “Microsoft SQL Server Management Pack for Microsoft Operations Manager 2005” are available. Version 9.0.2047.0000.
Count Files
Here is a script that will count file in a directory. If there is more than X file in the directory a event will be generated in the local event viewer. You can create a event rule that runs the script and a collection rule that collections event ID 2 from your machine. The local event will have event ID 2, you can also add criteria to check if description includes “There is more than”.
In the following example the script will monitor if C:\ have more than 2 files.
Set fs = CreateObject(“Scripting.FileSystemObject”)
folderName = “c:\”
numbers = fs.GetFolder(folderName).Files.Count
if (numbers > 2) Then
Const EVENT_WARNING = 2
Set objShell = CreateObject(“Wscript.Shell”)
objShell.LogEvent 2, “There are more than 2 files in the directory. The directory is ” & folderName & “. Number of files are ” & numbers End IfÂ
Common questions about MOM 2005
Here is a summary of some of the most common questions I have seen in forums
Is it possible to exclude a machine from a rule?
Yes it is. You can do this in some different ways. One way is to edit the rule and “enable rule-disable overrides for this rule”. You then choose a machine or a computer group that no longer will be affected by this rule. Remember to change “override name” else it will be hard to get a overview under “Override Criteria”, also remember to write down all your changes in your organization change log.
Is it possible to place a computer into maintenance mode with a script?
Yes, please read my article about maintenance mode.
How can I change importance flag on notification e-mails?
You can do it with MOM Notification Workflow. You change it in the AppADF.xml file.
How can I remove a management pack?
There was a KB about this before (http://support.microsoft.com/?kbid=918278) but it is not public anymore. What you can do is to disable the rule group and no rules will be active anymore. Â
Convert a incident to a service request, with a bit of Orchestrator magic
Best of MMS [Stockholm/Sweden]
How-to run the Opalis Integration Server Client from a workstation machine (Win7)
Recent Comments