question

DMITRII N. avatar image
DMITRII N. asked ·

Automation of enabling/disabling montoring 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?

configurationDynatrace Managedhost monitoringlicensemaintenance window
10 |2000000 characters needed characters left characters exceeded

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

1 Answer

Sebastian K. avatar image
Sebastian K. answered ·

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

1 comment Share
10 |2000000 characters needed characters left characters exceeded

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

Hello, Sebastian!

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

Regards,

Dmitry

0 Likes 0 · ·