hi, is there a way to check Notification Trigger state (Active/Paused) with PRTG api? i mean here the Notification Trigger of Group Root, which affects to all sensors
i found that i can set the Notification Trigger state to active or pause with /api/pause.htm?id=2721&action=1 or 0 accordingly
but i need to periodically check if it paused
how can i do this by prtg api? or may be there ir another way, for examle with command line interface?


Article Comments

Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.

Hi there,

This is not possible with the native PRTG API. However, you can check this third party API:

https://github.com/lordmilko/PrtgAPI

This API is more powerful and includes commands like "Get-ObjectProperty"


Mar, 2021 - Permalink

Hi, Moritz! While i was waiting the answer i played with api and found that i can get the interested property value by the folowing web-request:

/api/getobjectproperty.htm?id=2721&name=Active&show=nohtmlencode

when i pause notification - i receive 0 and when i start it again - i receive 1 please, confirm, that this is incorrect behavior and i cannot use this web-request


Mar, 2021 - Permalink

Hi there,

Thank you for the follow up. It seems like I missed this option, I'm sorry. I tested the API call in my site and it seems to work like intended.


Mar, 2021 - Permalink

so, i'll use it. Thanks, Moritz!


Mar, 2021 - Permalink