DX Infrastructure Management

Expand all | Collapse all

nimalarm multiple message lines

  • 1.  nimalarm multiple message lines

    Posted 08-23-2012 08:04 AM

    Has anybody tried to use nimalarm to generate multiple lines alarm message so it would generate alarm like this:

    message field line 1

    message field line 2

    message field line 3

     

    I have tried to use \n or \n\r but it does not interpolate the extended formatting to newline. Is there anything that I might miss? Thanks.



  • 2.  Re: nimalarm multiple message lines

    Posted 08-24-2012 08:37 AM

    Hi,

     

    I've also tried this without succeeding. It seems to me these are stripped before inserting the message to nas_alarms table. Would love to know if there's a way to do this!



  • 3.  Re: nimalarm multiple message lines

    Posted 08-24-2012 10:40 AM

    I am sorry to say that the nas does not currently support any control characters.

     

    You may like to add this to the ideas section.



  • 4.  Re: nimalarm multiple message lines

    Posted 08-24-2012 05:20 PM

    I have worked around this in the past by using "\n" in alarm messages (which remained two characters in the NAS and was not treated as a new line) and then making sure that combination was interpreted as a new line when pushing alarms into an external ticketing system. But this does not help if you need to work with the alarms directly in the Alarm SubConsole or if you use one of the Nimsoft-provided gateway probes.