New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

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


Formating ErrorMsg for custom sensor

Votes:

0

Your Vote:

Up

Down

Hello. I`ve created custom sensor on .vbs
I need to separate resulted message in

		Wscript.echo "<LimitErrorMsg>"
		Wscript.echo "variable"
		Wscript.echo "</LimitErrorMsg>"

with new line.
For this I added vbCrLf in needed placec:

variable = "[File "&fileCount &" name = "& objFSOFolderFile.Name  & vbCrLf & "; Difference = " & datDiff & " minutes]; "& vbCrLf &""

When I check it via .vbs file running - separation working fine but result in PRTG, which i Recieve to my maibox, without separations.
Is there any sollutions to make ErrorMessage with separator = new lines (same as vbCrLf)?

advanced-custom-sensor vbs xml

Created on Dec 18, 2019 2:47:56 PM by  Denis Golovin (0) 1

Last change on Dec 19, 2019 9:34:27 AM by  Birk Guttmann [Paessler Support]



3 Replies

Votes:

0

Your Vote:

Up

Down

Hi there,

Unfortunately, it's not possible to use a variable here. PRTG will set those settings when creating the Sensor, after that they can only get changed manually in the corresponding settings.

If you want to return different sensor messages, you can use <Text></Text>. How this works and where to use is explained here.


Kind regards,
Birk Guttmann, Tech Support Team

Created on Dec 19, 2019 9:40:02 AM by  Birk Guttmann [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Thank you Birk. Is there any sollutions to make variable in <text>variable</text> with separator = new lines (same as vbCrLf)?

Created on Dec 19, 2019 10:22:37 AM by  Denis Golovin (0) 1



Votes:

0

Your Vote:

Up

Down

Hi there,

The status message cannot have a line break. Line breaks in the sensor message would have implications for the PRTG user interface, and for PRTG notifications. We don't plan to allow line breaks in the near future.


Kind regards,
Birk Guttmann, Tech Support Team

Created on Dec 20, 2019 9:15:36 AM by  Birk Guttmann [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.