Home » Articles posted by Anders Bengtsson (Page 52)
Author Archives: Anders Bengtsson
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. Â
News in System Center Operations Manager 2007
Every time I am working with System Center Operations Manager 2007 beta 2 I find more and more new functions. Here are some of them that I found today
When a administrator is about to add new agents he/she will run the discovery wizard. A nice news is that you now is enable to do that with a LDAP question. In these screenshots I have choose to install agent on all machines that is named anything with SRV.
Discovery Wizard 1
Discovery Wizard 2Â
When a agent is installed manually there is a new function to get all settings about the management group from Active Directory. This improved failover and also its make is much more easy if you are using a image when installing new machines.
New MOM KB
Error message when you run the SQL Server 2000 Management Pack for MOM 2005 in low-privilege scenarios: “Unable to expand message 17055 ”
http://support.microsoft.com/?id=920707
New version of KB
How to remove a typical installation of Microsoft Operations Manager 2000
http://support.microsoft.com/kb/298481/en-us
Recent Comments