• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
ControlUp Community

ControlUp Community

Connect, Learn, and Grow

  • Blog
  • Podcast
  • Meetups
  • Archives
  • Categories
    • ControlUp One Platform
    • ControlUp for Apps
    • ControlUp for Compliance
    • ControlUp for Desktops
    • ControlUp Scripts & Triggers
    • ControlUp Synthetic Monitoring
    • ControlUp for VDI
  • Topics
  • Events
    • Logos & Wallpaper
    • ControlUp.com
  • Join

How to Set Up Fail-safe Actions with ControlUp Triggers

Posted on June 27, 2025

Users discussed options to set up a trigger to run an action and if that action fails, run a different one. The ControlUp trigger packs include a trigger that alerts when machines go unregistered, followed by a script action to reboot the machine. Members suggested creating two triggers or using Invoke-cuaction to programmatically run actions and determine if a VM needs to be rebooted. The support document containing more information is available at https://support.controlup.com/docs/trigger-packs?highlight=triggers#citrix


Read the entire ‘How to Set Up Fail-safe Actions with ControlUp Triggers’ thread below:

Is there a way to setup a trigger where it runs a action and if that action fails then run a different action? At times I have machines go un-registered and then I run the "Restart Citrix Desktop Service" and if it fails to run that I want to have it reboot the VM.


We do have a trigger in our trigger packs that looks for unregistered machines, alert you, then you can add a script action to reboot the bad machine after X amount of mins.

https://support.controlup.com/docs/trigger-packs?highlight=triggers#citrix


You basically have 2 options.

Option 1, like Clint suggested

Create 2 triggers.

Trigger 1 – machine is unregistered for 5 minutes. This would attempt to restart the Citrix Desktop Service

Trigger 2 – machine is unregistered for 10 minutes. This would restart the machine at the hypervisor level

Option 2, invoke-cuaction

Invoke-cuaction can programmatically run actions. Those can be built-in admin actions (like restart/reset a VM) or script actions. You also get action results.

You would write a trigger that says machine is unregistered for 5 minutes. That trigger would use invoke-cuaction to attempt to restart the Citrix Desktop Service. You’d then use the values returned by that action to determine if you need to reboot the VM.

Continue reading and comment on the thread ‘How to Set Up Fail-safe Actions with ControlUp Triggers’.  Not a member? Join Here!


Categories: All Archives, ControlUp Scripts & Triggers
Topics: Automation & Alerting, Citrix, Scripts, Triggers

Ask Us Anything, Connect, Learn, and Grow with the ControlUp Community!

Login to the ControlUp Community to ask us anything, stay up-to-date on what’s new and coming soon and meet other like-minded techies like you.

Not already a member? Join Today!

Primary Sidebar

ControlUp Academy

Enroll in ControlUp Academy for expert-led technical training, equipping you with skills to effectively deploy, manage, and grow your ControlUp investment.

Learn here >

Rotating Images

Hidden Gem from our Community on Slack!

ControlUp Betas - What's Coming Next?
NEW ControlUp Features - Stay Up-to-Date!
ControlUp Scripts - Scripting, Zero to Hero
Latest KB Articles - Be the First to Learn
Did you Know - with Sivan Kroitoru
Practical Perspectives Technical Use Case Training

Video Tutorials Library

Visit our technical how-to videos, offering step-by-step tutorials on advanced features, troubleshooting, and best practices.

Watch here >

ControlUp Blog

Check out the ControlUp blog for expert advice and in-depth analysis.

Read here >

ControlUp Script Library

Visit the ControlUp technical script library, which offers a multitude of pre-built scripts and custom actions for your monitoring and troubleshooting requirements.

See here >

ControlUp Support

Visit the ControlUp support home and to delve deeper into ControlUp solutions.

Browse here >

Download ControlUp RealTime DX

Start with ControlUp for real-time end-user environment insights, swift troubleshooting, and unprecedented performance optimization. Download now.

Download here >

Footer

      

ControlUp Community
Of Techie, By Techie, For Techie!

Terms of Use | Privacy Policy | Security
Dive Deeper, Learn more at ControlUp.com

  • facebook
  • twitter
  • youtube
  • linkedin

© 2023–2025 ControlUp Technologies LTD, All Rights Reserved.

We use cookies to ensure that we give you the best experience on our website. by continuing to use this site you agree to our Cookie policy..