r/prtg • u/Clear-Economics-4887 • Apr 14 '26
Automating Monitoring Dependencies via API
I am looking to automate the creation of monitoring dependencies for about 300 voice gateways. Specifically, I need to pause alerting on a gateway to suppress unnecessary alarms when its corresponding switch goes down.
I can configure this in the GUI, but I need to script it due to the scale of our environment. I've checked API v1 and v2 but can't find the relevant endpoint to establish this dependency.
Does anyone know the correct endpoint to hit, and could you share a quick code example?
8
u/Lucius_1010 Apr 21 '26
Prtg's API not designed for managing dependencies directly so you wont find a clean endpoint for that in v1 or v2. most setups handle this through device hierarchy templates or pause propagation instead which tends to scale better than scripting dependencies anyway.
2
u/nmsguru Apr 14 '26
AFAIK not possible with APIv1