I'm in the process of updating a series of custom Threshold Files from 1.3.4 to 2.0.7. I didn't write the original files.
I've had no problem recreating simple thresholds, but I'm getting unstuck with the more complex ones.
Can someone give me an example of how to recreate the following in powershell, so I can be sure I'm getting it correct:
<THRESHOLD NAME="High average network utilization - more than 50%" CONDITION="Warning" COLOR="Yellow" PRIORITY="50">
<DESCRIPTION><![CDATA[Checks to see if <B>50%</B> or more of the total network utilization is being used. If so, then the computer is using a lot of network bandwidth.
<CODE><![CDATA[Dim BitsPerSec, PercentOfNetworkUtilized, PercentNetworkUtilizationThreshold
If AvgNetworkInterfaceBytesTotalPerSec > 0 AND AvgNetworkInterfaceCurrentBandwidth > 0 Then
PercentNetworkUtilizationThreshold = 50
BitsPerSec = Round(AvgNetworkInterfaceBytesTotalPerSec) * 8
PercentOfNetworkUtilized = (BitsPerSec * 100) / AvgNetworkInterfaceCurrentBandwidth
If AvgNetworkInterfaceBytesTotalPerSec > 0 Then
If PercentOfNetworkUtilized > PercentNetworkUtilizationThreshold Then
IsAvgThresholdBroken = True