Add HSRP state sensors for Cisco IOS on L3 switches (#15809)

* Add Cisco HSRP State sensor support

* Cisco IOS Updated test data

* Restore ios_nac.json test data

* New ios_nac.json from a freshly reinstalled Libre!

* Cat 3560 Test

* Cat 3560 Test

* Add files via upload

* Add files via upload
This commit is contained in:
Tozz
2024-02-10 18:01:41 +01:00
committed by GitHub
parent fb2da7926f
commit 374482dfcb
18 changed files with 14600 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
mib: POWER-ETHERNET-MIB:CISCO-POWER-ETHERNET-EXT-MIB:CISCO-ENTITY-FRU-CONTROL-MIB
mib: POWER-ETHERNET-MIB:CISCO-POWER-ETHERNET-EXT-MIB:CISCO-ENTITY-FRU-CONTROL-MIB:CISCO-HSRP-MIB
modules:
sensors:
pre-cache:
@@ -33,6 +33,20 @@ modules:
descr: "PoE Devices Connected"
state:
data:
-
oid: cHsrpGrpTable
value: cHsrpGrpStandbyState
num_oid: '.1.3.6.1.4.1.9.9.106.1.2.1.1.15.{{ $index }}'
descr: 'HSRP Status {{ $cHsrpGrpVirtualIpAddr }}'
index: 'cHsrpGrpStandbyState.{{ $index }}'
group: 'HSRP'
states:
- { value: 1, generic: 2, graph: 0, descr: 'initial' }
- { value: 2, generic: 2, graph: 0, descr: 'learn' }
- { value: 3, generic: 1, graph: 0, descr: 'listen' }
- { value: 4, generic: 1, graph: 0, descr: 'speak' }
- { value: 5, generic: 0, graph: 0, descr: 'standby' }
- { value: 6, generic: 0, graph: 0, descr: 'active' }
-
oid: cefcModuleOperStatus
value: cefcModuleOperStatus

13010
tests/data/ios_c3560.json Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,45 @@
1.3.6.1.2.1.17.1.4.1.2.1|2|10101
1.3.6.1.2.1.17.1.4.1.2.2|2|10102
1.3.6.1.2.1.17.1.4.1.2.4|2|10002
1.3.6.1.2.1.17.1.4.1.2.6|2|10004
1.3.6.1.2.1.17.1.4.1.2.7|2|10005
1.3.6.1.2.1.17.1.4.1.2.8|2|10006
1.3.6.1.2.1.17.1.4.1.2.9|2|10007
1.3.6.1.2.1.17.1.4.1.2.10|2|10008
1.3.6.1.2.1.17.1.4.1.2.11|2|10009
1.3.6.1.2.1.17.1.4.1.2.12|2|10010
1.3.6.1.2.1.17.1.4.1.2.13|2|10011
1.3.6.1.2.1.17.1.4.1.2.14|2|10012
1.3.6.1.2.1.17.1.4.1.2.15|2|10013
1.3.6.1.2.1.17.1.4.1.2.16|2|10014
1.3.6.1.2.1.17.1.4.1.2.17|2|10015
1.3.6.1.2.1.17.1.4.1.2.18|2|10016
1.3.6.1.2.1.17.1.4.1.2.20|2|10018
1.3.6.1.2.1.17.1.4.1.2.22|2|10020
1.3.6.1.2.1.17.1.4.1.2.23|2|10021
1.3.6.1.2.1.17.1.4.1.2.24|2|10022
1.3.6.1.2.1.17.1.4.1.2.25|2|10023
1.3.6.1.2.1.17.1.4.1.2.26|2|10024
1.3.6.1.2.1.17.1.4.1.2.27|2|10103
1.3.6.1.2.1.17.1.4.1.2.28|2|10104
1.3.6.1.2.1.17.1.4.1.2.30|2|10026
1.3.6.1.2.1.17.1.4.1.2.31|2|10027
1.3.6.1.2.1.17.1.4.1.2.32|2|10028
1.3.6.1.2.1.17.1.4.1.2.34|2|10030
1.3.6.1.2.1.17.1.4.1.2.36|2|10032
1.3.6.1.2.1.17.1.4.1.2.37|2|10033
1.3.6.1.2.1.17.1.4.1.2.38|2|10034
1.3.6.1.2.1.17.1.4.1.2.39|2|10035
1.3.6.1.2.1.17.1.4.1.2.40|2|10036
1.3.6.1.2.1.17.1.4.1.2.41|2|10037
1.3.6.1.2.1.17.1.4.1.2.42|2|10038
1.3.6.1.2.1.17.1.4.1.2.43|2|10039
1.3.6.1.2.1.17.1.4.1.2.44|2|10040
1.3.6.1.2.1.17.1.4.1.2.45|2|10041
1.3.6.1.2.1.17.1.4.1.2.46|2|10042
1.3.6.1.2.1.17.1.4.1.2.47|2|10043
1.3.6.1.2.1.17.1.4.1.2.48|2|10044
1.3.6.1.2.1.17.1.4.1.2.50|2|10046
1.3.6.1.2.1.17.1.4.1.2.288|2|5030
1.3.6.1.2.1.17.2.15.1.3.4|2|5
1.3.6.1.2.1.17.2.15.1.5.4|2|19

View File

@@ -0,0 +1 @@
1.3.6.1.2.1.17.1.4.1.2.35|2|10031

View File

@@ -0,0 +1,2 @@
1.3.6.1.2.1.17.1.4.1.2.35|2|10031
1.3.6.1.2.1.17.1.4.1.2.49|2|10045

View File

@@ -0,0 +1,2 @@
1.3.6.1.2.1.17.1.4.1.2.35|2|10031
1.3.6.1.2.1.17.1.4.1.2.51|2|10047

View File

@@ -0,0 +1,2 @@
1.3.6.1.2.1.17.1.4.1.2.21|2|10019
1.3.6.1.2.1.17.1.4.1.2.29|2|10025

View File

@@ -0,0 +1,3 @@
1.3.6.1.2.1.17.1.4.1.2.52|2|10048
1.3.6.1.2.1.17.2.15.1.3.52|2|5
1.3.6.1.2.1.17.2.15.1.5.52|2|19

View File

@@ -0,0 +1 @@
1.3.6.1.2.1.17.1.4.1.2.21|2|10019

View File

@@ -0,0 +1,2 @@
1.3.6.1.2.1.17.1.4.1.2.21|2|10019
1.3.6.1.2.1.17.1.4.1.2.49|2|10045

View File

@@ -0,0 +1,2 @@
1.3.6.1.2.1.17.1.4.1.2.21|2|10019
1.3.6.1.2.1.17.1.4.1.2.51|2|10047

View File

@@ -0,0 +1 @@
1.3.6.1.2.1.17.1.4.1.2.33|2|10029

View File

@@ -0,0 +1,2 @@
1.3.6.1.2.1.17.1.4.1.2.5|2|10003
1.3.6.1.2.1.17.1.4.1.2.33|2|10029

View File

@@ -0,0 +1,2 @@
1.3.6.1.2.1.17.1.4.1.2.3|2|10001
1.3.6.1.2.1.17.1.4.1.2.33|2|10029

View File

@@ -0,0 +1 @@
1.3.6.1.2.1.17.1.4.1.2.19|2|10017

View File

@@ -0,0 +1,2 @@
1.3.6.1.2.1.17.1.4.1.2.5|2|10003
1.3.6.1.2.1.17.1.4.1.2.19|2|10017

View File

@@ -0,0 +1,2 @@
1.3.6.1.2.1.17.1.4.1.2.3|2|10001
1.3.6.1.2.1.17.1.4.1.2.19|2|10017