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

AWS SNS Notification Message Limit

Votes:

0

The message body limit for sending SNS messages with a state trigger appears to only be 255 characters. Is there a way to increase the amount of information that is able to be published on the SNS?

aws notification notification-delivery notifications sns

Created on Dec 2, 2018 10:45:51 PM



10 Replies

Votes:

0

Dylan,

This is a limit imposed by Amazon.

Amazon SNS FAQs

Q: What is the format of an Amazon SNS topic?

Topic names are limited to 256 characters. Alphanumeric characters plus hyphens (-) and underscores (_) are allowed. Topic names must be unique within an AWS account. After you delete a topic, you can reuse the topic name. When a topic is created, Amazon SNS will assign a unique ARN (Amazon Resource Name) to the topic, which will include the service name (SNS), region, AWS ID of the user and the topic name. The ARN will be returned as part of the API call to create the topic. Whenever a publisher or subscriber needs to perform any action on the topic, they should reference the unique topic ARN.

The following is the ARN for a topic named “mytopic” created by a user with the AWS account ID “123456789012” and hosted in the US East region:

arn:aws:sns:us-east-1:1234567890123456:mytopic Note: Users should NOT attempt to build the topic ARN from its separate components – they should always use the name returned from the API call to create the topic.

Let me know if I can answer any other questions.

Benjamin Day
Paessler Support

Created on Dec 3, 2018 4:10:15 PM by  Benjamin Day [Paessler Support] (1,441) 2 1



Votes:

0

Hi Benjamin,

The AWS SNS topic names are limited to 255 characters however the SNS body message/payload can be up to 256KB - https://aws.amazon.com/about-aws/whats-new/2013/06/18/amazon-sqs-announces-256KB-large-payloads/ The PRTG SNS notification 'message' isn't the AWS SNS 'Topic' but the publised payload by the Topic created already in the AWS dashboard.

Created on Dec 3, 2018 7:36:07 PM



Votes:

0

Not sure if my last reply went through. Yes this is true that SNS topics are limited to 255 characters, but the topic is created in the AWS console and the ARN that the PRTG notification publishes to is linked to this topic. PRTG is publishing a message/payload to that topic therefore has a limit of up to 265 KB if using the 'Large Payloads'

Created on Dec 3, 2018 8:04:01 PM



Votes:

0

Dylan,

Are you sending these out via email or SMS? I apologize for my lack of knowledge regarding SNS. From what I've gathered, a message is sent to Amazon, and you can then either have it email or send you an SMS message based on that. Is that correct, or am I way off?

Benjamin Day
Paessler Support

Created on Dec 4, 2018 2:25:56 AM by  Benjamin Day [Paessler Support] (1,441) 2 1



Votes:

0

That is correct. I am using the Amazon SNS service to trigger internal Amazon Lambda functions within my stack. The alerts never get posted to email, SMS or anywhere else by the SNS service. This message character limit appears to be imposed by the PRTG notification service rather than Amazon SNS. See the link in my first reply as SNS can do up to 256KB payloads. Thanks for your response.

Created on Dec 4, 2018 2:29:56 AM



Votes:

0

Dylan,

One of my colleagues helped out here to clear this up.

"The message part is only sent if you use email based notifications delivered by Amazon SNS." --> I think that would be the "body" he refers to, which can be indeed be quite huge, up to 256kB payload.

However, since he does not trigger an email through this SNS voodoo, the whole message block is disregarded, only the subject will be used and "The maximum length for the subject is 202 characters. Characters that exceed this number will be cut off."

I think this is why you're getting cut off. Thoughts?

Benjamin Day
Paessler Support

Created on Dec 4, 2018 5:15:29 PM by  Benjamin Day [Paessler Support] (1,441) 2 1



Votes:

0

It is definitely coming through on the 'message' part of the SNS rather than the 'subject'. I can send you the JSON of the incoming SNS message if you would like to take a look.

Created on Dec 9, 2018 8:37:04 PM



Votes:

0

Dyaln,

Sure, please do.

Benjamin Day
Paessler Support

Created on Dec 10, 2018 7:44:48 PM by  Benjamin Day [Paessler Support] (1,441) 2 1



Votes:

0

Hi Benjamin,

Has there been any further progress on this issue? It still appears that there is a 256 character limit for SNS messages published by PRTG alerts. This limit does not exist on the AWS side as I have just tested this manually. I am triggering an email with the SNS.

Regards Dylan

Created on Feb 7, 2019 3:00:44 AM



Votes:

0

Dylan,

Did you send a support ticket in with the JSON? I would have opened a ticket with my devs, but I don't have any tickets opened from your email on file, [email protected].

Can you look back through, and see if you have a ticket number for the case in a different inbox?

Benjamin Day
Paessler Support

Created on Feb 8, 2019 4:51:35 AM by  Benjamin Day [Paessler Support] (1,441) 2 1




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.