mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Updated SLA poller for Cisco Nexus 9000 (#15855)
* Handled rttMonLatestJitterOperPacketOutOfSequence and rttMonLatestJitterOperPacketMIA not being present on Cisco Nexus9000 routers by defaulting to null value when not found. Non-existance of OIDs confirmed here: https://cisco.github.io/cisco-mibs/supportlists/nexus9000/Nexus9000MIBSupportList.html * Added snmp test data * Removed superfluous comments * Fixed sla number in test data * Removed spacing * Removed ?
This commit is contained in:
@@ -449,8 +449,8 @@ class Cisco extends OS implements
|
||||
$jitter = [
|
||||
'PacketLossSD' => $data[$sla_nr]['rttMonLatestJitterOperPacketLossSD'],
|
||||
'PacketLossDS' => $data[$sla_nr]['rttMonLatestJitterOperPacketLossDS'],
|
||||
'PacketOutOfSequence' => $data[$sla_nr]['rttMonLatestJitterOperPacketOutOfSequence'],
|
||||
'PacketMIA' => $data[$sla_nr]['rttMonLatestJitterOperPacketMIA'],
|
||||
'PacketOutOfSequence' => $data[$sla_nr]['rttMonLatestJitterOperPacketOutOfSequence'] ?? null,
|
||||
'PacketMIA' => $data[$sla_nr]['rttMonLatestJitterOperPacketMIA'] ?? null,
|
||||
'PacketLateArrival' => $data[$sla_nr]['rttMonLatestJitterOperPacketLateArrival'],
|
||||
'MOS' => isset($data[$sla_nr]['rttMonLatestJitterOperMOS']) ? intval($data[$sla_nr]['rttMonLatestJitterOperMOS']) / 100 : null,
|
||||
'ICPIF' => $data[$sla_nr]['rttMonLatestJitterOperICPIF'] ?? null,
|
||||
|
19
tests/data/nxos_n9000-9.3.9.json
Normal file
19
tests/data/nxos_n9000-9.3.9.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"slas": {
|
||||
"discovery": {
|
||||
"slas": [
|
||||
{
|
||||
"sla_nr": 101,
|
||||
"owner": "",
|
||||
"tag": "SLA1",
|
||||
"rtt_type": "jitter",
|
||||
"rtt": 1,
|
||||
"status": 1,
|
||||
"opstatus": 0,
|
||||
"deleted": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": "matches discovery"
|
||||
}
|
||||
}
|
59
tests/snmpsim/nxos_n9000-9.3.9.snmprec
Normal file
59
tests/snmpsim/nxos_n9000-9.3.9.snmprec
Normal file
@@ -0,0 +1,59 @@
|
||||
1.3.6.1.2.1.1.1.0|4|Cisco NX-OS(tm) Nexus9000 C93180YC-FX3, Software (NXOS 32-bit), Version 9.3(9), RELEASE SOFTWARE Copyright (c) 2002-2022 by Cisco Systems, Inc. Compiled 2/4/2022 7:00:00
|
||||
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.9.12.3.1.3.2193
|
||||
1.3.6.1.4.1.9.9.42.1.2.1.1.2.101|4|
|
||||
1.3.6.1.4.1.9.9.42.1.2.1.1.3.101|4|SLA1
|
||||
1.3.6.1.4.1.9.9.42.1.2.1.1.4.101|2|9
|
||||
1.3.6.1.4.1.9.9.42.1.2.1.1.5.101|2|5000
|
||||
1.3.6.1.4.1.9.9.42.1.2.1.1.6.101|2|60
|
||||
1.3.6.1.4.1.9.9.42.1.2.1.1.7.101|2|5000
|
||||
1.3.6.1.4.1.9.9.42.1.2.1.1.8.101|2|2
|
||||
1.3.6.1.4.1.9.9.42.1.2.1.1.9.101|2|1
|
||||
1.3.6.1.4.1.9.9.42.1.2.1.1.10.101|2|1
|
||||
1.3.6.1.4.1.9.9.42.1.2.2.1.1.101|2|27
|
||||
1.3.6.1.4.1.9.9.42.1.2.2.1.2.101|4x|64400502
|
||||
1.3.6.1.4.1.9.9.42.1.2.2.1.3.101|2|32
|
||||
1.3.6.1.4.1.9.9.42.1.2.2.1.5.101|2|4000
|
||||
1.3.6.1.4.1.9.9.42.1.2.2.1.6.101|4x|64400A02
|
||||
1.3.6.1.4.1.9.9.42.1.2.2.1.7.101|2|0
|
||||
1.3.6.1.4.1.9.9.42.1.2.2.1.8.101|2|1
|
||||
1.3.6.1.4.1.9.9.42.1.2.2.1.9.101|2|0
|
||||
1.3.6.1.4.1.9.9.42.1.2.2.1.11.101|4|
|
||||
1.3.6.1.4.1.9.9.42.1.2.2.1.12.101|4|
|
||||
1.3.6.1.4.1.9.9.42.1.2.2.1.17.101|2|20
|
||||
1.3.6.1.4.1.9.9.42.1.2.2.1.18.101|2|10
|
||||
1.3.6.1.4.1.9.9.42.1.2.2.1.20.101|4|
|
||||
1.3.6.1.4.1.9.9.42.1.2.2.1.26.101|4|mpls
|
||||
1.3.6.1.4.1.9.9.42.1.2.2.1.27.101|2|0
|
||||
1.3.6.1.4.1.9.9.42.1.2.2.1.28.101|2|20
|
||||
1.3.6.1.4.1.9.9.42.1.2.2.1.29.101|2|32
|
||||
1.3.6.1.4.1.9.9.42.1.2.2.1.30.101|2|10
|
||||
1.3.6.1.4.1.9.9.42.1.2.2.1.31.101|2|0
|
||||
1.3.6.1.4.1.9.9.42.1.2.2.1.77.101|66|0
|
||||
1.3.6.1.4.1.9.9.42.1.2.2.1.78.101|66|0
|
||||
1.3.6.1.4.1.9.9.42.1.2.2.1.79.101|2|0
|
||||
1.3.6.1.4.1.9.9.42.1.2.5.1.1.101|2|2147483647
|
||||
1.3.6.1.4.1.9.9.42.1.2.5.1.2.101|67|1
|
||||
1.3.6.1.4.1.9.9.42.1.2.5.1.3.101|2|0
|
||||
1.3.6.1.4.1.9.9.42.1.2.5.1.4.101|2|2
|
||||
1.3.6.1.4.1.9.9.42.1.2.7.1.1.101|2|2
|
||||
1.3.6.1.4.1.9.9.42.1.2.7.1.4.101|2|1
|
||||
1.3.6.1.4.1.9.9.42.1.2.7.1.5.101|2|20
|
||||
1.3.6.1.4.1.9.9.42.1.2.8.1.1.101|2|0
|
||||
1.3.6.1.4.1.9.9.42.1.2.8.1.2.101|2|15
|
||||
1.3.6.1.4.1.9.9.42.1.2.8.1.4.101|2|1
|
||||
1.3.6.1.4.1.9.9.42.1.2.9.1.3.101|67|4294959371
|
||||
1.3.6.1.4.1.9.9.42.1.2.9.1.9.101|2|2147483647
|
||||
1.3.6.1.4.1.9.9.42.1.2.9.1.10.101|2|6
|
||||
1.3.6.1.4.1.9.9.42.1.2.10.1.1.101|66|1
|
||||
1.3.6.1.4.1.9.9.42.1.2.10.1.2.101|2|1
|
||||
1.3.6.1.4.1.9.9.42.1.2.10.1.5.101|67|411815897
|
||||
1.3.6.1.4.1.9.9.42.1.5.2.1.1.101|66|10
|
||||
1.3.6.1.4.1.9.9.42.1.5.2.1.26.101|66|0
|
||||
1.3.6.1.4.1.9.9.42.1.5.2.1.27.101|66|0
|
||||
1.3.6.1.4.1.9.9.42.1.5.2.1.30.101|66|0
|
||||
1.3.6.1.4.1.9.9.42.1.5.2.1.41.101|66|0
|
||||
1.3.6.1.4.1.9.9.42.1.5.2.1.42.101|66|0
|
||||
1.3.6.1.4.1.9.9.42.1.5.2.1.43.101|66|0
|
||||
1.3.6.1.4.1.9.9.42.1.5.2.1.49.101|66|0
|
||||
1.3.6.1.4.1.9.9.42.1.5.2.1.50.101|66|0
|
||||
1.3.6.1.4.1.9.9.42.1.5.2.1.51.101|2|0
|
Reference in New Issue
Block a user