NotePage, Inc. Forum Index

Search found 7 matches
NotePage, Inc. Forum Index
Author Message
  Topic: Double Newlines from Solarwinds NPM
sweaver

Replies: 10
Views: 12212

PostForum: Integration Related Questions   Posted: Mon Aug 04, 2014 12:07 am   Subject: Double Newlines from Solarwinds NPM
Thanks guys, that's a great workaround for issue 1, until Solarwinds fixes it.

But the second issue remains - namely that when PageGate is given a well-formed .asc file in the polling directory, the message received on the phone has double new-lines for each CRLF in the message.

However, if one copies and pastes the contents of the .asc file to a serial terminal session then the message is delivered as expected (i.e. with the appropriate number of newlines)

Given that we know it is possible for the modem to send a single newline we know it isn't a limitation of the modem. I suspect one of the following: 1. I have misconfigured the serial connection settings - flow control being the likely culprit. 2. The modem expects only the LF but not the CR (or vice versa) or 3. PageGate is doing something strange and sending two EOLs where it should only be sending one (I will note I have seen the exact same issue with an entirely different environment and an entirely different model of modem).
  Topic: Double Newlines from Solarwinds NPM
sweaver

Replies: 10
Views: 12212

PostForum: Integration Related Questions   Posted: Thu Jul 31, 2014 9:06 pm   Subject: Double Newlines from Solarwinds NPM
Hi , I think there's been some miscommunication - it certainly seems that pagegate is responsible for issue 2.

The additional new line that is sent by the modem is the final one.

i.e. at the end of the message there is an additional new line.

By simply copying and pasting the contents of a .asc file (less the recipient and from information) the modem sends the expected message (where the correct number of newlines is respected), but an additional newline is appended at the end (I presume with the Control+Z character).

So - messages sent directly from the modem using a serial terminal service and copying and pasting from a .asc file sends as expected. Messages sent via pagegate still have double newlines within the body.

So, to summarize:

1. Solarwinds produces malformed messages
2. PageGate sends two newlines for each CR
3. The modems appends a single, additional newline to the message (unfortunately the bbcode parser strips trailing newlines from codeblocks).

So, I am talking to solarwinds about 1, 3 is not really an issue.

2 remains a problem.

As I mentioned above the modem is an Intercel SAM3G Plus.
  Topic: Double Newlines from Solarwinds NPM
sweaver

Replies: 10
Views: 12212

PostForum: Integration Related Questions   Posted: Wed Jul 30, 2014 10:10 pm   Subject: Double Newlines from Solarwinds NPM
I tried the "stripNonPrintable = true" options for both the carrier and the global template. It replaced all newlines with a space, which is not what I am after. As far as I can tell, there are two issues at play, the following describes the events that I am observing:

I proceed with the assumption that PageGate uses the Windows EOL convention

1. The alert trigger action within the Solarwinds advanced alert manager is correctly formed, copying and pasting from Notepad++ confirming the correct convention is observed. Each line has a CRLF at the end.

2. Issue 1: Solarwinds outputs a malformed .asc file, each line actually has 2 CRs and an LF i.e. CRCRLF. This is invisible to notepad, but obvious if you open the file in wordpad or notepad++

3. Issue 2: The file is processed, PageGate inserts multiple \013\010 entries for each CR and seems to ignore LF. For a single CRLF Pagegate sends 2 \013\010 to the modem.

I created 3 files which conform to the following EOL standards - Windows (CRLF), Unix (LF) and (Old) Mac (CR). I observed the following:

Unix was rejected.
The Mac and Windows formatted .asc files both sent with two CRLFs for each CR in the .asc file.

For reference the files were of the following format:

sweaver
sweaver
<EOL Type>:1
2

3


4

Where <EOL Type> is "Windows", "Mac" or "Unix" respectively.

I received

<EOL Type>

1

2



3





4

Note the extra newline at the end as well as the duplication of the newlines from the file to the message.

Obviously the first issue is something that I need to put to Solarwinds. The issue of PageGate's behaviour is somewhat more complicated - is there a setting or something that I am missing that can fix this behaviour?

EDIT: The additional newline at the end of the message appears to be a quirk of the modem - that happens when sending messages directly via AT commands and a serial terminal connection. So that one isn't PageGate' ...
  Topic: Double Newlines from Solarwinds NPM
sweaver

Replies: 10
Views: 12212

PostForum: Integration Related Questions   Posted: Wed Jul 30, 2014 8:39 pm   Subject: Double Newlines from Solarwinds NPM
Is there any way to send a backslash then? I would assume there must be some way?

Is there a particular term used that I could look for for finding this sort of information?

The modem in question is an intercel SAM3G+
  Topic: Double Newlines from Solarwinds NPM
sweaver

Replies: 10
Views: 12212

PostForum: Integration Related Questions   Posted: Fri Jul 11, 2014 11:41 am   Subject: Double Newlines from Solarwinds NPM
PageGate and yes, the same server.
  Topic: Double Newlines from Solarwinds NPM
sweaver

Replies: 10
Views: 12212

PostForum: Integration Related Questions   Posted: Thu Jul 10, 2014 11:41 pm   Subject: Double Newlines from Solarwinds NPM
Hi All,

When sending an SMS notification from Orion two carriage returns+linefeeds are added to end of each line once the notification is submitted by solarwinds.

i.e. the message might be:

Server Name: ${Caption}
Server IP: ${IP_Address}

The message within the GetAscii Polling directory will be:

Server Name: servername

Server IP: 10.1.1.1

And the message as seen/sent by PageGate will be:

Server Name: servername<CR><LF><CR><LF>Server IP: 10.1.1.1

And the message as submitted will be:

Server Name: servername<13><10><13><10>Server IP: 10.1.1.1


Any ideas as to how to get rid of the redundant CRLF?

Thanks.

EDIT: Similarly, it appears that adding a backslash to a message stops things from working. a problem when sending a disk label i.e. "C:\ 01273021"

Any thoughts there?

Also, we're using an Intercel SAM3G+ modem.
  Topic: Longform SMS and GSM Modems
sweaver

Replies: 2
Views: 3267

PostForum: PageGate Support   Posted: Thu Jan 30, 2014 11:00 pm   Subject: Longform SMS and GSM Modems
Hi All,

Is there a way to send a longform SMS without splitting them? In the same way that a 320 character SMS sent from a smartphone to another appears as a single message?
 
Page 1 of 1
All times are GMT - 5 Hours
Jump to:  


Powered by phpBB © 2001, 2002 phpBB Group
Theme created by Vjacheslav Trushkin