cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Automation of enabling/disabling monitoring mode

Hi to everybody.


I want to automate process of enabling and disabling monitoring of OneAgents.
In my case i have more hosts and host units than it licensed. i have 4 servers with installed agents there and i have 2 server in prod mode and 2 in stand by. So when i switching one server to prod and in same time to stand-by-mode another one i want to turn off Dynatrace monitoring on first one and turn on on second one.

Yes, i can by the hands in Dynatrace to do it but any chance to automate this process?

any idea how can i do it?

 

3 REPLIES 3

skrystosik
DynaMight Guru
DynaMight Guru

First of all, simple switching between those hosts will not work. You will also require restart of application process after enabling monitoring on those 2 hosts.

Unfortunately there is no option or API in DT to switch monitoring mode on hosts so far. But what can I suggest is set all hosts as enabled and cut traffic between dynatrace server and those hosts. After starting fallback you can automate network rule to open traffic to fallbacks and close to basic ones.

Regards,

Sebastian


Regards, Sebastian

Hello, Sebastian!

Yes, this is good idea to cover my needs. Thank you for answer

Regards,

Dmitry


ben_wrightson
Dynatrace Champion
Dynatrace Champion

It will soon be possible to enable/disable monitoring on a host via the API: https://www.dynatrace.com/news/blog/manage-thousands-of-hosts-with-the-new-oneagent-on-a-host-rest-a...

Featured Posts