tacticalrmm icon indicating copy to clipboard operation
tacticalrmm copied to clipboard

Add option to "Run action from Tactical Server" in Alert MAnager -> Alert Failure/Resolved Settings

Open Zebble opened this issue 2 years ago • 7 comments

We use the Alert Failure/Resolved action to run a script that opens/closes a ticket in our ticketing system (ConnectWise). If a check/task fails and for some reason the Alert Failure/Resolved action can't run on the device itself, the system either won't open a ticket or can't close an existing ticket.

If the Failure and Resolved actions could have an option to "Run action from Tactical Server", this should address this problem.

This could also solve a potential security problem where Tactical may try to run the Failure/Resolved actions from a device on another customer's network if it can't run it on the main device.

Zebble avatar Oct 12 '22 14:10 Zebble

Just bumping this one up. Is this feature on the roadmap?

Zebble avatar Nov 07 '23 16:11 Zebble

Everything in github issues is on the TODO list. We keep issues cleaned of redundant stuff

silversword411 avatar Nov 07 '23 18:11 silversword411

added to official roadmap https://docs.tacticalrmm.com/roadmap/

wh1te909 avatar Dec 29 '23 19:12 wh1te909

added to official roadmap https://docs.tacticalrmm.com/roadmap/

When a script will be run on the server will it have all the variables of the agent available? and i suppose that it will have to be python or bash?

P6g9YHK6 avatar Feb 21 '24 13:02 P6g9YHK6

Also is it possible to have this as an action for conditional check/tasks output

P6g9YHK6 avatar Mar 02 '24 13:03 P6g9YHK6

@P6g9YHK6 it will have all the variables of the alert which will also have a reference to the agent so you can access all the agent fields.

It can be written in any language that is installed on the trmm server, not just python and bash. So node, perl, even powershell if you want (but you'll need to install powershell core on the trmm server). The interpreter will be set at the top of the script with a shebang, same way scripts on linux agents work now.

At the moment it will only be implemented for alert failure/resolved actions.

wh1te909 avatar Mar 11 '24 22:03 wh1te909

Hey @wh1te909 if you are writing this up, i'd say adding the ability to store the "ticket number" or even adding custom fields in alerts would be awesome and would make things way more extensible for future integration ideas and frameworks.

xrsxj avatar Apr 29 '24 01:04 xrsxj

Released in 0.19.0

wh1te909 avatar Jul 12 '24 19:07 wh1te909