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)?
Article Comments
Thank you Birk. Is there any sollutions to make variable in <text>variable</text> with separator = new lines (same as vbCrLf)?
Dec, 2019 - Permalink
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
Dec, 2019 - Permalink
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
Dec, 2019 - Permalink