Hi, i need to show a graph with the number of "ping" sensors that are up and down in a network with more than 5000 ping sensors, so i was wondering if there is a way to get the count, instead of call for all the sensors and do the count manually in my system
API: count the number of sensors in a group by status
Modified on 2025-06-10 14:16:54 +0200
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.
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.
Hi,
sure, you can create an API call which only will get the ping sensors from a certain group in a certain status. The following example call will give you the object IDs of all Ping Sensors in a group with status down in JSON format:
Please replace the expressions with capital letters to fit your needs
The call will produce JSON as output and will also include a statement called treesize which holds the value for all sensors of the above type.
You might also want to add a further parameter count=10000 to make sure all sensors are picked up because the default output is limited to 500 sensors
Best regards
Jun, 2013 - Permalink