Archive

Archive for April, 2010

Knoydart – time for a break

April 29, 2010 Leave a comment

I’ll be away for the next 10 days walking across and around the Knoydart Peninsula – no mobile phone reception, no email ..in fact, lots of nothing … so the blog will be quiet for a while.

Advertisements

Console Problems – Alert detail view, “Page Not Found”

April 21, 2010 Leave a comment

Some people seem to be having problems where by the Alert Detail view is returning “Page Not Found” errors. This seems to be a problem with their user profile and can be resolved by either:

1) Locating the momcache.mdb file in C:\Users\%username%\AppData\Local\Microsoft\Microsoft.Mom.UI.Console\momcache.mdb – close the console, rename the momcache.mdb to and reopen the console. This creates a new cache file.

2) Alternatively, just rename your profile e.g. by adding _old in Docs and Settings and relaunch the console.

Categories: Consoles, Operator

Migrating Operations Manager databases

April 21, 2010 Leave a comment

When moving the Operations Manager Databases, it appears that sometimes the sys.messages table in the master database does not populate with the user messages which are inserted as a part of the installation of the operations manager db install. This causes the reporting datawarehouse setup to fail. The following SQL statement can be run against the master DB to insert the user messages – you then need to rerun the setup but make sure that you uninstall Reporting on the old server, before you run the setup.

As always, use these scripts at your own risk. If in doubt, contact Microsoft PSS.

— UserRoleAdministratorAlreadyExistsException
EXECUTE sp_addmessage @msgnum = 777980100, @msgtext = N’A user role with the
administrator profile already exists. Cannot create another user role with the same

profile.’, @severity = 16, @lang = ‘us_english’, @with_log = false, @replace =
‘REPLACE’
GO

— UserRoleSystemDeleteException
EXECUTE sp_addmessage @msgnum = 777980101, @msgtext = N’Cannot delete system user

roles.’, @severity = 16, @lang = ‘us_english’, @with_log = false, @replace =
‘REPLACE’
GO

— UserRoleSystemException
EXECUTE sp_addmessage @msgnum = 777980102, @msgtext = N’Cannot create user roles
with IsSystem specified.’, @severity = 16, @lang = ‘us_english’, @with_log = false,

@replace = ‘REPLACE’
GO

— NULL is not a valid Group Id for the Scope specified
EXECUTE sp_addmessage @msgnum = 777980103, @msgtext = N’NULL is not a valid GroupId

for the Scope specified.’, @severity = 16, @lang = ‘us_english’, @with_log = false,

@replace = ‘REPLACE’
GO

— NULL is not a valid TypeId for the Scope specified
EXECUTE sp_addmessage @msgnum = 777980104, @msgtext = N’NULL is not a valid TypeId

for the Scope specified.’, @severity = 16, @lang = ‘us_english’, @with_log = false,

@replace = ‘REPLACE’
GO

Alerts that are raised by the monitors should not be manually resolved in Operations Manager 2007

April 21, 2010 Leave a comment

A recent KB Article which discusses Alert Management with Monitors Best Practice – http://support.microsoft.com/kb/979388

“Unsealing” sealed management packs

April 14, 2010 Leave a comment

Sadly you cannot edit existing rules in sealed management packs. If you do want to change the scripts or any monitoring within a sealed management pack, the best practice here is to set an override against the items you need to customise (enable = false). And then recreate the two items in a custom management pack.

Although in theory you can break open a sealed management pack to make changes to the management pack, not surprisingly it isn’t a good idea. A seal is there for a reason. To show something hasn’t been tampered with. That it is genuine. Breaking open the sealed management packs to see how they function is a great way of learning. But don’t try and re-import (even if you do reseal it with your own seal) as:

1) Once you break the seal the packs are no longer supported.

2) You will not be able to upgrade the management pack. Jonathan Almquist gave a great explaination – “this is because you do not possess the key pair the vendor uses to seal their MP’s. Without the key pair, you can still seal the MP by generating your own key, but it will not match any key the vendor will use to seal future MP’s…which ultimately means you cannot download an updated MP from the vendor and just import. You’ll need to delete your overrides MP, delete the MP you now made your own, import the updated vendor MP, then recreate any overrides you had that targeted those classes in your ‘custom’ MP.”

Categories: Management Packs

Scheduled Maintenance – Process Monitors

April 3, 2010 Leave a comment

$rootMS=”XXXXXXX”
$processname = “Process Monitor Name”
$minutes=”10″
$comment=”Mostly Harmless”
$reason=”PlannedOther”

Add-PSSnapin “Microsoft.EnterpriseManagement.OperationsManager.Client” -ErrorVariable errSnapin;

Set-Location “OperationsManagerMonitoring::” -ErrorVariable errSnapin;
new-managementGroupConnection -ConnectionString:$rootMS -ErrorVariable errSnapin;
set-location $rootMS -ErrorVariable errSnapin;

$ProcessWatcher = (Get-MonitoringClass -name Microsoft.SystemCenter.Process.BaseMonitoredProcess) | Get-MonitoringObject | where {$_.DisplayName -eq $processname}

$startTime = [System.DateTime]::Now
$endTime = $startTime.AddMinutes($minutes)

“Putting Process into maintenance mode”

foreach ($name in $processwatcher) {
New-MaintenanceWindow -startTime:$startTime -endTime:$endTime -monitoringObject:$name -comment:$comment -Reason:$reason

}

Categories: Maintenance Mode

Scheduled Maintenance Mode for Web Monitors

April 3, 2010 Leave a comment

If you want to use scheduled maintenance against web watchers then this article is for you.

http://www.scom2k7.com/schedule-a-into-url-maintenance-mode/

http://www.scom2k7.com/schedule-a-group-of-urls-into-maintenance-mode/

Categories: Maintenance Mode