Identify which Cisco router is acting as primary

Hi,

I have 2 Cisco routers setup with HSRP; virtual IP 192.168.1.1
Router 1: 192.168.1.2
Router 2: 192.168.1.3

I would like to get your opinions on the best way to identify via a Network Monitoring service (Zabbix, PRTG, etc) which one of the routers is acting as primary i.e. routing internet traffic

Thanks
LunarBearAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NetExpert Network Solutions Pte LtdTechnical SpecialistCommented:
cisco hsrp can be monitored for only few router platforms, you can't monitor all routers


Supported Platforms
 
The HSRP MIB is supported on all Cisco platforms which support both HSRP and SNMP. Cisco IOS Release 12.0(12)S adds support for the HSRP MIB on the following platforms:
 
•Cisco 7200 series
 
•Cisco 7500/RSP series
 
•Cisco 12000 GSR series


http://www.cisco.com/c/en/us/td/docs/ios/12_0s/feature/guide/12s_hsrp.html

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AlexBlinovCommented:
I guess you can monitor the ports on the switch where those routers are connected to, or configure 2 different netflow sessions from each interface and see the counters.
LunarBearAuthor Commented:
Understood. Thanks for the link anyways.

As a solution for now, I decided to monitor changes on the hostname of the virtual IP 192.168.1.1

SNMP OID 1.3.6.1.2.1.1.5.0 returns the hostname.

Thanks
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

NetExpert Network Solutions Pte LtdTechnical SpecialistCommented:
As AlexBlinov told, you can monitor the router interfaces and based on the interfaces traffic statistics, you can identify the primary router.

But, if you would like to track/monitor the hsrp status, that's possible only to few platforms
Darrell PorterEnterprise Business Process ArchitectCommented:
So do your monitoring programs not work via SNMP and monitor HSRP State.

For more information on this, you can review the HSRP information located on the CIsco site.
LunarBearAuthor Commented:
Interesting. I took a look, but can't figure out what I need to monitor.
Presently, 192.168.1.2 is the primary and is acting as 192.168.1.1
Any ideas?

Bold indicates differences.

Device: 192.168.1.2
Walk 1.3.6.1.4.1.9.9.106
1.3.6.1.4.1.9.9.106.1.1.1.0 = "5"
1.3.6.1.4.1.9.9.106.1.2.1.1.2.7.1 = ""
1.3.6.1.4.1.9.9.106.1.2.1.1.3.7.1 = "150"
1.3.6.1.4.1.9.9.106.1.2.1.1.4.7.1 = "1"
1.3.6.1.4.1.9.9.106.1.2.1.1.5.7.1 = "30"
1.3.6.1.4.1.9.9.106.1.2.1.1.6.7.1 = "2"
1.3.6.1.4.1.9.9.106.1.2.1.1.7.7.1 = "0"
1.3.6.1.4.1.9.9.106.1.2.1.1.8.7.1 = "0"
1.3.6.1.4.1.9.9.106.1.2.1.1.9.7.1 = "3000"
1.3.6.1.4.1.9.9.106.1.2.1.1.10.7.1 = "10000"
1.3.6.1.4.1.9.9.106.1.2.1.1.11.7.1 = "192.168.1.1"
1.3.6.1.4.1.9.9.106.1.2.1.1.12.7.1 = "1"
1.3.6.1.4.1.9.9.106.1.2.1.1.13.7.1 = "192.168.1.2"
1.3.6.1.4.1.9.9.106.1.2.1.1.14.7.1 = "192.168.1.3"
1.3.6.1.4.1.9.9.106.1.2.1.1.15.7.1 = "6"
1.3.6.1.4.1.9.9.106.1.2.1.1.16.7.1 = "      "
1.3.6.1.4.1.9.9.106.1.2.1.1.17.7.1 = "1"

Device: 192.168.1.3
Walk 1.3.6.1.4.1.9.9.106
1.3.6.1.4.1.9.9.106.1.1.1.0 = "5"
1.3.6.1.4.1.9.9.106.1.2.1.1.2.8.1 = ""
1.3.6.1.4.1.9.9.106.1.2.1.1.3.8.1 = "50"
1.3.6.1.4.1.9.9.106.1.2.1.1.4.8.1 = "1"
1.3.6.1.4.1.9.9.106.1.2.1.1.5.8.1 = "30"
1.3.6.1.4.1.9.9.106.1.2.1.1.6.8.1 = "2"
1.3.6.1.4.1.9.9.106.1.2.1.1.7.8.1 = "0"
1.3.6.1.4.1.9.9.106.1.2.1.1.8.8.1 = "0"
1.3.6.1.4.1.9.9.106.1.2.1.1.9.8.1 = "3000"
1.3.6.1.4.1.9.9.106.1.2.1.1.10.8.1 = "10000"
1.3.6.1.4.1.9.9.106.1.2.1.1.11.8.1 = "192.168.1.1"
1.3.6.1.4.1.9.9.106.1.2.1.1.12.8.1 = "1"
1.3.6.1.4.1.9.9.106.1.2.1.1.13.8.1 = "192.168.1.2"
1.3.6.1.4.1.9.9.106.1.2.1.1.14.8.1 = "192.168.1.3"
1.3.6.1.4.1.9.9.106.1.2.1.1.15.8.1 = "5"
1.3.6.1.4.1.9.9.106.1.2.1.1.16.8.1 = "      "
1.3.6.1.4.1.9.9.106.1.2.1.1.17.8.1 = "1"
NetExpert Network Solutions Pte LtdTechnical SpecialistCommented:
The 2 router acting as primary because it has higher priority value
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Routers

From novice to tech pro — start learning today.