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


get string value from custom exe/script sensor or sql

Votes:

0

Your Vote:

Up

Down

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 by  Paul (0) 1



2 Replies

Votes:

0

Your Vote:

Up

Down

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]



Votes:

7

Your Vote:

Up

Down

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 by  pstallworth (70)

Last change on Aug 3, 2015 6:13:05 AM by  Luciano Lingnau [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.