PRTG has different sensor states. They are represented in different colors. For example, green means healthy, red means there is a problem, and orange means unusual activities in the network. This article focuses on unknown sensors, but it can be used for any other sensor state.
I will show you how you can monitor the number of unknown sensors, and get notified if the threshold is reached.
Step 1: Add the target PRTG core server as a device
In the first place, you need to add a new device with the IP or DNS of your PRTG core server. You can add it to your existing PRTG core server.
Step 2: Add target PRTG core server as device
The HTTP XML/REST Value sensor retrieves an .xml file from a URL and parses it. In this case, you use it to query your PRTG core server and check what is the number of unknown sensors.Navigate to your target PRTG core server device.
- Add HTTP XML/REST Value sensor.
- Change the name of sensor (optional). In my case it is Unknown sensors.
- Type URL
- Type XML Node (and optional property)
- Type HTTP User Name and HTTP credentials that have permissions to query PRTG core server. You can also created dedicated API user for that purpose. In the end it should look like
- Type %1 into Custom Message so sensor only shows number of unknown sensors without any strings.
- Click Create.
- Congratulation. Your sensor is up and running. In my case, it shows 31 as number of unknown sensors on target PRTG core server.
Step 3: Enable channel limits
In the second step, you need to configure limits, so the sensor goes to a down state if a certain number of the unknown sensor is detected.
- Navigate to your sensor.
- Click on settings as shown in the screenshot below, or click on sensor channel Value.
- Under Lookups and Limits, click on Enable alerting based on limits and under Upper Error Limit type to number of sensor.
In my case it is 30. If there are 30 unknown sensors, this sensor will go into down state. Once you save changes, sensor gauge will change the color.
Step 4: Configure notifications
In the last step, you need to create notification, so PRTG informs you if there are any changes with your sensor.
- Navigate to your sensor.
- Click on Notification triggers.
- Create Add State Trigger notification and configure what kind of notification you want to receive in case there is X number of unknown sensors on your PRTG Core server. I go with simple Ticket notification.
Sensor goes into down state because there are 33 unknown sensors.
I received ticket after 30 seconds. You see that sensor is in down state because there are 33 sensors in unknown state.
Thank you for reading this article. If you found it useful, feel free to share it with your network.