I'm trying to keep track of ips visited when using "tracert" with Powershell. I've successfully created a sensor (EXE/Script) that will return the hop path as a message. Is there any way to return multiple messages so that I can give the sensor multiple parameters to take multiple ips?

I tried to do this with the EXE/Script Advanced Sensor but couldn't figure out how to return a json of the proper format.


Article Comments

Dear justinkae

A sensor only has one message. Multiple messages are not possible. If you don't get the JSON format right, please use XML instead. It is documented via the API documentation which is integrated in the PRTG webinterface: Menu Setup | PRTG API, tab Custom Sensors.

That section details all custom sensor types, including the non XML ones. Please scroll down to the XML documentation. (The JSON is analogue to XML, just in JSON formatting.)


Jul, 2017 - Permalink