Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
Your review has been submitted and is pending approval.
This check will probe for Cisco IP SLAs. (Tested on IOS 12.4T release)
Current Version
Last Release Date
2010-02-24
Owner
plop2007
Download URL
https://exchange.nagios.org/wp-content/uploads/project-files/2010/03/check_cisco_ipsla.pl
Compatible With
check_cisco_ipsla.pl script
For now it only accepts the "-i ALL" argument and it will list and check for all IP SLAs configured on the router.
Return code will be 0 if all probes have completed successfully. Return code will be 2 if one probe failed
Additionally, performance data is retrieved, as the total time it took to run all IP SLAs. The multi-line output will display the run time of each IP SLA.
On the router side of it, IP SLAs must be configured with a TAG, as follows:
ip sla 1 dns www.google.com name-server 8.8.8.8 tag DNS_Google frequency 300
ip sla 2 http get http://www.google.com/ name-server 8.8.8.8 cache disable tag HTTP_Google frequency 300
ip sla group schedule 1 1-2 schedule-period 300 frequency 300 start-time now life forever
Sample output: $./check_cisco_ipsla.pl -c public-H 10.10.10.10 -i ALL IP SLA status: OK | Total-Time=120 IP SLA 1 # DNS_Google ( dns ) status: OK IP SLA 2 # HTTP_Google ( http ) status: OK | DNS_Google=17 HTTP_Google=93
There's a lot more to do with IP SLAs; feel free to update this script, based on an old "check_snmp_if" or something close to that.
Enjoy it ;-))
I am using this plugin with IP SLA on the core switches at my customer sites to check that all internet connections remain up. One glitch I noticed was that if the SNMP queries fail then the plugin may still return an OK status code. I fixed this issue by checking at the start of the "Output Phase" that the rtt_status hash is not empty: if (! %rtt_status ) { print "No SLA query returned a status."; print "So returning CRITICAL status code."; exit(2); }
You must be logged in to submit a review.
To:
From: