ReSearch This KB – VMM Agent Not Monitored By Operations Manager

Alert: VMM Agent Not Monitored By Operations Manager

Management Pack Name: Microsoft System Center Virtual Machine Manager 2012 R2 Monitoring

Management Pack Version: 3.2.7510.0

Rule or Monitor: Monitor

Rule or Monitor Name: System Center 2012 Virtual Machine Manager VMM Agent Monitored By OpsMgr

Rule or Monitor Notes: None

Issue:

– Windows Server 2012 R2 Hyper-V host, VMM 2012 R2. All latest patches are installed.

– Agent is installed on this Hyper-V

– Agent’s status (Windows Computer’s status) looks weird: all monitors are green except all top-level monitors. All top-level monitors (Entity Health, Availability, Configuration, Security and Performance) has a blank circles and the overall ‘Status’ for this computer in Windows Computer view is ‘Not Monitored’.

– In VMM console affected Hyper-V host is not in a maintenance mode and fully operational and healthy

Resolution:

Somehow VMM has ‘forgot’ to take out some classes for this server from maintenance mode.

How to find if you affected by the same issue:

1. Run this script and check if you have objects in a MM with the ScheduledEndTime far in a future or objects in a MM that shouldn’t be in a MM:

Import-Module OperationsManager

New-SCOMManagementGroupConnection -ComputerName MyManagementServerName

$MMList = Get-SCOMMaintenanceMode

foreach ($Entity in $MMList) {

$Object = Get-SCOMClassInstance -ID $Entity.MonitoringObjectId

$LogString = $Object.DisplayName+” is in MM until “+$Entity.ScheduledEndTime

Write-Host $LogString

$Object = $null }

Now you can end maintenance mode for these objects.

For ALL objects:

$time = (Get-date).AddMinutes(10)

Get-SCOMMaintenanceMode | Set-SCOMMaintenanceMode -EndTime $time

or for a specific object:

$instance = Get-SCOMClassInstance -Id Your-Object’s-GUID

Get-SCOMMaintenanceMode -Instance $instance | Set-SCOMMaintenanceMode -EndTime $time

Wait for a 10 minutes and the alert should be closed.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.