amidaware / tacticalrmm

A remote monitoring & management tool, built with Django, Vue and Go.
https://docs.tacticalrmm.com
Other
3.24k stars 443 forks source link

Feature Request: Skip if offline/in maintenance option when scheduling tasks/scripts #497

Open renbanford opened 3 years ago

renbanford commented 3 years ago

When scheduling tasks, scripts and checks (Whether using the bulk schedule tools, under the agent details or via automation policies), it would be nice to have a "skip if offline" option (Similar to Kaseya), which allows you to skip machines that are not currently reporting in/offline. It may also be pertinent to also skip running the associated task/script on machines which are in maintenance mode, if this option were to be selected.

wh1te909 commented 3 years ago

this is already happening, scripts and commands are fire and forget so if the agent is offline it's not gonna get it anyway only thing i could add would be to skip online agents in maintenance mode

renbanford commented 3 years ago

The "fire and forget" option doesn't appear when scheduling a task: image

I was thinking possibly to be able to have a regular, scheduled task skipped when a machine is offline/in maintenance mode?

wh1te909 commented 3 years ago

"add automated task" you can think of a web wrapper around the windows task scheduler.

create a task and then look in task scheduler on the agent and you'll see the task created. obviously if the computer is turned off then the task wont run.

and if the agent is "offline" meaning the computer is turned on but has no internet, the task will attempt to run and fail. the way it works is agent just stores the task id, and when it's time to run it reaches out to the rmm with the task id. rmm queries database for that id, and sends back to the agent all the info like the script, timeout etc. so without this info the agent cannot run the task and so it will simply return without running.

so basically if an agent is offline its not going to be able to run anything anyway. hopefully that clears up what i meant by fire and forget. same thing with running bulk commands, scripts etc. rmm will just fire and forget to all the agents you selected. if the agent is not responding the rmm doesn't care it will just skip it and move on to the next

so only option i see is adding a "skip if in maintenance mode"

renbanford commented 3 years ago

Ah, understood - thank you.

A "skip if in maintenance mode" would also be useful :)