This article applies to PRTG Network Monitor 13.2 or later
Monitoring the Number of Sensors in a Specific Status
In order to monitor the number of sensors in a specific status, for example, paused or unknown sensors count, add an HTTP XML/REST Value Sensor to your PRTG installation.
Set up the sensor as indicated below. This approach will retrieve an XML file via PRTG API containing the current number of all sensor states and parses it. Provide the XML node denoting the sensor status you are interested in and define sensor limits depending on your needs.
Steps to Go
1. Add an HTTP XML/REST Value sensor to your PRTG installation.
2. In the sensor settings, provide the following URL:
http://yourprtgserver/api/gettreenodestats.xml
Note: You'll need to add the username and passhash/password of your PRTG server to the URL in order to authenticate, as per the example below:
/api/gettreenodestats.xml?username=myusername&passhash=hash |
For details, please refer to PRTG Manual: HTTP API
3. Enter the XML node denoting the sensor status you are interested in. In order to monitor the number of paused sensors, use the parameter pausedsens. See below for other possible values.
4. You can leave all other settings unchanged.
5. Click Continue to create the sensor.
6. Define limits for warnings and alarms in the sensor’s channel settings.
You can use the following parameters for the XML node:
XML Node | Description |
upsens | Up sensors |
downsens | Down sensors |
downacksens | Acknowledged Down alarms |
warnsens | Warning sensors |
unusualsens | Unusual sensors |
pausedsens | Paused sensors |
undefinedsens | Unknown sensors |
totalsens | Total sensors |
This sensor monitors now the number of sensors in the defined status and goes into warning or alarm status depending on the defined limits.
Add comment