I am trying to find a way to run an executable file on a remote host using a workflow action. I don’t see any existing options on the Hub. Has anyone tried something like this?
I suppose it is theoretically possible, but would require a connection to the target system, as well as credentials with permission to execute the target file.
Afaik there is nothing available out of box. Dynatrace does not allow you to run executables anywhere directly, except for Extensions but it cannot be trigger there. My approach in your case would be to have a rest-to-cmd Daemon a call the rest endpoint from workflow, typically through edge connect.
adnanh/webhook (on GitHub, written in Go, lightweight): maps HTTP endpoints to scripts, with trigger rules for validating headers and payloads.
webhookd: similar, and it streams script output back in the HTTP response.
Rundeck or Ansible AWX / Event-Driven Ansible: a better fit if you need RBAC, audit logs and runs on multiple hosts.
Whichever you choose, call it through EdgeConnect, require a token or HMAC signature, allow only fixed scripts (never pass raw commands from the payload), and run it under a least-privilege service account.