Users discussed using ListOfColumns template variables for triggers and the impact of using them. One user shared an example of encapsulating the template with ListOfColumns to use multiple metrics in a trigger. Another mentioned that ListOfColumns can be replaced multiple times and added a warning about this. Another expressed excitement about the potential uses of this feature. The discussion also touched on the possibility of seeing the top 50 biggest files that were written and a suggestion for running a follow-up script to enrich the data. One user mentioned that the developer responsible was not available at the moment, but that more information would be shared soon and a real-time disk monitor was already available. It was suggested that the user hang on until Monday for a cool invite.
Read the entire ‘Using ListOfColumns Template Variables in ControlUp Triggers: A Helpful Tip and Exciting New Feature in the Works’ thread below:
Trying to use a different template variable for my triggers and the ListOfColumns template variables look to be super helpful. However, whenever I try to use them in my template I am just getting the variable to spit out and not the value of the variable. Any ideas? Am I doing something wrong with my trigger? it is an advanced trigger for a machine. Here is my template and the output
@member this feels like one you would know
You have to encapsulate it with ListOfColums. For example:
“`Body:
{
"description": "$(ListOfColumns:"The column:$(Column) has changed from $(ColumnValueBefore) to $(ColumnValueAfter)")",
"category": "Logon",
"cmdb_ci":"$(compname)",
"subcategory": "AverageLogonDuration",
"urgency":"4",
"priority":"4",
"short_description":"$(TriggerName)"
}“`
Also fair warning. ListOfColumns can be replaced multiple times. If your trigger has multiple metrics. For example my trigger has name and CPU. So that single template line will be replaced with 2 lines. 1 for each metric in my trigger
got it thank you!
love it!
thanks guys
this is a game changer. lets you know asap if there was a quick disk space fill or something
Would it be cooler if you can see, let’s say, the top 50 biggest files that were written?
It’s almost like you work in marketing or something Joel
well probably!
Well maybe we can do that
how do you reckon you could get that?
@member
run a follow up script that enriches the data and adds it to the payload?
I think Chris has wrapped up for the week, he’s in the Netherlands
Stay tuned
I think this script will take a long time to run since its querying the entire drive for any changes. in this case the c: drive. testing one now
Hi Josh we have a real time disk Monitor !! Like running tree size 24/7 for 7 days ! With no performance impact ! Just hang on till monday I send you an invite for something cool 😜 and you will know more soon 🤫
(I have totally not shared any screenshots already with Josh)
Continue reading and comment on the thread ‘Using ListOfColumns Template Variables in ControlUp Triggers: A Helpful Tip and Exciting New Feature in the Works’. Not a member? Join Here!
Categories: All Archives, ControlUp for VDI, ControlUp Scripts & Triggers