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

Is there a way to collect a count of devices under a given probe?

Votes:

0

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 #.

custom-sensor device-count devices

Created on May 18, 2011 4:26:41 PM



5 Replies

Accepted Answer

Votes:

0

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

Created on May 19, 2011 7:44:15 PM

Last change on May 23, 2011 10:54:57 AM by  Torsten Lindner [Paessler Support]



Votes:

0

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

Created on Aug 9, 2018 12:13:38 PM



Votes:

0

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.

Created on Aug 10, 2018 8:49:47 AM by  Dariusz Gorka [Paessler Support]



Votes:

0

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

Created on Nov 21, 2019 3:41:14 AM



Votes:

0

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

Created on Nov 21, 2019 5:20:13 PM by  Birk Guttmann [Paessler Support]




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.