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


Bulk Editing Notification Settings on Devices/Sensors

Votes:

0

Your Vote:

Up

Down

Hi there

Is it possible to bulk edit the notification settings on a device/sensor itself (so no changes are made to the actual notification template).

Essentially the process I am trying to achieve is;

1. Disable "Inherit All Triggers from parent objects and use the triggers defined above" 2. Enable "Only use the riggers defined above" 3. Create new State Trigger where

  • When sensor state is Down for at least 900 Seconds perform [NOTIFICATION TEMPLATE]
  • When sensor leaves down state after a notification was triggered, perform [NOTIFICATION TEMPLATE]

I would need to be able to "Select" a group of devices with "XXXXX" in the Device name first; which I believe is achieveable via the API.

Is this possible?

Kind regards Andy

api bulk-edit notifications prtg

Created on May 8, 2019 10:04:53 AM by  Andrewbeds (0) 1



1 Reply

Accepted Answer

Votes:

2

Your Vote:

Up

Down

Hi Andrewbeds,

You can do this fairly easily via PrtgAPI using PowerShell

You can modify whether Notification Triggers are inherited from the parent object by toggling the value of the InheritTriggers property

Get-Device *xxxxx* | Set-ObjectProperty InheritTriggers $false

To create a new Notification Trigger, use the New-Trigger cmdlet.

C:\> Get-Device *xxxxx* | New-Trigger -Type State -State Down -Latency 900 -OnNotificationAction "Ticket Notification" -OffNotificationAction "*push notification to admin*"

Type      ObjectId SubId Inherited ParentId Latency Condition Threshold Unit       OnNotificationAction
----      -------- ----- --------- -------- ------- --------- --------- ----       --------------------
State     2055     6     False     2055     900     Equals    Down                 Ticket Notification

For more information on using PrtgAPI, please see the wiki

Regards,

lordmilko

Created on May 8, 2019 1:57:26 PM by  lordmilko (1,442) 2 1



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.