07-06-2010 02:09 PM
Hi Guys, I've been trying to use the following configuration
ip sla monitor 1
type http operation get url http://www.google.com source-ipaddr x.x.x.x name-server x.x.x.x proxy http://x.x.x.x
timeout 5000
ip sla monitor schedule 1 life forever start-time now
event manager applet Test
event snmp oid "1.3.6.1.4.1.9.9.42.1.3.7.1.19" get-type exact entry-op eq entry-val "up" exit-op eq exit-val "down" poll-interval 60
action 1.0 cli command "show ip sla monitor statistics"
action 2.0 mail server "_mail_smtp" to "_mail_rcpt" from "router03" subject "Notification" body "$_cli_result"
but it does not work, so i used a debug to see what is going wrong, i got this error:
snmp_entry_value_check: OID unavailable
snmp_entry_value_check:Returning FALSE
so i check out my router's mib and i noticed that this oid "rttMonLpdGrpStatsProbeStatus" is not there, is it possible to add this oid in my router's mib or is it possible update it?
IOS c3845-adventerprisek9-mz.124-25.bin
Please Help!!!!
Thanks
Solved! Go to Solution.
07-06-2010 11:14 PM
This object is rttMonLpdGrpStatsProbeStatus. I'm pretty sure this isn't what you want (this is for MPLS). Exactly what do you want to monitor? The HTTP response code?
07-06-2010 11:14 PM
This object is rttMonLpdGrpStatsProbeStatus. I'm pretty sure this isn't what you want (this is for MPLS). Exactly what do you want to monitor? The HTTP response code?
07-07-2010 05:20 AM
Hi Joe, i would like to know the Latest operation return code
Round Trip Time (RTT) for Index 1
Latest RTT: 216 milliseconds
Latest operation start time: *07:49:04.396 CCS Wed Jul 7 2010
Latest operation return code: OK
Latest DNS RTT: 36 ms
Latest TCP Connection RTT: 79 ms
Latest HTTP Transaction RTT: 101 ms
Number of successes: 9
Number of failures: 0
Operation time to live: Forever
Thanks
07-07-2010 10:26 AM
Use 1.3.6.1.4.1.9.9.42.1.5.1.1.6 or 1.3.6.1.4.1.9.9.42.1.5.1.1.7 instead. To the end of that OID, you will need to append your IP SLA collector number (1 in your case).
The first object will give you an integer operation sense code. You want this to be 1 for a successful operation. The second object will give you a string representing the actual HTTP resul code.
07-07-2010 01:24 PM
I used your suggestion and it works fine!!!!
Thanks
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide