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
Sujit
2
@chuan_sern_wong Did you find the solution??
Thanks,
Sujit Singh
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-methods/local-api 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
Are you able to share the powershell script that you are using for this metric collection?
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
custom.python.msmq.zip (9.88 KB)