• 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 Create a Trigger Alert for VMware Disabled Pools in ControlUp?

Posted on July 16, 2024

A user asked about creating a trigger alert for VMware disabled pools. They are wondering if it is possible to exclude specific pools from the check. A colleague responded that it is possible using the filter editor and suggested a few options, including using regex, wild cards, exporting and editing the JSON, and using cmdlets to interact with triggers. They also suggested contacting them for a call to discuss options. The cmdlet for building a filternode layout is provided as an example.


Read the entire ‘How to Create a Trigger Alert for VMware Disabled Pools in ControlUp?’ thread below:

Hi guys, i want to create a vmware disabled pool trigger alert. in the scope of the euc environment i can only check all of the desktop pools. if i want to exclude some pools it would have to be in the filter editor? the most efficient way is to add the pools by HZ pool display name? thanks in advance 🙂


Yes you’d have to use the trigger filter to filter on desktop pool name.


Thanks for the reply Dennis. is there an easy way to add a list of 30 desktop pools names at once?


Not really unfortunately. There are a few options:

• If the names are similar, you could use regex.

• If the names are similar, you could use wild cards.

• You can export the trigger, edit the JSON generated and import it again.

• You can wait until the cmdlets to interact with triggers are released. But correct me if I’m wrong @member, you’d still need to edit the JSON?

If you want to get on a call to discuss options, let me know in a direct message


with the cmdlet you can supply a json with the -filternodes argument. This is an example from one of the tests I have created for these cmdlets add-cutrigger -triggername ATOM_Advanced_trigger -TriggerType Advanced -IncidentScheduleId ‘All days’ -AdvancedTriggerSettings @{TriggerStressRecordType=’Machine’} -FilterNodes @{LogicalOperator=’And’;IsNegation=$false;ExpressionDescriptor=@{Column=’sName’;Value=’dummy-trigger’;ComparisonOperator=’Equal’}},@{LogicalOperator=’And’;ExpressionDescriptor=@{Column=’CPUReady’;Value=2;ComparisonOperator=’GreaterThan’}},@{LogicalOperator=’And’;ExpressionDescriptor=@{Column=’CPU’;Value=75;ComparisonOperator=’GreaterThan’}},@{LogicalOperator=’And’;ExpressionDescriptor=@{Column=’iTotalRAM’;Value=6442450944;ComparisonOperator=’Equal’}}

the json for filternodes I think you can best build one first, export that one indeed and edit it

(this comes from our internal testing process which starts from python otherwise I would have preferred to build a proper powershell object first and convert that to json

this cmdlet gives the same layout as you see in the screenshot

Add-CUTrigger -TriggerName pools_disabled -TriggerType Advanced -IncidentScheduleId "All days" -AdvancedTriggerSettings @{TriggerStressRecordType=’Folder’} -FilterNodes @{"ExpressionDescriptor"=@{"Column"= "hzProvisioningEnabled";"Value"= "False";"ComparisonOperator"= "Equal";"IsRegex"= $false};"IsNegation"= $false;"LogicalOperator"= "And";"ChildNodes"= @()},@{"ExpressionDescriptor"= @{"Column"= "HZPoolDisplayName";"Value"= "P_*";"ComparisonOperator"= "Equal";"IsRegex"= $false};"IsNegation"= $true;"LogicalOperator"= "And";"ChildNodes"= @()},@{"ExpressionDescriptor"=$null;"IsNegation"= $false;"LogicalOperator"= "And";"ChildNodes"= @(@{"ExpressionDescriptor"= @{"Column"= "HZPoolDisplayName";"Value"= "name1";"ComparisonOperator"= "Equal";"IsRegex"= $false};"IsNegation"= $false;"LogicalOperator"= "And";"ChildNodes"= @()},@{"ExpressionDescriptor"= @{"Column"= "HZPoolDisplayName"; "Value"= "name2";"ComparisonOperator"= "Equal";"IsRegex"= $false};"IsNegation"= $false;"LogicalOperator"= "Or";"ChildNodes"= @()})}

working from hastbales etc is btw easier than json..

Continue reading and comment on the thread ‘How to Create a Trigger Alert for VMware Disabled Pools in ControlUp?’.  Not a member? Join Here!


Categories: All Archives, ControlUp Scripts & Triggers
Topics: Automation & Alerting, CPU, PowerShell, Scripts, Triggers, VMware

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