What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Notification Trigger State

Votes:

0

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?

api notification-trigger prtg

Created on Mar 26, 2021 9:18:47 AM

Last change on Mar 26, 2021 2:26:53 PM by  Moritz Heller [Paessler Support]



Best Answer

Accepted Answer

Votes:

0

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.

Created on Mar 29, 2021 11:24:28 AM by  Moritz Heller [Paessler Support]



4 Replies

Votes:

0

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"

Created on Mar 26, 2021 2:29:20 PM by  Moritz Heller [Paessler Support]



Votes:

0

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

Created on Mar 26, 2021 2:51:21 PM

Last change on Mar 26, 2021 3:42:46 PM by  Felix Wiesneth [Paessler Support]



Accepted Answer

Votes:

0

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.

Created on Mar 29, 2021 11:24:28 AM by  Moritz Heller [Paessler Support]



Votes:

0

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

Created on Mar 29, 2021 11:33:42 AM




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.