New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


Create notification with powershell

Votes:

0

Your Vote:

Up

Down

Hello!

I have a notification template "My notification". I want to create a notification for the group: get-group -id 67572 | Add-NotificationTrigger $Notif But I get an error Add-NotificationTrigger : Cannot bind argument to parameter 'Parameters' because it is null. At line:1 char:54 + get-group -id 67572 | Add-NotificationTrigger $Notif + ~~~~~~ + CategoryInfo : InvalidData: (:) [Add-NotificationTrigger], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,PrtgAPI.PowerShell.Cmdlets.AddNotificationTrigger I try to clone from existing get-group -id 67572 | Get-Trigger -Type State -Inherited $false | Clone-Object -DestinationId 78120 but also a mistake Clone-Object : Requested value 'Ошибка' was not found. At line:1 char:74 + ... ger -Type State -Inherited $false | Clone-Object -DestinationId 78120 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Copy-Object], ArgumentException + FullyQualifiedErrorId : System.ArgumentException,PrtgAPI.PowerShell.Cmdlets.CloneObject

What am I doing wrong?

How to create a notification from a template?

How to create a notification through cloning?

cloning create notification powershell prtg prtgapi ps

Created on Mar 11, 2019 7:29:49 AM by  Tramp_Sergey (10) 1

Last change on Mar 11, 2019 8:08:15 AM by  Stephan Linke [Paessler Support]



Replies

Nobody has replied yet

Why not be the first?

Please log in or register to enter your reply.


Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.