Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Check Cisco MPLS / HSRP Router IP's / States
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
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
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
Reviews (0)
Be the first to review this listing!