Forum Discussion
Dominique
3 years agoAdvisor
#Requires -Version 5.1
<#
Description - Update-WidgetDS_with_SDT.ps1
PS script to interrogate LogicMonitor REST API and modify target text widget with SDT data
#>
Set-Strictmode -Version Latest
$ErrorActionPreference = 'Stop'
$Global:ProgressPreference = 'SilentlyContinue'
$Global:VerbosePreference = 'SilentlyContinue'
$VerbosePreference = 'Continue'
####################### VARS ###########################
# Initialize Variables
[string]$accessId = '##SDT.ACCESS.ID##'
[string]$accessKey = '##SDT.ACCESS.KEY##'
# [string]$company = '##LM.COMPANY##'
[string]$company = 'xxxxxxxxxx'
[string]$hostname = '##SYSTEM.HOSTNAME##'
# [string]$dashboardId = '##DASHBOARD.ID##'
[string]$dashboardId = '52'
# [string]$dashboardWidgetID = '##WIDGET.ID##'
[string]$dashboardWidgetID = '2227'
$script_name = 'Update-WidgetDS_with_SDT.ps1'
After forcing the Dashboardid (52) & WidgetId (2227) another error appears... should these two parameters to be added to the properties on the resource as well...
In progress...
Thanks,
Dom
Related Content
- 2 years agoAnonymous
- 4 years ago