What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

How can I send string to a channel?

Votes:

0

I'm using EXE/Script advanced sensor. I want a channel only for information, this channel will not show alerts or warnings, it's only to show a string. Example a date format: 6/5/2017 11:00:00.

Is it possible?

<?xml version="1.0" encoding="Windows-1252" ?> <prtg> <result> <channel>LAST(Date)</channel> <value>6/5/2017 1:54:49 AM</value> <mode>Absolute</mode> </result> <text>OK</text> </prtg>

advanced custom date date-format exe script xml

Created on Jun 5, 2017 2:48:01 PM



1 Reply

Accepted Answer

Votes:

0

Hi there,

PRTG cannot evaluate strings, only integers and floats. You'll need to use 0 as value and the text node:

<?xml version="1.0" encoding="Windows-1252" ?> 
   <prtg> 
     <result> 
         <channel>LAST(Date)</channel> 
         <value>0</value> 
         <mode>Absolute</mode> 
     </result> 
     <text>6/5/2017 1:54:49 AM</text>
   </prtg>

Then it will be displayed properly.


Kind regards,
Stephan Linke, Paessler Tech Support

Created on Jun 6, 2017 11:16:35 AM by  Stephan Linke [Paessler Support]




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.