cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
509
Views
0
Helpful
1
Replies

IPSLA with EEM to monitor link state to generate a email

Hi All,

 

I m quite new to this IPSLA with Event Manager . i have a critical link to be monitored in my network.so i have configured the following after

going through conf guides and support forums.but still no luck.appreciate if any one can help.following is what i have configured.

 


ip sla 1
icmp-echo 172.21.10.9 source-ip 172.20.11.20
ip sla schedule 1 life forever start-time now
ip sla reaction-configuration 1 react timeout threshold-type immediate
ip sla enable reaction-alerts

 

event manager environment Email_Server 203.143.18.6
event manager environment To_Email_Add1 pramod@fentons.com
event manager environment From_Email_Add Fentons-SLA@Cisco.com
event manager applet Link-State
 event ipsla operation-id 1 reaction-type timeout
 action 1.0 if $_ipsla_condition eq "Occured"
 action 1.1  wait 1
 action 1.2  syslog msg "Link is down"
 action 1.3  mail server "203.143.18.6" to "pramod@fentons.com" from "fentons-sla@cisco.com" subject "Test Link Down" body "Test Link Down"
 action 1.4 else
 action 1.5  syslog msg "Link is up"
 action 1.6  mail server "203.143.18.6" to "pramod@fentons.com" from "fentons-sla@cisco.com" subject "Test Link Up" body " Test Link Up"

 

 

Thanks in Advance

Pramod L

1 Reply 1

ngoldwat
Level 4
Level 4

Here is an example using track.

 

track 400 ip route 1.1.1.1/32 reachability
delay down 10 up 10
!
event manager environment my_server 2.2.2.2
event manager environment my_from router-abc@customer.com
event manager environment my_to attach@cisco.com
event manager environment my_route 1.1.1.1/32
!
event manager applet email_track_iproute
event track 400 state down
action 1.0 syslog msg "Prefix to [$my_route] has been withdrawn!"
action 1.1 mail server "$my_server" to "$_email_to" from "$my_from“
 subject “EEM: Prefix to Remote Site [$my_route] is DOWN" body ""
action 1.2 syslog msg “EEM: Path Failure alert email sent!"