How do I remove old Monitoring for a server that has been removed?

ComputerHabit 946 Reputation points
2024-11-12T18:50:00.57+00:00

I have been getting Health issues since I retired an Exchange server.

The health report shows the HealthSet "RemoteMonitoring" has issues.

In the healthset I can see it is mentioning the retired server.

How do I remove the healthsets for the retired servers?

I can't find a single command that cleans up healthsets.

Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,352 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,687 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Xintao Qiao-MSFT 4,075 Reputation points Microsoft Vendor
    2024-11-13T03:11:35.7033333+00:00

    Hi, @ComputerHabit

    Removing healthsets associated with retired Exchange servers can be tricky because there isn't a built-in command to remove them directly.

    You can try the following methods.

    First, make sure that the Exchange server has been properly removed.

    If there are any server-specific monitoring overrides, you can try removing them using the following command:

    Remove-ServerMonitoringOverride -Identity "<HealthSet><MonitorName>" -Server "RetiredServerName"
    

    Similarly, if there are global monitoring overrides, you can delete them using the following command:

    Remove-GlobalMonitoringOverride -Identity "<HealthSet><MonitorName>"
    

    Ensure that any references to the decommissioned server are removed from Active Directory. After you make these changes, restart the Microsoft Exchange Health Manager service to ensure that the changes take effect.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.