LMS 4 customize alert messages

I see that some customization is possible on some alert messages subject lines but can these things be done?
The message is sort of hard to read with all the lines running into each other.
Also, I would like to see the device and the device and the status first and then the date.
Make this
Subject: 000073I ; 1.2.3.4 ; Wed 02-Feb-2011 08:56:27 EST ; Critical ; Unresponsive ; Active ;
EVENT ID = 000073I
TIME = Wed 02-Feb-2011 08:56:27 EST
STATUS = Active
SEVERITY = Critical
MANAGED OBJECT = 1.2.3.4
MANAGED OBJECT TYPE = Routers
EVENT DESCRIPTION       = Unresponsive::Component=1.2.3.4;ComponentClass=IP;ComponentEventCode=1098;InterfaceType=SOFTWARELOOPBACK;InterfaceMode=NORMAL;InterfaceAdminStatus=UNKNOWN;Address=1.2.3.4;IPStatus=TIMEDOUT;InterfaceOperStatus=UNKNOWN;NetworkNumber=172.1
CUSTOMER IDENTIFICATION = Routers
NOTIFICATION ORIGINATOR = Fault Management Module
Look like this:
Subject: 1.2.3.4; Critical ; Unresponsive ; Active ; Wed 02-Feb-2011 08:56:27 EST
EVENT ID = 000073I
TIME = Wed 02-Feb-2011 08:56:27 EST
STATUS = Active
SEVERITY = Critical
MANAGED OBJECT = 1.2.3.4
MANAGED OBJECT TYPE = Routers
EVENT DESCRIPTION       =
Unresponsive::Component=1.2.3.4
ComponentClass=IP;ComponentEventCode=1098
InterfaceType=SOFTWARELOOPBACK
InterfaceMode=NORMAL
InterfaceAdminStatus=UNKNOWN
Address=1.2.3.4
IPStatus=TIMEDOUT
InterfaceOperStatus=UNKNOWN;NetworkNumber=1.2
CUSTOMER IDENTIFICATION = Routers
NOTIFICATION ORIGINATOR = Fault Management Module
Also make this:
CiscoWorks HUM: Critical: Device Availability Threshold Violation: Availability (My Router)
Look like this
HUM: Critical: (My Router) Device Availability Threshold Violation: Availability

No, this type of customization is not possible within LMS.  I know it's not ideal, but what about sending these notifications to a script mailbox first that parses them and converts them to your desired format.  Then that script can bounce the messages to your human mailboxes.  The messages would be easy to parse using Perl.  For the Faul notifications, you can tokenize on '=' then ';'.  For example:
my @msg = ;my %vars;my $subject;my @order = ();foreach my $line (@msg) {    chomp $line;    if ($line =~ /^Subject: (.*)/) {        $subject = $1;        next;    }    ($name, $value) = split(/\s+=\s+/, $line);    $vars{$name} = $value;    push @order, $name;}my ($eid, $ip, $date, $severity, $name, $status) = split(/\s*;\s*/, $subject);my $new_msg = "From: [email protected]\n";$new_msg .= "To: [email protected]\n";$new_msg .= "Subject: $ip ; $severity ; $name ; $status ; $date\n\n";my @eparts = split(/\s*;\s*/, $vars{'EVENT DESCRIPTION'});$vars{'EVENT DESCRIPTION'} = "\n" . join("\n", @eparts);foreach my $key (@order) {    $new_msg .= "$key = $vars{$key}\n";}sendMail($new_msg);

Similar Messages

  • Customize Alert messages for checking duplicate value and Success alert

    Hi All,
    I want to show two alert against the same "Submit" button to--
    1. Alert messages for checking duplicate value and show the Duplicate value found alert and
    2. Success Alert if the form is success to commit and no duplicate value found.
    I did all thing but when alert-1 shows and i pressed the ok button of the alert then the second alert also shows which i don't want to show.
    Which i can do in this issue? Have there anyone to help me!
    Arif

    Hi Manu,
    I have placed the following code
    1. against the Submit button--
    if error_code=40508 then
         commit_form;
    elsif :USERDELETION.CANCELLATION_USERID is not null then
    do_key('COMMIT_FORM');
    else null;
    end if;
    2. Code against the key-commit trigger in the form level--
    commit_form;
    DECLARE
    vAlert NUMBER;
    BEGIN
    set_alert_property('ALERT_TO_VERIFY',ALERT_MESSAGE_TEXT, 'Your Form has successfully submitted and your Reference id is '||:USERDELETION.REF_NO);
    vAlert:=SHOW_ALERT('ALERT_TO_VERIFY');
    END;
    3. Code against the on-error trigger in the form level--
    DECLARE
    vAlert NUMBER;
    BEGIN
         if ERROR_CODE = 40508 then
    set_alert_property('ERROR_ALERT',ALERT_MESSAGE_TEXT, 'This user deletion request has already submitted of the user named '||'"'||:USERDELETION.FULLNAME||'"');
    vAlert:=SHOW_ALERT('ERROR_ALERT');
    elsif
              ERROR_CODE = 40202 then
    set_alert_property('ERROR_ALERT',ALERT_MESSAGE_TEXT, 'Existing userid must be filled-up !');
    vAlert:=SHOW_ALERT('ERROR_ALERT');
    else
                   message(error_type||to_char(error_text)||': '||error_text);
    end if;
    END;
    If there have any confusion, please ask me.
    Arif

  • Partial display of large Alert message - SAP CRM 2007.

    Hi,
    I am using SAP CRM 2007.
    I created a simple alert with 150 char message in IC which will be triggered on confirmation of an account.
    The alert gets displayed on the IC agent screen but he can only see partial message of the alert.
    Only the message that can come in the first line gets displayed. There is no option to scroll to see the remaining message.
    Please suggest how can user see the complete alert message. Can the alert text area be controlled by some customization?
    Regards,
    Akanksha

    Hi Antonio.
    I'm wondering if/how you resolved this issue.  I am currently facing the same problem on an upgrade to EHP1 for CRM 7.
    Thanks,
    //Eric
    Edited by: Eric Roholt on Sep 9, 2011 9:03 PM

  • Generating Alert Message XML file and placing it in Queue

    Hello Team,
    I want the alert mechanism to generate the Alert file in XML format and it should be placed in the Queue it is the requirement of the client and it should be done without the help of the BPM can any one suggest me is this scenario can be done and if it can be done then please suggest me how can we do it.I have also refereed http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/10/23/customize-e-mail-body-and-subject-in-alerts-in-sap-pi-731-java-stack-only-part-1-esr this link of customized alert mail but i want that attached file of email to be placed in the Queue and also without using BPM.
    I am also thinking is it possible to combine multiple interfaces without using BPM.
    Please help me in this issue thanks very much in advance.
    Regards,
    Avinash.

    Hi Avinash,
    One option is genrate customize alert as per blog, pick the alert email from mail box and place in the desired queue with another interface.
    So you have two flow
    customize alert interface to create customize alert and send the message to mail box
    Pick the alert from mail box and place in the queue
    regards,
    Harish

  • Before page refresh how to get alert message

    Hello ..
    If user refreshes webpage then from flex side how to get alert message.
    Thanks in advance.

    If you don't want it to say "Microsoft Internet Explorer," you can use a different browser. :-)
    But, seriously...
    If you really want to customize the appearance of a dialog, you can make one with DHTML that looks like anything you want. You can make it look like a system dialog if you want, but you don't have to. (In fact, if you make it look like a Windows dialog, it will stick out like a sore thumb if someone is using another OS.)
    I had to create some of these for an online testing application I wrote, because they wanted the tests to be timed, and I discovered that, in Internet Explorer, you could stop the clock just by opening certain dialogs, so I had to suppress "right-clicking," remove the menu bars, and use custom dialogs to communicate with the user. Since then I've re-used these dialogs in a number of other projects. They're pretty handy.

  • IChat Alert Messages (Fun Feature gone)

    Another Mac Fun Feature bites the dust. You can no longer Customize you own Alert Messages. Everyone had fun with this feature.

    Use http://www.apple.com/feedback/ichat.html
    7:21 PM Wednesday; October 31, 2007

  • Filename in an alert message

    Hi Friends,
    I am doing a simple file to idoc scenario.
    if mapping error occurs.
    the requirement is to trigger an alert which says "A mapping error occurred when processing the file XYZ.txt"
    Constraints are:
    1. BPM is not used as it is a simple scenario.
    2.RFC lookup during mapping is to be avoided since if mapping itself fails then it will be of no use.
    Is there a way/work around to get the filename dynamically in the alert message.
    Thank you,

    Seems to be not possible without a BPM.....at least by using a standard alert procdure
    Using a mapping get the FileName .....have both the source and target message as the same.....
    map the FileName to some empty node of the structure.
    In the mapping logic, one for which you want to check for any exception, do not make use of the node containing the FIleName...let the rest mapping remain as is
    Create a Container Variable and Assign the node containing the FileName to it using a Container Operation.
    Then raise the Alert.
    I have used a similar approach in one of my interfaces.
    Regards,
    Abhishek.

  • Display an Alert message in PL/SQL block in APEX

    Hi,
    we are getting an oracle exception while inserting a new row. As it is having the unique constaint on a coulumn.
    Now the problem iis we need to Display an "Alert message" based on the input field validation. That java script code for alert has to be embeded nside a PL/SQL block in Oracle APEX Application.
    we tried doing this with below code:
    Begin
    INSERT INTO <<table name>>(ID,NAME) VALUES (s1,:TXT_s2);
    exception when others then
    htp.p('<script language="javascript">');
    htp.p('alert("Exception");');
    htp.p('</script>');
    end;
    If anybody knows .... please reply.
    Thanks,
    Subarna
    Edited by: user9955252 on Apr 21, 2010 1:47 AM

    Hello,
    APEX Forum is here : Oracle Application Express (APEX)
    Regards

  • An alert message observered while appling latest patch MLR 10

    Hi Gurus,
    While applying latest patch MLR10 we observed an alert message as below
    "Creating log file "C:\oracle\midtier\.patch_storage\8404955\Apply_8404955_05-21-
    2009_15-44-27.log"
    Conflicting patches: 8204237,
    Patch(es) 8204237, conflict with the patch currently being installed (8404955).
    If you continue, patch(es) 8204237, will be rolled back and the
    new patch (8404955) will be installed.
    Note: If the patch currently being installed (8404955) is rolled back,
    it is recommended that the fixes being rolled back here (8204237, ) are reinstal
    led.
    If a merge of the new patch (8404955) and the conflicting patch(es)
    8204237, is required, contact Oracle Support Services and request
    a Merged patch.
    Do you want to STOP?
    Please respond Y|N
    Should we rollback the previous patch before applying MLR10 ? or can i continue with patch application ?
    Thanks in advance,
    Regards,
    Cema

    Please continue the MLR10 patch installation, this message would appear for the all patch installation (of course, patch number would be different though).

  • An alert message pops up upon opening saying could not initiate application security component, and it says to check to see if profile has no read/write restrictions.

    An alert message pops up upon opening saying could not initiate application security component, and it says to check to see if profile has no read/write restrictions. Than when it opens all of my saved passwords are gone, I use a master password and its disabled. When I try to enter in a new on e it says can't change password. I can't even open yahoo e-mail says that my ssl security is down but when I check it its clicked. I'm just very confused as to whats going on.
    == This happened ==
    Every time Firefox opened
    == 5/14/2010 ==
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1064 Safari/532.5

    See [[Could not initialize the browser security component]]
    Rename (or delete) secmod.db (secmod.db.old) in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder] in case there is a problem with the file.

  • Can we use the value of a variable in an alert message

    I have a variable in forms6i. I want to use the value of this variable in an alert message. How is this possible?

    Gul wrote:
    I have a variable in forms6i. I want to use the value of this variable in an alert message. How is this possible?Try
    DECLARE err_txt VARCHAR2(200) t;
    al_id ALERT;
    al_button Number;
    BEGIN
    al_id := FIND_ALERT('My_Error_Alert');
    SET_ALERT_PROPERTY(al_id, alert_message_text, 'Hello how are you mr. variable '||:variable_name );
    al_button := SHOW_ALERT( al_id );
    END; Hope it works..
    Hamid

  • How to stop printing the crystal report with an alert message

    I am having a field called "APPROVAL" in my stored procedure with which I prepared the CR. I want that if the value in the filed is 'A' then only the crystal report should print else it should prompt with an alert message.

    Hi Sreejith,
    Check this helps you:
    Create an alert from "Report  -> Alerts -> Create or Modify Alerts" with below steps:
    1. Provide name of the alert (say Alert1)
    2. Click on X+2 in front of "Message" field and write the Alert message you want to display.
    3. Click on Condition button and write the condition If not({APPROVAL}='A') then true;
    The above Alert will prompt with configured alert message when {APPROVAL} field is not having value of 'A'
    Now, in a formula, write below content and display it where you want to display the APPROVAL field value:
    If {APPROVAL} = 'A' then
              {APPROVAL}
    This formula content will be blank if the value of {APPROVAL} is not 'A'
    Thanks,
    Raghavendra

  • When I am writing an email, I get an alert message that says "The message could not be copied or moved to the drafts folder. Writing to the folder failed. To ga

    When I am writing an email, I get an alert message that says “The message could not be copied or moved to the drafts folder. Writing to the folder failed. To gain disc space, choose Empty Deleted and choose Compact Folders and try again.”
    If I do that, I get a message saying “There was an error copying to the Sent folder,, retry?”
    If I retry it sends the uncompleted email. All I can do is keep deleting the message and carry on. Then the whole business might repeat itself.
    Help!
    Frank

    Because the location for each song in your library is on your hard drive.  If the hard drive isn't there, how can iTunes play it?
    You'll have to move/copy the music from your hard drive to your computer's hard drive.
    Basically, EASIEST way to do all this, if you don't care about your play counts, etc...
    -Delete EVERYTHING from iTunes, so that your library is now empty.
    -Go to "Advanced" inside of the "Preferences" window, found in the "Edit" drop-down.  You can also access Preferences by pressing Ctrl+, (Press Ctrl and the comma key)
    -Change your iTunes Media Folder Location to something simple, but on your computer. I use C:/iTunes.  Make sure "Keep iTunes Media Folder Organized" and "Copy files to...." are both checked.  You can close Preferences now.
    -Now, drag and drop your music from your hard drive into your iTunes library.  iTunes will automatically add the music to your library, as you would expect, and also creates a copy of each file to place into that iTunes Media Folder you just created.
    Shouldn't have any more problems...

  • Cash account with nagative balance shows an alert message

    Hi All,
    when user  create  any type of  Outgoing Payment , Incoming Payment, deposits , Journal Entry with the Cash account which is active accounts and the account balance is less than ZERO so system gives an alert message  on the screen I want this type any query or any store procedure.

    Hi ,
    As far as i  am understanding your query this may be for outgoing payment.
    Do you want to stop a outgoing payment from cash account? if balance in this account is zero.
    Clerify your question.
    Thanks
    Ashutosh

  • Outlook 2016 getting crashed and throws an alert message as "microsoft outlook has encountered a problem and needs to close.

    Hi,
    Today i installed Microsoft Office 2016 preview for my Mac OS X 10.10 Yosemite. Word, Excel and Powerpoint applications are working without any problem. However, Outlook getting crashed and throws an alert message as "microsoft outlook has encountered a problem and needs to close.", it's happens always, when i launch outlook. please suggest me, how can i comet from this issue.
    Thanks in advance,
    Suresh Balakrishnan.

    Go to the Microsoft site for help. These forums are not offering support for MS products, especially not for beta products.

Maybe you are looking for

  • Iphone ios5 update - error (-23)

    Hi, trying to update my iphone (running 4.3.2) and am getting a error (-23) - see below -. can't find any support on it. have been able to update my ipad no issues. i tried jb-ing my phone but it didn't work so i dropped it, not sure if it changed so

  • Soundbooth crashes when I select built-in microphone input on Mac

    Every time I go into audio hardware preferences and select the built-in input or the built-in microphone options, the system crashes. The same thing happens when I make the same selections in Premiere Pro or in After Effects, so I know it's not speci

  • GRR3 - 6PP1-001 - Object display

    Hi, when runnig report with transaction GRR3, library 6P3, report 6PP1-001 the objects are displayed in internal format (f.e. PD00001539). Running the same report with transaction S_ALR_87013542 the objects are displayed in external format (f.e. BP/2

  • Unix script output sql result to terminal

    Hi, I run the script below within a unix script. the query runs but only outputs the first line. I need the whole results output to the terminal.. please let me know if I am doing something wrong. thanks ORACLE_SID=orcl export ORACLE_SID SHELL=/bin/s

  • J2ee status info available

    Hi All,     Recently my Netweaver 7.0 giving trouble, It has dual stack ABAP is starting but at the time of starting the J2ee status info available. I am getting the following information from the bootstrap log files JSM_bootstrap Missing RunningMode