Ability to perform actions on alert triggers
It would be very beneficial to have a way to run a PS script or batch file when an alert is fired. We monitor certain Windows Processes and occasionally those processes will fail. We would like the ability to auto restart those processes when the Alert is triggered.
gtbiv1
Posted 3 years ago·Last reply 3 years ago
7 comments
LM User
·3 years agoYes, they should.
lina146
·3 years agoSince it can be difficult to initiate operations outside of the system, LM ought to build this functionality in. One day they will, probably at an additional fee (some new licenced thing like "LM Actions"). Alternately, you could use the undocumented debugger API, which would let you execute virtually anything in response to receiving an alert. Not that I ever have trouble sleeping due to this.
LM User
·3 years ago@mnagel, the one i linked to is Suding's but improved.
LM User
·3 years agoI'm not sure I'm really convinced StackStorm is the way to go, given that the commands I want to run should be run on the Collector the device is currently assigned to. By using StackStorm, there has to be API access back in, SS has to figure out which collector it's on, send the console command, scrape the output, then post the output back into the alert. That's a lot of back and forth between LM and SS when having the ability in house would simplify things greatly.
Michael Baker
·3 years agoYou could us this at no extra cost.. https://www.logicmonitor.com/support/stackstorm-integration-overview
LM User
·3 years agoNot what you asked for, but maybe what you're looking for: https://github.com/sweenig/lm/tree/main/Service_restart