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

get string value from custom exe/script sensor or sql



Good day! I have such problem: I want prtg to show me string values, i.e. I have script, that peforms an SQL query and returns me 4 columns: date\time | integer1 | integer2 | integer3. PRTG shows message "OK" for this sensor, but I want to see this message. In the script I parsed result to 4 channels. PRTG excellently integers, but I can't see date\time message. Is there any way to show string values in PRTG? Thx.

custom-sensor sqlsensor string

Created on Apr 14, 2014 4:46:50 AM

2 Replies



To display a custom last message, you can put the tag

<text>Your message</text>

at the end of the output for your script and this message will be shown as the last message rather than OK.

String values cannot show up in PRTG channels. PRTG is only able to handle text as the last message or channel name so you could put the date in the sensor that way.

Created on Apr 16, 2014 11:01:28 AM by  Greg Campion [Paessler Support]



You might want to look at this answer as it provides more information about how you can handle string results.

KB: How can I monitor strings from an SQL database and show a sensor status depending on it?

Created on Jul 31, 2015 10:33:23 PM

Last change on Aug 3, 2015 6:13:05 AM by  Luciano Lingnau [Paessler]

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.