18 May 2023 10:37 PM
Is it possible for two OneAgents to coexist on one host?
We have a customer that has Tenant A and a Tenant B was created for them.
The customer requires that the servers that are viewed on Tenant A, be viewed on Tenant B.
Is it possible to install a second agent on those servers, or is there an alternative to migrate all that data to the other tenant?
Thanks in advance
Solved! Go to Solution.
18 May 2023 11:00 PM
Two OneAgents on one host is not possible.
26 Sep 2023 09:44 AM - edited 26 Sep 2023 09:45 AM
I (and @MartijnA) wonder: on Linux (where suchs things are possible), what will happen if you install a second agent in another path. My hypothesis (not tested) is, that the 2nd install does not spot the 1st install nor its configuration, and will come a long way. It's the things like service (start) name configuration and watchdog part where things will become complicated.
Bottom line, kids do no try this at home 🙂
18 May 2023 11:08 PM
Hi @soportetr,
it's not possible to install two OneAgents on the same host, however, you can use oneagentctl
and in your case, you will be using OneAgent communication settings
the following is an example:
Linux or AIX:
./oneagentctl --set-server=https://my-server.com:443 --set-tenant=abc123456 --set-tenant-token=abcdefg123456790 --set-network-zone=<network-zone> --set-host-group=<host-group> --restart-service
Windows:
.\oneagentctl.exe --set-server=https://my-server.com:443 --set-tenant=abc123456 --set-tenant-token=abcdefg123456790 --set-network-zone=<network-zone> --set-host-group=<host-group> --restart-service
note: you need to restart the monitored processes and based on a case that I have faced, I think it will be recommended to restart the server.
19 May 2023 02:29 PM
Hi,
I agree with @Mohamed_Hamdy last comment of restart of server. I too faced this; and recommend restarting the server.
note: you need to restart the monitored processes and based on a case that I have faced, I think it will be recommended to restart the server.