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

ControlUp Community

Connect, Learn, and Grow

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

Triggering Scripts in ControlUp: Options and Recommendations.

Posted on May 24, 2024

Users discussed options for triggering scripts in ControlUp. One option is to use the $cutriggerobject variable with the .NET engine, while another is to pass parameters explicitly. It was also mentioned that a filter in the trigger will not work with two different gateways with the same name and IP. It was decided to use collections for this purpose. Despite the busy weekend ahead, one user plans to finish an article for their website.


Read the entire ‘Triggering Scripts in ControlUp: Options and Recommendations.’ thread below:

I have a trigger that i want to attach a script action, I want to pull the variables into the script but not sure on how they would be Processed. There is two different NetScaler’s with a a Gateway with same name and IP on each one, the alert is to let me know of the status of the gateway on both NetScaler’s is not equal to up. Not sure how the Name and state variable’s will process into arguments?


2 options:

Option 1, cutriggerobject

If you run the script using the execute script with .NET engine you’ll have access to a variable inside the script named $cutriggerobject. It’ll contain meta data about the trigger invocation. See https://support.controlup.com/docs/automated-actions-how-to-pass-trigger-related-parameters


Thanks, will have a look at that on monday your a star i had not seen that article


Option 2, script parameters

Alternatively you can pass parameters explicitly. This allows you to pass values that aren’t part of the trigger filter.

Do note that if you use parameter names, you’ll have to add a param block.

Last but not least. Your filter will never work. It only works against a gateway that whose name is both Citrix ADC PP AND Citrix ADC SC. Which is impossible. ‘


tat should be an Or but yes i think i need to us collections

but it s friday my brain is already thinking it after 17:00


😄

Long weekend for US based people as well


haha lucky u

i got busy weekend want to finish an article for my web site and get some opinions on it before doing all the social media thing on it next week

Continue reading and comment on the thread ‘Triggering Scripts in ControlUp: Options and Recommendations.’.  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

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 DEX solutions.

Browse 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–2026 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..