25 Feb 2022 01:04 AM - last edited on 17 May 2023 11:36 AM by Michal_Gebacki
Hello,
How do I add the following clustered network name to the WMI extension?
$cluster_network_name = 'msmqDemo'
$env:computername = $cluster_network_name
$env:_Cluster_Network_Hostname_ = $cluster_network_name
$env:_Cluster_Network_Name_ = $cluster_network_name
Solved! Go to Solution.
31 Mar 2022 02:13 AM
Yes, I have write a powerscript.ps to run every min as a schedule task which inget the collected MSMQ messages count.. I used the https://www.dynatrace.com/support/help/how-to-use-dynatrace/metrics/metric-ingestion/ingestion-metho...which is simple to work on. The issue is there's a need to set the following env in order to query the clustered MSMQ correctly. Hence, WMI extension is not able to meet this requirement.
$env:computername = $cluster_network_name
$env:_Cluster_Network_Hostname_ = $cluster_network_name
$env:_Cluster_Network_Name_ = $cluster_network_name
22 Jul 2022 05:42 PM
Are you able to share the powershell script that you are using for this metric collection?
23 Jul 2022 08:07 AM - edited 23 Jul 2022 08:18 AM
Hi @ben_davidson ,
You can download Microsoft Message Queuing (MSMQ) extension (V2 WMI) and look into the YAML
We are using the attached V1 extension and it work fine for us.
HTH
Yos