#Condition for Peak Power performance graph: If the Instance Id contains all of these 'power', 'max, 'cont' then this condition will proceed.
if (($lcaseInstanceId.Contains("power")) -and ($lcaseInstanceId.Contains("max")) -and ($lcaseInstanceId.Contains("cont")))
{
psDebugLog -level 1 -message ("Peak Power Performance UMT is started")
if (($lcaseInstanceId.Contains("powerhdrm")) -eq $false)
{
$status = "Normal"
psDebugLog -level 1 -message ("Peak Power Performance UMT for Peak Power Instance: " + $instanceId + ", Metric Value: " + $metricValue)
if ($metricValue -ge 0)
{
if($metricValue -ge $Critical)
{
$status = "Error"
}
elseif(($metricValue -lt $Critical) -and ($metricValue -ge $Warning))
{
$status = "Warning"
}
$propertyBag = $api.CreatePropertyBag()
$propertyBag.AddValue("ComponentType","Dell.ManagedServer.PeakPowerPerf")
$propertyBag.AddValue("InstanceIndex",$instanceId)
$propertyBag.AddValue("PerformanceValue",$metricValue)
$propertyBag.AddValue("PerformanceMetricName","Peak Power")
$propertyBag.AddValue("Status", $status)
$api.AddItem($propertyBag)
$propertyBag
}
}
psDebugLog -level 1 -message ("Peak Power Performance UMT Script is Ended")
}
#Condition for Peak Amperage performance graph: If the Instance Id contains both of these 'current', 'max' then this condition will proceed.
if (($lcaseInstanceId.Contains("current")) -and ($lcaseInstanceId.Contains("max")))
{
$status = "Normal"
psDebugLog -level 1 -message ("Peak Amperage Performance UMT is started")
if ($metricValue -ge 0)
{
$metricValue = $metricValue / 10
psDebugLog -level 1 -message ("Peak Amperage Performance UMT for Peak Amperage Instance: " + $instanceId + ", Metric Value: " + $metricValue)
if($metricValue -ge $Critical)
{
$status = "Error"
}
elseif(($metricValue -lt $Critical) -and ($metricValue -ge $Warning))
{
$status = "Warning"
}
$propertyBag = $api.CreatePropertyBag()
$propertyBag.AddValue("ComponentType","Dell.ManagedServer.PeakAmperagePerf")
$propertyBag.AddValue("InstanceIndex",$instanceId)
$propertyBag.AddValue("PerformanceValue",$metricValue)
$propertyBag.AddValue("PerformanceMetricName","Peak Amperage")
$propertyBag.AddValue("Status", $status)
$api.AddItem($propertyBag)
$propertyBag
}
psDebugLog -level 1 -message ("Peak Amperage Performance UMT Script is Ended")
}
#Condition for Peak Headroom performance graph: If the Instance Id contains both of these 'powerhdrm', 'max' then this condition will proceed.
if (($lcaseInstanceId.Contains("powerhdrm")) -and ($lcaseInstanceId.Contains("max")))
{
$status = "Normal"
psDebugLog -level 1 -message ("Peak Headroom Performance UMT is started")
psDebugLog -level 1 -message ("Peak Headroom Performance UMT for Peak Power Instance: " + $instanceId + ", Metric Value: " + $metricValue)
if ($metricValue -ge 0)
{
if($metricValue -ge $Critical)
{
$status = "Error"
}
elseif(($metricValue -lt $Critical) -and ($metricValue -ge $Warning))
{
$status = "Warning"
}
$propertyBag = $api.CreatePropertyBag()
$propertyBag.AddValue("ComponentType","Dell.ManagedServer.PeakHeadroomPerf")
$propertyBag.AddValue("InstanceIndex",$instanceId)
$propertyBag.AddValue("PerformanceValue",$metricValue)
$propertyBag.AddValue("PerformanceMetricName","Peak Headroom")
$propertyBag.AddValue("Status", $status)
$api.AddItem($propertyBag)
$propertyBag
}
psDebugLog -level 1 -message ("Peak Headroom Performance UMT Script is Ended")
}
#Condition for System Board Average Memory Usage performance graph: If the Instance Id contains all of these 'systemboard', 'avg', 'memoryusage', '1h' then this condition will proceed.
if (($lcaseInstanceId.Contains("systemboard")) -and ($lcaseInstanceId.Contains("avg")) -and ($lcaseInstanceId.Contains("memoryusage")) -and
($lcaseInstanceId.Contains("1h")))
{
$status = "Normal"
psDebugLog -level 1 -message ("System Board Average Memory Usage Performance UMT is started")
psDebugLog -level 1 -message ("System Board Average Memory Usage Performance UMT for Instance: " + $instanceId + ", MetricValue: " + $metricValue)
if ($metricValue -ge 0)
{
if($metricValue -ge $Critical)
{
$status = "Error"
}
elseif(($metricValue -lt $Critical) -and ($metricValue -ge $Warning))
{
$status = "Warning"
}
$propertyBag = $api.CreatePropertyBag()
$propertyBag.AddValue("ComponentType","Dell.ManagedServer.AverageMemoryUtilization")
$propertyBag.AddValue("InstanceIndex",$instanceId)
$propertyBag.AddValue("PerformanceValue",$metricValue)
$propertyBag.AddValue("PerformanceMetricName","System Board Average Memory Usage(last hour)")
$propertyBag.AddValue("Status", $status)
$api.AddItem($propertyBag)
$propertyBag
}
psDebugLog -level 1 -message ("System Board Average Memory Usage Performance UMT Script is Ended")
}
#Condition for System Board Maximum Memory Usage performance graph: If the Instance Id contains all of these 'systemboard', 'max', 'memoryusage', '1h' then this condition will proceed.
if (($lcaseInstanceId.Contains("systemboard")) -and ($lcaseInstanceId.Contains("max")) -and ($lcaseInstanceId.Contains("memoryusage")) -and
($lcaseInstanceId.Contains("1h")))
{
psDebugLog -level 1 -message ("System Board Maximum Memory Usage Performance UMT is started")
psDebugLog -level 1 -message ("System Board Maximum Memory Usage Performance UMT for Instance: " + $instanceId + ", MetricValue: " + $metricValue)
if ($metricValue -ge 0)
{
$propertyBag = $api.CreatePropertyBag()
$propertyBag.AddValue("ComponentType","Dell.ManagedServer.MaxMemoryUtilization")
$propertyBag.AddValue("InstanceIndex",$instanceId)
$propertyBag.AddValue("PerformanceValue",$metricValue)
$propertyBag.AddValue("PerformanceMetricName","System Board Maximum Memory Usage(last hour)")
$api.AddItem($propertyBag)
$propertyBag
}
psDebugLog -level 1 -message ("System Board Maximum Memory Usage Performance UMT Script is Ended")
}
#Condition for System Board Peak Memory Usage performance graph: If the Instance Id contains all of these 'systemboard', 'peak', 'memoryusage' then this condition will proceed.
if (($lcaseInstanceId.Contains("systemboard")) -and ($lcaseInstanceId.Contains("peak")) -and ($lcaseInstanceId.Contains("memoryusage")))
{
psDebugLog -level 1 -message ("System Board Peak Memory Usage Performance UMT is started")
psDebugLog -level 1 -message ("System Board Peak Memory Usage Performance UMT for Instance: " + $instanceId + ", MetricValue: " + $metricValue)
if ($metricValue -ge 0)
{
$propertyBag = $api.CreatePropertyBag()
$propertyBag.AddValue("ComponentType","Dell.ManagedServer.PeakMemoryUtilization")
$propertyBag.AddValue("InstanceIndex",$instanceId)
$propertyBag.AddValue("PerformanceValue",$metricValue)
$propertyBag.AddValue("PerformanceMetricName","System Board Peak Memory Usage")
$api.AddItem($propertyBag)
$propertyBag
}
psDebugLog -level 1 -message ("System Board Peak Memory Usage Performance UMT Script is Ended")
}
#Condition for System Board Average IO Usage performance graph: If the Instance Id contains all of these 'systemboard', 'avg', 'iousage', '1h' then this condition will proceed.
if (($lcaseInstanceId.Contains("systemboard")) -and ($lcaseInstanceId.Contains("avg")) -and ($lcaseInstanceId.Contains("iousage")) -and
($lcaseInstanceId.Contains("1h")))
{
$status = "Normal"
psDebugLog -level 1 -message ("System Board Average IO Usage Performance UMT is started")
psDebugLog -level 1 -message ("System Board Average IO Usage Performance UMT UMT for Instance: " + $instanceId + ", MetricValue: " + $metricValue)
if ($metricValue -ge 0)
{
if($metricValue -ge $Critical)
{
$status = "Error"
}
elseif(($metricValue -lt $Critical) -and ($metricValue -ge $Warning))
{
$status = "Warning"
}
$propertyBag = $api.CreatePropertyBag()
$propertyBag.AddValue("ComponentType","Dell.ManagedServer.AvgIOUtilization")
$propertyBag.AddValue("InstanceIndex",$instanceId)
$propertyBag.AddValue("PerformanceValue",$metricValue)
$propertyBag.AddValue("PerformanceMetricName","System Board Average IO Usage(last hour)")
$propertyBag.AddValue("Status", $status)
$api.AddItem($propertyBag)
$propertyBag
}
psDebugLog -level 1 -message ("System Board Average IO Usage Performance UMT Script is Ended")
}
#Condition for System Board Maximum IO Usage performance graph: If the Instance Id contains all of these 'systemboard', 'max', 'iousage', '1h' then this condition will proceed.
if (($lcaseInstanceId.Contains("systemboard")) -and ($lcaseInstanceId.Contains("max")) -and ($lcaseInstanceId.Contains("iousage")) -and
($lcaseInstanceId.Contains("1h")))
{
psDebugLog -level 1 -message ("System Board Maximum IO Usage Performance UMT is started")
psDebugLog -level 1 -message ("System Board Maximum IO Usage Performance UMT UMT for Instance: " + $instanceId + ", MetricValue: " + $metricValue)
if ($metricValue -ge 0)
{
$propertyBag = $api.CreatePropertyBag()
$propertyBag.AddValue("ComponentType","Dell.ManagedServer.MaxIOUtilization")
$propertyBag.AddValue("InstanceIndex",$instanceId)
$propertyBag.AddValue("PerformanceValue",$metricValue)
$propertyBag.AddValue("PerformanceMetricName","System Board Maximum IO Usage(last hour)")
$api.AddItem($propertyBag)
$propertyBag
}
psDebugLog -level 1 -message ("System Board Maximum IO Usage Performance UMT Script is Ended")
}
#Condition for System Board Peak IO Usage performance graph: If the Instance Id contains all of these 'systemboard', 'peak', 'iousage' then this condition will proceed.
if (($lcaseInstanceId.Contains("systemboard")) -and ($lcaseInstanceId.Contains("peak")) -and ($lcaseInstanceId.Contains("iousage")))
{
psDebugLog -level 1 -message ("System Board peak IO Usage Performance UMT is started")
psDebugLog -level 1 -message ("System Board peak IO Usage Performance UMT UMT for Instance: " + $instanceId + ", MetricValue: " + $metricValue)
if ($metricValue -ge 0)
{
$propertyBag = $api.CreatePropertyBag()
$propertyBag.AddValue("ComponentType","Dell.ManagedServer.PeakIOUtilization")
$propertyBag.AddValue("InstanceIndex",$instanceId)
$propertyBag.AddValue("PerformanceValue",$metricValue)
$propertyBag.AddValue("PerformanceMetricName","System Board Peak IO Usage")
$api.AddItem($propertyBag)
$propertyBag
}
psDebugLog -level 1 -message ("System Board Peak IO Usage Performance UMT Script is Ended")
}
#Condition for System Board Maximum SYS Usage performance graph: If the Instance Id contains all of these 'systemboard', 'max', 'sysusage', '1h' then this condition will proceed.
if (($lcaseInstanceId.Contains("systemboard")) -and ($lcaseInstanceId.Contains("max")) -and ($lcaseInstanceId.Contains("sysusage")) -and ($lcaseInstanceId.Contains("1h")))
{
psDebugLog -level 1 -message ("System Board Maximum SYS Usage Performance UMT is started")
psDebugLog -level 1 -message ("System Board Maximum SYS Usage Performance UMT for Max Power Instance: " + $instanceId + ", Metric Value: " + $metricValue)
if ($metricValue -ge 0)
{
$propertyBag = $api.CreatePropertyBag()
$propertyBag.AddValue("ComponentType","Dell.ManagedServer.MaxCUPSUtilization")
$propertyBag.AddValue("InstanceIndex",$instanceId)
$propertyBag.AddValue("PerformanceValue",$metricValue)
$propertyBag.AddValue("PerformanceMetricName","System Board Maximum SYS Usage(last hour)")
$api.AddItem($propertyBag)
$propertyBag
}
psDebugLog -level 1 -message ("System Board Maximum SYS Usage Performance UMT Script is Ended")
}
#Condition for System Board Peak SYS Usage performance graph: If the Instance Id contains all of these 'systemboard', 'peak', 'sysusage' then this condition will proceed.
if (($lcaseInstanceId.Contains("systemboard")) -and ($lcaseInstanceId.Contains("peak")) -and ($lcaseInstanceId.Contains("sysusage")))
{
psDebugLog -level 1 -message ("System Board Peak SYS Usage Performance UMT is started")
psDebugLog -level 1 -message ("System Board Peak SYS Usage Performance UMT for Peak CUPS Instance: " + $instanceId + ", Metric Value: " + $metricValue)
if ($metricValue -ge 0)
{
$propertyBag = $api.CreatePropertyBag()
$propertyBag.AddValue("ComponentType","Dell.ManagedServer.PeakCUPSUtilization")
$propertyBag.AddValue("InstanceIndex",$instanceId)
$propertyBag.AddValue("PerformanceValue",$metricValue)
$propertyBag.AddValue("PerformanceMetricName","System Board Peak SYS Usage")
$api.AddItem($propertyBag)
$propertyBag
}
psDebugLog -level 1 -message ("System Board Peak SYS Usage Performance UMT Script is Ended")
}
#Condition for System Board Average SYS Usage performance graph: If the Instance Id contains all of these 'systemboard', 'avg', 'sysusage', '1h' then this condition will proceed.
if (($lcaseInstanceId.Contains("systemboard")) -and ($lcaseInstanceId.Contains("avg")) -and ($lcaseInstanceId.Contains("sysusage")) -and ($lcaseInstanceId.Contains("1h")))
{
$status = "Normal"
psDebugLog -level 1 -message ("System Board Average SYS Usage Performance UMT is started")
psDebugLog -level 1 -message ("System Board Average SYS Usage Performance UMT for Average CUPS Instance: " + $instanceId + ", Metric Value: " + $metricValue)
if ($metricValue -ge 0)
{
if($metricValue -ge $Critical)
{
$status = "Error"
}
elseif(($metricValue -lt $Critical) -and ($metricValue -ge $Warning))
{
$status = "Warning"
}
$propertyBag = $api.CreatePropertyBag()
$propertyBag.AddValue("ComponentType","Dell.ManagedServer.AvgCUPSUtilization")
$propertyBag.AddValue("InstanceIndex",$instanceId)
$propertyBag.AddValue("PerformanceValue",$metricValue)
$propertyBag.AddValue("PerformanceMetricName","System Board Average SYS Usage(last hour)")
$propertyBag.AddValue("Status", $status)
$api.AddItem($propertyBag)
$propertyBag
}
psDebugLog -level 1 -message ("System Board Average SYS Usage Performance UMT Script is Ended")
}
#Condition for System Board Average SYS Usage performance graph: If the Instance Id contains all of these 'systemboard', 'avg', 'sysusage', '1d' then this condition will proceed.
if (($lcaseInstanceId.Contains("systemboard")) -and ($lcaseInstanceId.Contains("avg")) -and ($lcaseInstanceId.Contains("sysusage")) -and ($lcaseInstanceId.Contains("1d")))
{
psDebugLog -level 1 -message ("Capacity Planning Check Performance Graph Script is started")
psDebugLog -level 1 -message ("Instance: " + $instanceId + ", Metric Value: " + $metricValue)
if ($metricValue -ge 0)
{
$propertyBag = $api.CreatePropertyBag()
$propertyBag.AddValue("ComponentType","Dell.ManagedServer.AvgCUPSUtilizationPerDay")
$propertyBag.AddValue("InstanceIndex",$instanceId)
$propertyBag.AddValue("PerformanceValue",$metricValue)
$propertyBag.AddValue("PerformanceMetricName","Capacity Check System Board Average SYS Usage(last day)")
$api.AddItem($propertyBag)
$propertyBag
}
psDebugLog -level 1 -message ("Capacity Planning Check Performance Graph Script is Ended")
}
#Condition for System Board Maximum CPU Usage performance graph: If the Instance Id contains all of these 'systemboard', 'max', 'cpuusage', '1h' then this condition will proceed.
if (($lcaseInstanceId.Contains("systemboard")) -and ($lcaseInstanceId.Contains("max")) -and ($lcaseInstanceId.Contains("cpuusage")) -and ($lcaseInstanceId.Contains("1h")))
{
psDebugLog -level 1 -message ("System Board Maximum CPU Usage Performance UMT is started")
psDebugLog -level 1 -message ("System Board Maximum CPU Usage Performance UMT for Max Power Instance: " + $instanceId + ", Metric Value: " + $metricValue)
if ($metricValue -ge 0)
{
$propertyBag = $api.CreatePropertyBag()
$propertyBag.AddValue("ComponentType","Dell.ManagedServer.MaxSystemCPUUtilization")
$propertyBag.AddValue("InstanceIndex",$instanceId)
$propertyBag.AddValue("PerformanceValue",$metricValue)
$propertyBag.AddValue("PerformanceMetricName","System Board Maximum CPU Usage(last hour)")
$api.AddItem($propertyBag)
$propertyBag
}
psDebugLog -level 1 -message ("System Board Maximum CPU Usage Performance UMT Script is Ended")
}
#Condition for System Board Peak CPU Usage performance graph: If the Instance Id contains both of these 'peak', 'cpuusage' then this condition will proceed.
if (($lcaseInstanceId.Contains("peak")) -and ($lcaseInstanceId.Contains("cpuusage")))
{
psDebugLog -level 1 -message ("System Board Peak CPU Usage Performance UMT is started")
psDebugLog -level 1 -message ("System Board Peak CPU Usage Performance UMT for Peak CUPS Instance: " + $instanceId + ", Metric Value: " + $metricValue)
if ($metricValue -ge 0)
{
$propertyBag = $api.CreatePropertyBag()
$propertyBag.AddValue("ComponentType","Dell.ManagedServer.PeakSystemCPUUtilization")
$propertyBag.AddValue("InstanceIndex",$instanceId)
$propertyBag.AddValue("PerformanceValue",$metricValue)
$propertyBag.AddValue("PerformanceMetricName","System Board Peak CPU Usage")
$api.AddItem($propertyBag)
$propertyBag
}
psDebugLog -level 1 -message ("System Board Peak CPU Usage Performance UMT Script is Ended")
}
#Condition for System Board Average CPU Usage performance graph: If the Instance Id contains all of these 'systemboard', 'avg', 'cpuusage', '1h' then this condition will proceed.
if (($lcaseInstanceId.Contains("systemboard")) -and ($lcaseInstanceId.Contains("avg")) -and ($lcaseInstanceId.Contains("1h")) -and ($lcaseInstanceId.Contains("cpuusage")))
{
$status = "Normal"
psDebugLog -level 1 -message ("System Board Average CPU Usage Performance UMT is started")
psDebugLog -level 1 -message ("System Board Average CPU Usage Performance UMT for Average CUPS Instance: " + $instanceId + ", Metric Value: " + $metricValue)
if ($metricValue -ge 0)
{
if($metricValue -ge $Critical)
{
$status = "Error"
}
elseif(($metricValue -lt $Critical) -and ($metricValue -ge $Warning))
{
$status = "Warning"
}
$propertyBag = $api.CreatePropertyBag()
$propertyBag.AddValue("ComponentType","Dell.ManagedServer.AvgSystemCPUUtilization")
$propertyBag.AddValue("InstanceIndex",$instanceId)
$propertyBag.AddValue("PerformanceValue",$metricValue)
$propertyBag.AddValue("PerformanceMetricName","System Board Average CPU Usage(last hour)")
$propertyBag.AddValue("Status", $status)
$api.AddItem($propertyBag)
$propertyBag
}
psDebugLog -level 1 -message ("System Board Average CPU Usage Performance UMT Script is Ended")
}
}
}