question

VclavJandek-9281 avatar image
0 Votes"
VclavJandek-9281 asked ·

SCOM 2019 Reinstall - Integration with agents

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(IList`1 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, EventHandler`1 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

msc-operations-manager-general
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

VclavJandek-9281 avatar image
0 Votes"
VclavJandek-9281 answered ·

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 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@VclavJandek-9281 Thanks for the reply. I am glad to hear that it is working now. Congratulations! if there's anything we can help in the future, feel free to post in our Q&A to discuss together.

Thanks and have a nice day!

0 Votes 0 ·
Crystal-MSFT avatar image
0 Votes"
Crystal-MSFT answered ·

@VclavJandek-9281, 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.


·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

VclavJandek-9281 avatar image
0 Votes"
VclavJandek-9281 answered ·

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

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.