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...
PowerShell Related Training & Support Archives
PowerShell training and support-related archives from inside the ControlUp Community on Slack.
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...
Does rebooting ControlUp servers have a negative affect on load balancing
Various members discussed the need to reboot servers on a weekly basis, and the issues it could create with load balancing. It was suggested that ControlUp users stop and start the monitors directly from the console, which can properly rebalance the environment. It was also suggested that a PowerShell command be created to restart the monitor services at once.
Read the entire article here...
Read the entire article here...
Using Multi-Factor Authentication (MFA) with ControlUp and Scoutbees
A user asked about using Multi-Factor Authentication(MFA) for Scoutbees with ControlUp, discussing external and internal scouts, static tokens, and options such as TOTP. Phone call verification and SMS-based MFA are both supported, as well as TOTP and static codes. Documentation was described as "clear as mud".
Read the entire article here...
Read the entire article here...
