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

Formating ErrorMsg for custom sensor

Votes:

0

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

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



3 Replies

Votes:

0

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

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



Votes:

0

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]




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.