Hi. I am wondering what the best approach is to plug a shell script in to Dynatrace.
Our Linux sys admin is writing a shell script that returns a value (1 or 0). If the value is 1, then I would like to generate a problem within Dynatrace and raise a custom error alert. Is this possible and, if so, what series of steps would I need to implement?
Many thanks, Cam
Apart from the API @ACKERMANN M. mentions, there is the option to write your own plugin that is executed by OneAgent. However, just for parsing 1/0 value from a single script, this is quite a big effort. If it's feasible for you, you can also use this generic execution template for that:
Dynatrace has no option to execute arbitrary scripts or commands on monitored systems, except for oneagents/activegate plugins for security reasons.