New-LMCollector
Syntax
Section titled “Syntax”New-LMCollector [-Description] <String> [[-BackupAgentId] <Int32>] [[-CollectorGroupId] <Int32>] [[-Properties] <Hashtable>] [[-EnableFailBack] <Boolean>] [[-EnableFailOverOnCollectorDevice] <Boolean>] [[-EscalatingChainId] <Int32>] [[-AutoCreateCollectorDevice] <Boolean>] [[-SuppressAlertClear] <Boolean>] [[-ResendAlertInterval] <Int32>] [[-SpecifiedCollectorDeviceGroupId] <Int32>] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]Description
Section titled “Description”The New-LMCollector function creates a new collector in LogicMonitor with specified configuration settings.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”#Create a new collectorNew-LMCollector -Description "Production Collector" -CollectorGroupId 123 -Properties @{"location"="datacenter1"}Parameters
Section titled “Parameters”-Description
Section titled “-Description”The description of the collector. This parameter is mandatory.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: 1Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-BackupAgentId
Section titled “-BackupAgentId”The ID of the backup collector.
Type: Int32Parameter Sets: (All)Aliases:
Required: FalsePosition: 2Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-CollectorGroupId
Section titled “-CollectorGroupId”The ID of the collector group to assign the collector to.
Type: Int32Parameter Sets: (All)Aliases:
Required: FalsePosition: 3Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Properties
Section titled “-Properties”A hashtable of custom properties for the collector.
Type: HashtableParameter Sets: (All)Aliases:
Required: FalsePosition: 4Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-EnableFailBack
Section titled “-EnableFailBack”Whether to enable failback for the collector.
Type: BooleanParameter Sets: (All)Aliases:
Required: FalsePosition: 5Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-EnableFailOverOnCollectorDevice
Section titled “-EnableFailOverOnCollectorDevice”Whether to enable failover on the collector device.
Type: BooleanParameter Sets: (All)Aliases:
Required: FalsePosition: 6Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-EscalatingChainId
Section titled “-EscalatingChainId”The ID of the escalation chain to use.
Type: Int32Parameter Sets: (All)Aliases:
Required: FalsePosition: 7Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-AutoCreateCollectorDevice
Section titled “-AutoCreateCollectorDevice”Whether to automatically create a device for the collector.
Type: BooleanParameter Sets: (All)Aliases:
Required: FalsePosition: 8Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-SuppressAlertClear
Section titled “-SuppressAlertClear”Whether to suppress alert clear notifications.
Type: BooleanParameter Sets: (All)Aliases:
Required: FalsePosition: 9Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-ResendAlertInterval
Section titled “-ResendAlertInterval”The interval for resending alerts.
Type: Int32Parameter Sets: (All)Aliases:
Required: FalsePosition: 10Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-SpecifiedCollectorDeviceGroupId
Section titled “-SpecifiedCollectorDeviceGroupId”The ID of the device group for the collector device.
Type: Int32Parameter Sets: (All)Aliases:
Required: FalsePosition: 11Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-WhatIf
Section titled “-WhatIf”Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameterParameter Sets: (All)Aliases: wi
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Confirm
Section titled “-Confirm”Prompts you for confirmation before running the cmdlet.
Type: SwitchParameterParameter Sets: (All)Aliases: cf
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-ProgressAction
Section titled “-ProgressAction”Fill ProgressAction Description
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseCommonParameters
Section titled “CommonParameters”This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
Section titled “Inputs”None. You cannot pipe objects to this command.
Section titled “None. You cannot pipe objects to this command.”Outputs
Section titled “Outputs”Returns LogicMonitor.Collector object.
Section titled “Returns LogicMonitor.Collector object.”You must run Connect-LMAccount before running this command.