lordmilko / PrtgAPI

C#/PowerShell interface for PRTG Network Monitor
MIT License
301 stars 37 forks source link

PRTG Notification #361

Closed PRTGUser closed 11 months ago

PRTGUser commented 11 months ago

What's going on?

Hello everyone, I have downloaded the PRTGApi and am experimenting with it a bit. I am currently trying to find out via the API which servers already have a notification and which do not. Is there a simple command to get this out?

Many greetings PRTGUSER

Due Dilligance

lordmilko commented 11 months ago

What do you mean by "have a notification"

There are several things that "a notification" can potentially refer to

Are you able to advise what exactly it is you're after, potentially with reference to how you would normally retrieve that information using the PRTG UI

PRTGUser commented 11 months ago

Hey, thanks for the answer. By "have a notification" I mean that I have 2 triggers for threshold values on many sensors. One for a "warning" and one for an "error". So I think they are sensors that have notification triggers defined on them. And the question is, how do you find out which ones have them and which ones don't?

lordmilko commented 11 months ago

Please see the wiki for information on retrieving notification triggers from objects

There is no way to globally query which objects have triggers defined on them beyond just querying all objects