I am looking for a plugin that can monitor a specific process and if the process goes down have the ability to start an .exe file that restarts the process. I found the process monitor and i found the command line plugin, is there one that has both these abilities?
Answer by Derek A. · Sep 17, 2014 at 12:41 AM
I don't believe there is one that does both. The Process Monitor could probably be modified to do that. I think you'd want to keep them seperate though, since one is a Monitor Plugin (Process Monitor) and the other is an Action Plugin (command line plugin). So the condition of the alert will be the measure from the process monitor and the action of the alert will be the command line for restarting the process. Using dynaTrace's built in incidents, you'll be able to track this better. Just my opinion/preference though.
Thanks for the reply Derek. Is there a way to have the Process Monitor Plugin call the command line plugin?
Answer by Derek A. · Sep 17, 2014 at 12:50 AM
I don't believe so, in past versions of dynaTrace the different types of plugins (Monitor/Task/Action) didn't play well wtih one another. Perhaps it's changed. You probably wouldn't need to call the plugin directly though, but in the code inside of the Process Monitor plugin, you would just execute your command line code to restart the process.
Answer by Andreas G. · Sep 17, 2014 at 12:54 AM
I also agree with Dereks approach. You want to keep these two things separated. You have a monitor that tells you the status of your system and use then use an Action to fix that status.
An alternative approach would be to write a Task. A Task (as the name implies) can be executed on a regular basis and can do the Check and Restart in one Task.
Andi
Learn the enhanced capabilities of the next generation Dynatrace AI root cause analysis and how to feed it with your own data sources.
Wednesday, February 20, 2019
Register today!
Learn the enhanced capabilities of the next generation Dynatrace AI root cause analysis and how to feed it with your own data sources.
Wednesday, February 20, 2019
Register today!
Would you like to have an early taste of what we have cooked up for 2019? We would love to hear your feedback and improve some of the new features. Check NAM 2019 Beta release notes.
Sign up today!
Available Plugins and Extensions 7 Answers
Setting Metric Group value in Custom Plugin Development 4 Answers
Integrating dynaTrace into other tools with SNMP v2 2 Answers
Top Process Monitoring Plugin - unable to execute monitor 7 Answers
Any plugin/way to see vmware hardware parameters like battery, fan, processors? 1 Answer