lausser / check_nwc_health

nwc = network component. This plugin checks lots of aspects of routers, switches, wlan controllers, firewalls,.....
http://labs.consol.de/nagios/check_nwc_health
GNU General Public License v2.0
147 stars 87 forks source link

HSRP unkown state says ok #261

Open Bierchermuesli opened 3 years ago

Bierchermuesli commented 3 years ago

Plugin Output: OK - hsrp group 10/18: active node is 0.0.0.0, standby node is 0.0.0.0

CLI Output

router#sh stand brief 
                     P indicates configured to preempt.
                     |
Interface   Grp  Pri P State   Active          Standby         Virtual IP
Vl10        10   110 P Init    unknown         unknown         10.10.10.10
Debug Output
./check_nwc_health --community' 'public --hostname 100.64.9.216 '--mode hsrp-failover --multiline --timeout 55 -vvv
[HSRPSUBSYSTEM]
info: checking hsrp groups
[GROUP_18.10]
cHsrpGrpActiveRouter: 0.0.0.0
cHsrpGrpAuth: 
cHsrpGrpConfiguredHelloTime: 0
cHsrpGrpConfiguredHoldTime: 0
cHsrpGrpEntryRowStatus: active
cHsrpGrpLearnedHelloTime: 3000
cHsrpGrpLearnedHoldTime: 10000
cHsrpGrpNumber: 10
cHsrpGrpPreempt: 1
cHsrpGrpPreemptDelay: 0
cHsrpGrpPriority: 110
cHsrpGrpStandbyRouter: 0.0.0.0
cHsrpGrpStandbyState: initial
cHsrpGrpUseConfigVirtualIpAddr: 1
cHsrpGrpUseConfiguredTimers: 2
cHsrpGrpVirtualIpAddr: 10.10.10.10
cHsrpGrpVirtualMacAddr: 
                        ��

ifIndex: 18
name: 10:18
info: hsrp group 10/18: active node is 0.0.0.0, standby node is 0.0.0.0

OK - hsrp group 10/18: active node is 0.0.0.0, standby node is 0.0.0.0
checking hsrp groups
hsrp group 10/18: active node is 0.0.0.0, standby node is 0.0.0.0

looks like it needs an exeption if cHsrpGrpActiveRouter = 0.0.0.0

I leaving this here, if I find time I will check this issue. if somebody is quicker - feel free ;-)

Thanks everyone for this nice plugin!