A user asked if an alert from Scoutbees can trigger a ControlUp automated action. It was suggested to run scripts using ControlUp Automation to interact with Scoutbees. An idea was proposed to create an error log in the events, and for ControlUp RealTime to trigger an automation from that event. Additionally, writing a script to either put the server into maintenance mode or reboot was considered. ControlUp RealTime currently only has the ability to execute native actions through PowerShell commandlets and the follow up actions can call web hooks.
Read the entire article here...
PowerShell Related Training & Support Archives
PowerShell training and support-related archives from inside the ControlUp Community on Slack.
Finding Multiple User Sessions for a Specific Application in ControlUp
A user asked for the best way to see which users are running multiple sessions of the same application. It was suggested to use the "published application usage details report" or the "Session - Activity" report, and to further narrow down the required data, use PowerShell API. It was also mentioned that the result needs to be run on a monitor. The full instruction can be found at https://support.controlup.com/v1/docs/invoke-cuquery#example-6-search-for-all-machines-with-the-name-monitor.
Read the entire article here...
Read the entire article here...
Creating a ControlUp Trigger to Check if Log File is Changed
A user asked about creating a trigger file that notifies an email if a log file is not changed for two days. Solutions proposed include making a custom event log entry and using the System.IO.FileSystemWatcher class. The user found a potential solution and will update the discussion with their results.
Read the entire article here...
Read the entire article here...
Running Nutanix CLI Commands From the ControlUp Console
A user asked if it was possible to run Nutanix CLI commands from the ControlUp console, and if it was possible through the PowerShell module or REST API. It was suggested that if the CLI tools and firewall are open, this might be possible. One member shared that they have a similar solution which involves SSH'ing into the Nutanix host, plus the OpenSSH Powershell module installed. The member agreed to share their solution.
Read the entire article here...
Read the entire article here...
How to set a ControlUp Trigger with multiple schedules?
Users discussed finding a clean way to set a trigger with multiple schedules for monitoring Horizon services. It was suggested to use a PowerShell script with IF logic for this. To prevent getting emails when the server closes for patching, a maintenance window could be set, with a different action taken if the service is down for more than 30 minutes. ControlUp's Realtime DX can be used to set a custom schedule. An example script was provided, which requires the user to edit it with the event IDs they want to monitor for and any services to be excluded. This thread can be added to the FAQ page.
Read the entire article here...
Read the entire article here...
Testing File Share Availability Using a Shell Scout
A user asked about testing file share availability which can be done wtih a Shell Scout - this can be done using a PowerShell script that checks the share and exits with a code != 0 if it fails. To handle permission access issues, a PowerShell script can be amended by adding a credential to the test-path command. More information can be found at: https://support.controlup.com/docs/shell-execution and https://devblogs.microsoft.com/scripting/powertip-test-the-presence-of-a-remote-share-by-using-powershell/.
Read the entire article here...
Read the entire article here...
Script for Monitoring Published App and Desktop Session Statistics with ControlUp
A user shared a script for a furniture company that was designed to show the number of sessions for published apps and desktops, and the percentage of the total for each of them. The script must be run on the ControlUp Monitor version 8.6.5 or newer and it was modified to allow for large amounts of sessions. The results use Export-CUQuery instead of Invoke-CUQuery. The discussion also included tips regarding color scheme and location.
Read the entire article here...
Read the entire article here...
Passing PID of High Process to Scripted Action in ControlUp
A user asked if it is possible to pass the PID of a process that has become high to a scripted action. It can be done by assigning the script to the process and adding the PID as an argument. The argument will contain the process' values at the time the script is run or the trigger is fired. More information is available at https://support.controlup.com/v1/docs/script-based-actions-sba#adding-arguments-to-your-script.
Read the entire article here...
Read the entire article here...
Do you need ControlUp Real Time Agent installed to view the Citrix License Usage report?
This discussion revolves around the Citrix License Usage report, and whether the Real Time agent needs to be installed on the Citrix license server. It was confirmed that it is necessary for on-prem customers, although hard to do for cloud customers. Additionally, triggering the license with the PowerShell module is possible since version 8.6.5, and requires a two step trigger and running the script in the message.
Read the entire article here...
Read the entire article here...
Help troubleshooting why we can not update agents via the ControlUp Console?
A user asked why agents cannot be updated via the ControlUp console. It is likely due to lack of admin rights, but AppVolumes can interfere with unzipping files. A possible workaround could be using the monitor command, updating the .NET version to 4.8, or using an Appvolume with the ControlUp agent. The Appvolume method has so far worked successfully. Title: Troubleshooting ControlUp Agent Updates with AppVolumes
Read the entire article here...
Read the entire article here...
