Hello, I have certain devices that I would like to automate auto-discovery with a custom template using a custom port range for the SNMP traffic start and end interface port numbers. Reason for this is that I want to add physical interfaces only for SNMP traffic sensors. So my solution is to run a custom API script on my PRTG server on a scheduled basis. The script needs to do the following:
- Identifies all relevant devices using API table call.
- Sets start and end port for SNMP interfaces using API.
- Sets the auto-discovery template to be used.
- Sets the port name template to be used using API.
I don't know how to do option 3.
Does anyone have any idea how to use a specific auto-discovery template with an API-initiated discovery? I see how to set the other object properties (port name template, start and end port) per the documentation but those are limited to string or number properties.
Alternatively, is there any other way to automatically add physical interfaces only for SNMP traffic sensors?