SCOM 2019 Reinstall - Integration with agents

Václav Jandek 291 Reputation points
2021-03-03T14:06:31.213+00:00

Hello,

I've started in company and my first task is nothing more than to create monitoring infrastructure with SCOM.

They had same SCOM installed from previous tech but it was the mess. So I reinstall whole SCOM and SQL. It seems fine and everything is running, but when I try to add agent to SCOM I got following error. "One or more computers you are trying to manage are alredy in the process of being managed"

So I go to Pending Management and I can see that there is computer asking for permissions. When I click approve I got error:

Note: The following information was gathered when the operation was attempted. The information may appear cryptic but provides context for the error. The application will continue to run.

Microsoft.EnterpriseManagement.Common.ObjectNotFoundException: f806f629-9ddd-b82e-df85-4e36e9307e5b
at Microsoft.EnterpriseManagement.Common.Internal.ServiceProxy.HandleFault(String methodName, Message message)
at Microsoft.EnterpriseManagement.Common.Internal.AdministrationServiceProxy.ApproveAgentPendingActions(IList1 agentPendingActionIds, String userName) at Microsoft.EnterpriseManagement.Mom.Internal.UI.Views.PendingManagementView.<>c__DisplayClass3.<OnApproveAgent>b__2(Object param0, ConsoleJobEventArgs param1) at Microsoft.EnterpriseManagement.Mom.Internal.UI.Console.ConsoleJobExceptionHandler.ExecuteJob(IComponent component, EventHandler1 job, Object sender, ConsoleJobEventArgs args

When I try to approve it again, next error occur.

Index was out of range. Must be non-negative and less than size of the collection. Parameter name: Index.

I believe that these errors are connected with fact that I reinstall SCOM with all Agents still reporting to SCOM Server.

Does anyone have come accross this problem?

Thank you,
Vaclav

Operations Manager
Operations Manager
A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
1,413 questions
0 comments No comments
{count} votes

Accepted answer
  1. Václav Jandek 291 Reputation points
    2021-03-04T16:23:15.86+00:00

    Resolved

    I accept agent with powershell command.

    Get-SCOMPendingManagement | where {$_.AgentName -eq "agent.name.domain"}|Approve-SCOMPendingManagement

    Some agents starts working and other I had to delete and then discover them again, after that it was working.

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Crystal-MSFT 42,961 Reputation points Microsoft Vendor
    2021-03-04T02:11:56.007+00:00

    @Václav Jandek , From your description, I find we have reinstalled SCOM 2019 but the agents are failed to deploy to the old clients. If there's any misunderstanding, please let us know.

    Firstly, we suggest to manually uninstall the agents on these clients. If the old operations console still exits, we can choose method 1 in the following link. If not there, we can choose method 2.
    https://www.prajwaldesai.com/uninstall-scom-agent/
    NoteL Non-microsoft link, just for the reference.

    Then try to deploy the agent from the new Operation console again and see if it is working.

    Hope it can help.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Václav Jandek 291 Reputation points
    2021-03-04T10:15:13.87+00:00

    Hello,

    Thank you for the tip.

    I've tried to reinstall Agent directly from client -- add/remove app on computer.

    So far I can see that still same issue is ongoing.

    Vaclav

    0 comments No comments