Hi,

I have a sensor(EXE/script) that runs a powershell script. This script formats some XML into quite some data and outputs it to PRTG with the Write-Host cmdlet.

When I include the output in one of the generated mails with the %lastmessage placeholder the message gets cut down to 255 chars. This is troublesome because I need a still picture of how the XML looks at the time the script is called.

So my question is: Is there some way I can get the entire output from a script into a PRTG-mail?

Thanks in advance!

Kind regards Jens


Article Comments

Dear Jens

Are you referring to the HTML email subject line? In that case, the statusmessage will be shortened to 120 characters.


Sep, 2016 - Permalink

I'm talking about the body of the email. To my knowledge, the %lastMessage placeholder should translate to the last output from the script - correct?

But this seems to be shortened to 255 chars. So, is there some way i can get the entire output into the email?

Kind regards

Jens


Oct, 2016 - Permalink

Dear Jens

Which kind of email are you using (HTML, text?) The standard HTML email shows the full sensor status message, not cut off after 255 bytes. If you experience a different behavior, please contact support@paessler.com including a description of the issue and illustrating screenshots.


Oct, 2016 - Permalink

Hi again,

I'm using the Text with custom content from the SEND EMAIL option in notifications. In the field Custom Content, when i write %message, I would expect the entire output from the script to be put into the mail. This is instead cut down to 255 chars. I experience the same with the HTML template.


Oct, 2016 - Permalink

Dear Jens

The custom text email should also not cut the message. Please contact support@paessler.com including the aforementioned information and screenshots.


Oct, 2016 - Permalink