Содержание

Managed availability

Проверяем состояние мониторов

На всех серверах

Get-ExchangeServer | where IsE15OrLater -eq $true | %{Get-HealthReport -server $_| ? AlertValue -eq Unhealthy}

На конкретном сервере

get-HealthReport -Identity (hostname) |
     ?{$_.State -eq "Online" -and $_.AlertValue -eq "Unhealthy"} |
     format-table -autosize
 
Get-HealthReport -Identity $env:COMPUTERNAME | ? AlertValue -eq "Unhealthy" | fl
 
Get-ServerHealth -Identity (hostname) |?{ $_.alertvalue -ne 'healthy' -and $_.Alertvalue -ne 'Disabled'}

Запустить на выполнение проблемную probe

Invoke-MonitoringProbe <health set name>\<probe name> -Server <server name> | Format-List
Invoke-MonitoringProbe ECP.Proxy\ECPProxyTestProbe -Server (hostname) | Format-List

Посмотреть список probe и monitor

Get-MonitoringItemIdentity -Identity FrontendTransport –Server "CONSEA-MC1" | format-table name, itemtype, Identity –AutoSize 
Get-MonitoringItemIdentity -Identity ECP.Probe –Server "CONSEA-MC1" | format-table name, itemtype, Identity –AutoSize 

Посмотреть события ошибок мониторинга в EventLog

$InboundProxyProbeResults = (Get-WinEvent –ComputerName consea-mc1 -LogName Microsoft-Exchange-ActiveMonitoring/ProbeResult -FilterXPath "*[UserData[EventXML[ServiceName='FrontEndTransport'][ResultType='4']]]" | % {[XML]$_.toXml()}).event.userData.eventXml 
 
$InboundProxyProbeResults | select -Property *Time,Result*,Error*,*Context,State* | Out-GridView 
 
 
(Get-WinEvent -LogName Microsoft-Exchange-ActiveMonitoring/ProbeDefinition | % {[XML]$_.toXml()}).event.userData.eventXml | ?{$_.Name -like "OnPremisesInboundProxy"}| fl ExtensionAttributes  
 
$replEndpointProbeResults = (Get-WinEvent –ComputerName <Server> -LogName Microsoft-Exchange-ActiveMonitoring/ProbeResult -FilterXPath "*[UserData[EventXML[ResultName='ServiceHealthMSExchangeReplEndpointProbe/RPC/MSExchangeRepl'][ResultType='4']]]" | % {[XML]$_.toXml()}).event.userData.eventXml}
 
$replEndpointProbeResults | select -Property *Time,Result*,Error*,*Context,State* | Out-GridView