EEM- Email alert with IP SLA Based on Packet Loss

hi joseph,
i need your advise, i want to get alert email based on IP SLA Packet loss
the scenarion as below :
1. If the traffic hit threshold packet loss greater than 20% as long 15 minutes --> send email
2. If reset condition packet loss eq 0% as long 15 minutes --> send email again
 I don't know how to configure it condition. could you help me to verify my configuration below?
ip sla logging traps
ip sla 1 
 icmp-jitter 10.216.0.105 source-ip 10.216.0.107 num-packets 100 interval 40
 frequency 50
ip sla schedule 1 life forever start-time now
ip sla reaction-configuration 1 react Packetloss threshold-value 3 1 threshold-type immediate action-type trapOnly
ip sla enable reaction-alerts
event manager applet TEST 
 event syslog pattern "IP SLAs\(1\): Threshold exceeded"
 action 2.0 mail server "10.240.0.10" to "[email protected]" from "[email protected]" subject "Alert for Intermittent Link" body "link intermittent in x %"
thank you

What's you have could work with a few modifications.  First, increase that threshold-value of 3 to 20.  You can leave the falling threshold value of 1.  You'll need to add another applet to match the falling threshold syslog message.  Not sure exactly what that one will look like.
The first applet will look like this:
event manager environment q "
event manager applet ipsla-threshold-exceeded
 event syslog pattern "IP SLAs\(1\): Threshold exceeded"
 action 001 cli command "enable"
 action 002 cli command "config t"
 action 003 cli command "no event manager applet ipsla-healthy"
 action 004 cli command "event manager applet ipsla-unhealthy"
 action 005 cli command "event timer countdown time 900"
 action 006 cli command "action 1.0 mail server $q 10.240.0.10$q to $q [email protected]$q from $q [email protected]$q subject $q Alert for Intermittent Link$q body $q link intermittent in 20 %$q"
 action 007 cli command "action 2.0 cli command enable"
 action 008 cli command "action 3.0 cli command $q config t$q"
 action 009 cli command "action 4.0 cli command $q no event manager applet ipsla-unhealthy$q"
 action 010 cli command "action 5.0 cli command end"
 action 011 cli command "end"
And the second applet (the one where you'll need to fill in the appropriate syslog pattern) will look like:
event manager applet ipsla-threshold-normal
 event syslog pattern "FALLING THRESHOLD PATTERN HERE"
 action 001 cli command "enable"
 action 002 cli command "config t"
 action 003 cli command "no event manager applet ipsla-unhealthy"
 action 004 cli command "event manager applet ipsla-healthy"
 action 005 cli command "event timer countdown time 900"
 action 006 cli command "action 1.0 mail server $q 10.240.0.10$q to $q [email protected]$q from $q [email protected]$q subject $q Link is stable$q body $q Link has been stable for 15 minutes$q"
 action 007 cli command "action 2.0 cli command enable"
 action 008 cli command "action 3.0 cli command $q config t$q"
 action 009 cli command "action 4.0 cli command $q no event manager applet ipsla-healthy$q"
 action 010 cli command "action 5.0 cli command end"
 action 011 cli command "end"

Similar Messages

  • EEM Email setup for IP SLA

    Hi,
    I have setup an IP SLA on my cisco 3850 switch internally. Everything is working great! What i need to know is how can i setup an Embedded Event Manager (EEM) email alert on my 3850 so when the IP SLA does occur i want an email triggered informing me. Same goes for when IP SLA returns back to primary route.
    Your help is appreciated immensely.
    Saif

    So sorry to bother you again, but is this is how it is suppose to look:
    ip sla 1
    icmp-echo 8.8.8.8 source-ip 192.168.10.1
    frequency 5
    ip sla schedule 1 life forever start-time now
    ip sla reaction-configuration 1 react timeout threshold-type immediate
    ip sla enable reaction-alerts
    track 1 ip sla 1 reachability
    delay down 90 up 90
    event manager environment _email_server
    event manager environment _email_from [email protected]
    event manager environment _email_to [email protected]
    event manager applet ISPCheck
    event ipsla operation-id 1 reaction-type timeout
    action 1.0 if $_ipsla_condition eq "Occurred"
    action 1.1  syslog msg "Primary Internet Circuit Down"
    action 1.2  mail server "$_email_server" to "$_email_to" from "$_email_from" subject "Circuit Down" body "Primary Internet Circuit Down."
    action 1.3 else
    action 1.4  syslog msg "Primary Internet Circuit UP"
    action 1.5  mail server "$_email_server" to "$_email_to" from "$_email_from" subject "Circuit UP" body "Primary Internet Circuit UP."
    action 1.6 end
    thanks,

  • Prime Infrastructure 2.0 email alerts with hostname?

    I have configured email alerts however in the message it shows up with the IP address instead of hostname.
    Is there a way to configure the hostname to be added? Custom text or adding the switch differently (added by direct IP search)?
    Thanks,
    Chris

    I see now, this is a poor carry over from NCS. The option that says include "controller" in email does provide the switch hostname. Hopefully by version 3.0 they will have all the wireless naming fixed when it applies to converged.
    Thanks Rob!

  • Email Alert with data from payload SAP PI 7.0

    Hi,
    i have a requirement to send an email alert when a Purchase Order Transmission fails through PI. In the email i need to send PO number which had failed.
    Format is:
    Subject- PO # XXXXXXX failed to reach XXXTarget
    in the mail content i need to mention the error and why the error occurred.
    Please tell if this is possible in SAP PI 7.0 If yes then How?
    Regards,
    Ashwani

    Hi,
    If the message fails in in mapping, you can send the alert with PO number in the email. Steps would be following.
    Catch the execpetion
    Call RFC SALERT_CREATE  by passing required parameters
    You can also pass the PO number as one of the value which will can be used in you alert category
    PO number can be used as one of the Alert container
    But if the message fails in adapter engine you cannot send the PO number in the email. You can just send email with standard alert containers.

  • Desktop email alert with outlook 2013 in windows 7 no skype

    I recently Upgraded from office 2010 to office 2013 running on windows 7 Enterprise in my office Laptop, I do not have Skype installed in my laptop and I don't receive any email alert notification or either sound. I am using outlook 2013 with Exchange
    account, what should I do ?
    Regards,
    Praveen

    Hi,
    Do you mean there is no Skype App after installing Office 2013?
    Did you custom install Office 2013 without checking Skype app?
    Thanks
    Mavis
    Mavis Huang
    TechNet Community Support

  • I can't email alerts with calendars

    At the moment of setting up the an email alert, calendars does not allows me to set an email. There is no email and calendars opens a pop up window error saying there is no email.

    I just figured it out! I set the email account I am using to try to send the photos as my default account by going to General > Settings > Mail > scrolling down to Default Account. Mine was set as my iCloud account. I switched it to gmail and now I can send photos.

  • Email alert with 6 email accounts

    For the love of God how do I setup my phone to alert me (make a sound) when I receive an email on any of my mailbox?  For some weird reason, it only alerts me on the primary and secondary mailbox on main screen.
    Please don't tell me that this ain't possible, I'm going to throw this piece of sh** out the window!
    First I lost the tap and turn, then a lot of features on the manual that is not on the PHONE! Like the out of the office reply! And mailbox renaming!
    I should have sticked with my G1

    You did not mention the phone model, but I assume it is a S6v3. In this case, this is the situation:
    - you cannot have more than 6 E-mail accounts
    - you cannot set more than 2 E-mail addresses for auto-retrive
    - you cannot get alert from more than 2 E-mail addresses
    Maybe someone else knows better, but this is my expeience. Obviously, you won't find these limitations in the specs or User Manual.
    2110i, 6150, 6210, 6310i, 6670, 9300, 9300i, E90, E72, HTC Touch Pro2, Samsung Galaxy S, Samsung Galaxy S II

  • CCMS Configuration - Central Monitoring and Email Alerts with Solution Mgr

    I am trying to configure my CCMS alerts on my satellite systems to be linked into the Solution manager system (acting as the CEN monitoring node). If I have already setup my RZ20 alerts, is there a way I can just link these into Solution Manager.
    Thanking you for your suggestions

    Try setting up the monitoring RFC connections in SMSY. Once those are setup, you can pull the CCMS data in and view within tran SOLUTION+MANAGER.
    If you need more detail, just update this message.
    Thanks,
    J. Haynes

  • SMTP Email Alerts with RVS4000

    Hey everyone,
    We recently changed mailservers and now I can't get our RVS4000 to email logs via SMTP. We just started using google apps, which run SMTP through port 587 and require authentication. Is there any way of getting the RVS4000 to use a non-standard port for SMTP? Thanks for any help or insight you can offer.
    -matthaus

    Check this link.

  • Notification Email/Alert - Including Job execution details(step output)

    Hi,
    I am using Oracle 10g R2 GRID Control on Windows. I would like to add the execution details to the default notification (Long)emails. Is there any possibility without adding any code in current version or later version to include step output(failed/Passed details)?
    Thaks for your help.

    I am already getting notification email/alert with just status failed/succeded. But I want to include the step output(job execution details) to that default email given by Oracle. I could write PL/SQL block to manipulate this,but looking for default way to include these details in any version?

  • EEM script to alert on IP SLA failures

    I have the following IP SLA set up and would like to do the following. I would like to have a log entry if any of the below have a failure and then send an email alerting to that failure. Is there a way to do this with EEM?
    ip sla 1010
    udp-jitter 64.xxx.xxx.xxx 3456 num-packets 30 interval 25
    history hours-of-statistics-kept 24
    ip sla schedule 1010 life forever start-time now
    ip sla 1011
    tcp-connect 64.xxx.xxx.xxx 2000
    history hours-of-statistics-kept 24
    ip sla schedule 1011 life forever start-time now
    ip sla 1012
    icmp-echo 64.xxx.xxx.xxx
    frequency 30
    history hours-of-statistics-kept 24
    history distributions-of-statistics-kept 10
    ip sla schedule 1012 life forever start-time now
    Thanks,
    Mike

    Thanks that is very helpful. Now what about something like this?
    From below I would like to alert if there is a failure (see the bold)
    IP_SLA_2821#show ip sla stat 1020
    IPSLAs Latest Operation Statistics
    IPSLA operation id: 1020
    Type of operation: udp-jitter
    Latest RTT: 23 milliseconds
    Latest operation start time: 14:25:34.377 EDT Fri Aug 24 2012
    Latest operation return code: OK
    RTT Values:
    Number Of RTT: 30  RTT Min/Avg/Max: 23/23/33 milliseconds
    Latency one-way time:
    Number of Latency one-way Samples: 30
    Source to Destination Latency one way Min/Avg/Max: 9/10/16 milliseconds
    Destination to Source Latency one way Min/Avg/Max: 13/13/23 milliseconds
    Jitter Time:
    Number of SD Jitter Samples: 29
    Number of DS Jitter Samples: 29
    Source to Destination Jitter Min/Avg/Max: 0/1/6 milliseconds
    Destination to Source Jitter Min/Avg/Max: 0/1/10 milliseconds
    Packet Loss Values:
    Loss Source to Destination: 0  Loss Destination to Source: 0
    Out Of Sequence: 0 Tail Drop: 0
    Packet Late Arrival: 0 Packet Skipped: 0
    Voice Score Values:
    Calculated Planning Impairment Factor (ICPIF): 0
    Mean Opinion Score (MOS): 0
    Number of successes: 33
    Number of failures: 0
    Operation time to live: Forever

  • I am automating the process of sending appointment reminders to my clients. I started with an alert with an email in calendar using the clients email address as a custom entry in my me card in my contacts. this was resulting in three emails being sent wit

    I am automating the process of sending appointment reminders to my clients. I started with an alert with an email in calendar using the clients email address as a custom entry in my me card in my contacts. this was resulting in three emails being sent with slightly different versions of the same address (see my previous post). Heating someone else's suggestion I created a workflow file to send an email and calling that file from an alert on my calendar. This is working and sends only one email to the client.
    My calendar is on I cloud and I access it from three different computers so I can keep my appointment calendar current. The files that send the email only exist on one computer. My other computers show error messages when those emails get sent. It seems that each computer wants to send the email. It's a small problem but is there a way that I could not get those alerts.
    But appreciate any thoughts about this. It seems like both problems might be related to the iCloud system.
    Thank you in advance,
    Michael

    Good work, catch so far Michael, does seem to be a "feature" of iCloud syncing, not sure what you could do to disable it.

  • A problem with email alerts in management services of Azure portal

    Hi,
    I have created an alert with email notification on a custom performance counter using the management services of Azure portal.
    Currently the alert is in active state (and has been so for several hours), but i haven't received any email.
    Can someone please advise on this issue?
    Thanks,
    Roi

    Do you have an endpoint for the service. To enable endpoint monitoring, go to the
    dashboard page for the associated resource and edit the
    Endpoints setting in the
    monitoring section, see figure 1. If you have an endpoint, try disabling and enabling the alert in the management tab.
    figure 1.
    Johnny Coleman [MSFT] Any code posted to this Forum is [As-Is] With No Warranties

  • Alerting with Content Master Conversion Agent via Email Adapter

    Hi all,
    my question is: is it somehow possible to have the alerting also with EMail Scenario and Content Master? i am on SP 14 and in my alert rule there is no restriction. But when i make a restriction on adapter, the mail adapter is not available.
    So, Alerting with Email Adapter is not possible??
    Thanx a lot, folx,
    Felix

    Hi Felix,
    I have been trying to configure alerts using NO RESTRICTION. When i try to trigger my alerts using the report RSALERTEST, message is sent to my alert inbox.
    But, when any error occurs on my Integration Engine or Adapter Engine, the alert is not triggered.I am on SP14.
    Is there any additional configuration that needs to be done for the same?? Are you able to get ALERTS in your inbox whenever anything fails in your Integration Engine or Adapter Engine.
    It would be very helpful if you could answer this query.
    regards,
    bhavesh

  • Problems with email alerts in OEM ( 10g )

    Gurus,
    I have setup the notification for the listener availability and I am having problems with getting the emails when the listener is down. I manually tested the setup by stopping the listener from the command prompt on the server and I don't see any email alerts, but the email alerts come after the listener is started back again from the prompt. I am interested in seeing the alerts when the listener goes down, any info on this is appreciated.
    Thanks.

    Thanks for your response. I have selected "yes" for both Up and down in your alert setup and still no luck. I did check the field where it says about sending email. Again when I stopped the listener alert didn't fired up, but it fired up after starting the listener.

Maybe you are looking for

  • Display tokens in text file

    Hello All; I am working on some text file update VI's, and I am having quite a bit of trouble with tokens... In order to get all my offsets and such correct, I need to input a text file (using Read From Text File), but I want to display all tokens wi

  • Pop-up in BDC not triggered

    Hi experts i have a problem in BDC transaction code iw52 in iw52 i am tryin to change a item , process follows iw52> notification no,  i jus entered> then i vil go 2 items & select 1 & i go for detail view selection , then the pop vil appear , here i

  • GR with handheld device.

    We want to setup handheld device for SAP WM. I know that there are some trnsaction starting with LM** But I did not find any trnsaction to do goods receipt against purchase order that will create Material document & take me to next screen for TO crea

  • Permission denied for root!?

    Hey yall-- Something very odd seems to be happening with my file system, such that I am unable to write to certain directories as root. I don't know exactly when this started, but it has to have been within the last month or so--roughly coinciding wi

  • Will my Webroot security work with the latest version of Firegox?

    I've gotten several requests from Firefox to u[grade to Firefox 5.0 or whatever the newest version is. I've also gotten warnings that this newest version is incompatible with certain websites or programs, including Webroot security/antivirus/antimalw