mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
UniFi/EdgeSwitch OS support for fw 5.x (#13434)
* Fix support for fw 5.x * Add test data
This commit is contained in:
@@ -7,7 +7,7 @@ modules:
|
|||||||
free: EdgeSwitch-SWITCHING-MIB::agentSwitchCpuProcessMemFree
|
free: EdgeSwitch-SWITCHING-MIB::agentSwitchCpuProcessMemFree
|
||||||
precision: 1024
|
precision: 1024
|
||||||
os:
|
os:
|
||||||
sysDescr_regex: '/^(?<hardware>EdgeSwitch .*|EdgePoint Switch .*|USW-.*), (?<version>.*), Linux .*$/'
|
sysDescr_regex: '/^(?<hardware>EdgeSwitch .*|EdgePoint Switch .*|USW-.*|US-.*), (?<version>.*), Linux .*$/'
|
||||||
serial: ENTITY-MIB::entPhysicalSerialNum.1
|
serial: ENTITY-MIB::entPhysicalSerialNum.1
|
||||||
sensors:
|
sensors:
|
||||||
state:
|
state:
|
||||||
|
23
tests/data/edgeswitch_us-24-250w.json
Normal file
23
tests/data/edgeswitch_us-24-250w.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"os": {
|
||||||
|
"discovery": {
|
||||||
|
"devices": [
|
||||||
|
{
|
||||||
|
"sysName": "",
|
||||||
|
"sysObjectID": ".1.3.6.1.4.1.4413",
|
||||||
|
"sysDescr": "US-24-250W, 5.43.18.12487, Linux 3.6.5",
|
||||||
|
"sysContact": null,
|
||||||
|
"version": "5.43.18.12487",
|
||||||
|
"hardware": "US-24-250W",
|
||||||
|
"features": null,
|
||||||
|
"os": "edgeswitch",
|
||||||
|
"type": "network",
|
||||||
|
"serial": null,
|
||||||
|
"icon": "ubiquiti.svg",
|
||||||
|
"location": null
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"poller": "matches discovery"
|
||||||
|
}
|
||||||
|
}
|
5
tests/snmpsim/edgeswitch_us-24-250w.snmprec
Normal file
5
tests/snmpsim/edgeswitch_us-24-250w.snmprec
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
1.3.6.1.2.1.1.1.0|4|US-24-250W, 5.43.18.12487, Linux 3.6.5
|
||||||
|
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.4413
|
||||||
|
1.3.6.1.4.1.4413.1.1.1.1.1.1.0|4|US-24-250W, 5.43.18.12487, Linux 3.6.5
|
||||||
|
1.3.6.1.4.1.4413.1.1.1.1.1.2.0|4|US-24-250W
|
||||||
|
1.3.6.1.4.1.4413.1.1.1.1.1.3.0|4|US24P250
|
Reference in New Issue
Block a user