< Back

Set-MonLimit

Sat Jan 18, 2020 4:23 pm

NAME Set-MonLimit



SYNOPSIS

Applies a limit/threshold about what constitutes a warning/error.





SYNTAX

Set-MonLimit [[-TargetName] <String[]>] [-CheckName] <String> [-ErrorLimit] <Object> [[-WarningLimit] <Object>]

[-Operator] {GreaterThan | GreaterEqual | Equal | NotEqual | LessEqual | LessThan | Like | NotLike | Match |

NotMatch} [<CommonParameters>]





DESCRIPTION

Applies a limit/threshold about what constitutes a warning/error.





PARAMETERS

-TargetName <String[]>

The name of the target to apply it to.

The targets must already exist for this to be considered.

By default, ALL targets are considered.



Required? false

Position? 1

Default value *

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-CheckName <String>

The check for which to apply a limit.

The check does not have to exist before applying a limit.



Required? true

Position? 2

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-ErrorLimit <Object>

The threshold that needs to be crossed for the state to be considered in Error.



Required? true

Position? 3

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-WarningLimit <Object>

The threshold that needs to be crossed for the state to be considered in Warning.



Required? false

Position? 4

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Operator

What operator to apply to the limit.

For example, setting the Operator to 'GreaterThan' and the ErrorLimit to 80 would have all results greater

than 80 be considered in error.



Required? true

Position? 5

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-MonTarget -Tag DC | Set-MonLimit -CheckName 'LogDriveFreeSpacePercent' -ErrorLimit 10 -WarningLimit 20

-Operator LessThan



Updates all targets of the type DC to new limit thresholds for the check LogDriveFreeSpacePercent:

- Warning as soon as the result sinks below '20'

- Error as soon as the result sinks below '10'











RELATED LINKS