A user was seeking advice on creating a ControlUp trigger specific to a particular application only used by a small user group. They wanted to check if a user was assigned the application before running the trigger, without embedding the check in the script itself. However, it was mentioned that ControlUp triggers can only be associated with a single object type, so a script may need to be used to achieve this. Alternative methods were also suggested.
Read the entire ‘Creating ControlUp Triggers for Specific Applications’ thread below:
I might be overlooking something obvious but wanted to get some advice on here. I’m working on creating a ControlUp trigger that is specific for a particular application that is only assigned to a very small subset of users. Because of this I don’t want the script to run except for users who are assigned this application. I’m looking for a way that I can determine if a user is assigned this application directly from ControlUp (without putting the check in the script itself) and trigger off another value (Free space on system drive). The users who are assigned the application are in a specific AD group, they also will have a unique folder in Program Files, some unique registry keys, and the process will be running in the background on login. Is there a straight forward way to check for any of these conditions directly in the ControlUp trigger?
No you can not.
As Landon mentions here, triggers are associated with a single object type/table. Machine, user, process, etc.
Your use case needs data from most likely process (desired process is running) and machine or logical drive (free disk space). Trigger cannot be created across tables or object types.
You can fix this in a few ways, all of them involve scripts though
Appreciate the info Dennis. I’ll consider embedding this check in the PowerShell or triggering in a different way.
Continue reading and comment on the thread ‘Creating ControlUp Triggers for Specific Applications’. Not a member? Join Here!
Categories: All Archives, ControlUp Real-Time DX, ControlUp Scripts & Triggers