Home Directory Plugins Hardware Network Gear Cisco Check Cisco MPLS / HSRP Router IP's / States

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Check Cisco MPLS / HSRP Router IP's / States

Rating
0 votes
Favoured:
2
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
This Script is capable to check MPLS Routers for their correct Ip's (Active / Passive) by querying them with SNMP and to compare this result with provided Ip's.
It is also possible to check for the Standby State of a Router.


Check if the Active Router got a specific IP-Address

./check_cisco_hsrp.sh -H 10.35.140.250 -C public -m active 10.35.10.248
OK - Active Router Ip 10.35.140.248 is the correct ip (10.35.10.248)


Check if the Standby Router got the correct IP-Address

./check_cisco_hsrp.sh -H 10.35.140.250 -C public -m standby 10.35.140.249
OK - Standby Router Ip 10.35.140.249 is the correct ip (10.35.140.249)


Check if the Second (Standby) Router is in Standby State

./check_cisco_hsrp.sh -H 10.35.10.249 -C public -m state 5
OK - 10.35.10.249 is in HSRP State: standby

./check_cisco_hsrp.sh -H 10.35.10.248 -C public -m state 5
CRITICAL - 10.35.140.248 is in HSRP State: Active but should be Standby

States:
Standby = 5
Active = 6