UniFi/EdgeSwitch OS support for fw 5.x (#13434)

* Fix support for fw 5.x

* Add test data
This commit is contained in:
Nocturr 2021-10-28 01:52:58 +02:00 committed by GitHub
parent f31e89569e
commit 5f8b41d4ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 1 deletions

View File

@ -7,7 +7,7 @@ modules:
free: EdgeSwitch-SWITCHING-MIB::agentSwitchCpuProcessMemFree
precision: 1024
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
sensors:
state:

View 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"
}
}

View 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