Hi,
I am looking for a way to programmaticaly retrieve all Threshold notification that are set with a threshold of 90% to change the action from an email to SMS. Unfortunately we are using the same template for all our notification, making it impossible to edit it.
I found PRTGApi and started to play with it, but I cannot manage to retrieve notificationTrigger based on the threshold value. Does anybody know if it is possible to achieve ?
For instance, this is working :
PS C:\WINDOWS\system32> Get-Sensor -Id 13307 | Get-NotificationTrigger Type ObjectId SubId Inherited ParentId Latency Condition Threshold Unit OnNotificationAction ---- -------- ----- --------- -------- ------- --------- --------- ---- -------------------- Threshold 13307 3 False 13307 600 Above 90 Email to all members of group ITS-PRTG-Admins Threshold 13307 4 False 13307 600 Above 90 Email to all members of group ITS-PRTG-Admins Threshold 13307 1 False 13307 14400 Above 70 Email to all members of group ITS-PRTG-Admins Threshold 13307 2 False 13307 14400 Above 70 Email to all members of group ITS-PRTG-Admins
But from there, I am stuck...
Thank you very much for your help,
Schlum
Add comment