We have a need to monitor the # of devices in a group or under a certain probe. I am aware of and use the excellent SensorCount.exe custom sensor. What we also need is something similar which produces a count of devices instead of sensors. I've searched and searched and so far I can't figure out a way to do it with the API and I haven't found a way to make a custom sensor to produce that #.


Article Comments

This can be done with PRTG's HTTP XML/REST Value sensor

Use the url below and replace xx with the id (number) of your probe.

http://PRTGServer:port/api/table.xml?content=sensortree&ID=xx&login=username&password=password

In the XML Node section enter: device

Under Sensor Value select Use the number of occurrences of the selected XML node or its children/sibblings

Under Count XML nodes select Occurences of the selected XML node


May, 2011 - Permalink

Can you say where i can find id (number) of my probes? I can see only name (for ex. local probe).


Aug, 2018 - Permalink

Hi there,

That's rather easy. :)
Either by navigating to the Probe (Click on "Local Probe") and checking the right side, there you should see something like:

Status:	
OKConnected
Dependency:	Parent
Default Interval:	every  30 minutes
ID:	#3878

Another way would be to check the URL instead for:

http://SERVER/probenode.htm?id=3878&tabid=1

Here the ID would be "3878".

Best regards.


Aug, 2018 - Permalink

Please explain in detail how to setup XML as below. Thanks!

In the XML Node section enter: device Under Sensor Value select Use the number of occurrences of the selected XML node or its children/sibblings Under Count XML nodes select Occurences of the selected XML node


Nov, 2019 - Permalink

Hey,

You can find these configurations in the sensor settings. Please let me know where you get stuck exactly here.


Kind regards,
Birk Guttmann, Tech Support Team


Nov, 2019 - Permalink