Link to home
Start Free TrialLog in
Avatar of LunarBear
LunarBear

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of NetExpert Network Solutions Pte Ltd
NetExpert Network Solutions Pte Ltd
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Avatar of LunarBear
LunarBear

ASKER

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
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
Avatar of Darrell Porter
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.
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"
The 2 router acting as primary because it has higher priority value