28 Dec 2022 10:49 AM - last edited on 12 May 2023 12:47 PM by Michal_Gebacki
The new extension 2.0 mechanism does not allow to execute code like the 'plugin' system did. I understand that Dynatrace uses certain supported Datasources (SMTP, WMI, SQL, Prometheus) and has more control that way.
I have written a WMI extension now which reads certain information regarding certificate expiration. However, this info is not available in WMI by default. We need to execute a powershell script daily on all hosts to update this info in WMI. There are many automation systems that could do this but it introduces extra complexity and prerequisites. It would be great if the OneAgent extension controller would allow to run some custom script.
Off course, whatever that script does is not the responsibility of Dynatrace and it should not even contain means to communicate with Dynatrace. Just some kind of scheduler and monitoring on the script triggering and result. And off course distribution via the extension 2.0 system.
This would allow us to package everything together and it would just work on any Windows host.
An extra thing to think about when doing custom extensions... The root cert needs to be distributed to all Hosts / AG's that run your custom extension. Is there a way that this could be automated?
Solved! Go to Solution.
29 Dec 2022 02:30 PM
Hi @Bert_VanderHeyd !
Here is some information regarding your RFE : https://community.dynatrace.com/t5/Dynatrace-product-ideas/Extensions-2-0-Bash-Shell-Powershell/idi-...
It seems something is coming in Q1 23 🙂