New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


Powershell Sensor Multiple Messages

Votes:

0

Your Vote:

Up

Down

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.

custom-script-exe exe-script-sensor help powershell prtg windows windows-2012-r2

Created on Jul 18, 2017 8:11:12 PM by  justinkae (0) 1



1 Reply

Votes:

0

Your Vote:

Up

Down

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

Created on Jul 19, 2017 10:20:08 AM by  Arne Seifert [Paessler Support]



Please log in or register to enter your reply.


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.