This is my first self written plugin.
It will Check Cisco Routers (Active/Passive/HSRP) for Correct Active and Passive IP's and the Actual State of Components.
Download:
You can download it here.
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.
Just see ./check_cisco_hsrp.sh -h for more Information.
Some Examples:
Check if the Active Router got a specific IP-Address
./check_cisco_hsrp.sh -H 10.35.10.250 -C public -m active 10.35.10.248
OK - Active Router Ip 10.35.10.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.10.250 -C public -m standby 10.35.10.249
OK - Standby Router Ip 10.35.10.249 is the correct ip (10.35.10.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.10.248 is in HSRP State: Active but should be Standby
HSRP States:
Standby = 5
Active = 6
Please let me know what you think about it. Please report bugs if you find some (i think so).
bohboh,
kratediggah
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment