You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
API does not create all ports for sensors with selectable options #419
I am encountering an issue with PRTG sensors that have selectable options, such as the bandwidth/traffic sensor which can theoretically monitor all interfaces (every port for this example). When I create such a sensor using the API, only the first channel f.e. "001 FastEthernet..." is created and monitored, while the other ports are ignored.
Is there an existing function in the PrtgAPI to allow the creation of sensors for all available interfaces, or is there an alternative solution for this use case? I did some research and also executed the get-help command for Sensors but didnt find a solution. Could you help me with my problem?
You need to specify which targets should be added. If you don't specify any, only the first item is selected to avoid creating a big mess if you forgot to configure which targets you actually want.
Activity
BadBrambacherQuelle commentedon Aug 11, 2025
also is it possible to only create the sensors that have the state "connected"?
lordmilko commentedon Aug 11, 2025
You need to specify which targets should be added. If you don't specify any, only the first item is selected to avoid creating a big mess if you forgot to configure which targets you actually want.
Please see the wiki for more info.
If this is something you can do in the PRTG UI, you can do the same thing with dynamic sensor parameters by setting the relevant property