mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix older ProCurve hardware/version (#12155)
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
mib: POWERSUPPLY-MIB:FAN-MIB:STATISTICS-MIB
|
||||
modules:
|
||||
os:
|
||||
sysDescr_regex: '/( (?<hardware>\d{4,}\S*)[^,]*)?, revision (?<version>[^ ,]+)/'
|
||||
sysDescr_regex:
|
||||
- '/( (?<hardware>\d{4,}\S*)[^,]*)?, revision (?<version>[^ ,]+)/'
|
||||
- '/PROCURVE (?<hardware>.*) - (?<version>.*)/'
|
||||
version:
|
||||
- NETSWITCH-MIB::hpSwitchOsVersion.0
|
||||
- HP-SN-AGENT-MIB::snAgImgVer.0
|
||||
|
23
tests/data/procurve_66.json
Normal file
23
tests/data/procurve_66.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"os": {
|
||||
"discovery": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "",
|
||||
"sysObjectID": ".1.3.6.1.4.1.11.2.3.7.11.66",
|
||||
"sysDescr": "PROCURVE J9029A - PA.03.10",
|
||||
"sysContact": null,
|
||||
"version": "PA.03.10",
|
||||
"hardware": "J9029A",
|
||||
"features": null,
|
||||
"os": "procurve",
|
||||
"type": "network",
|
||||
"serial": null,
|
||||
"icon": "hpe.svg",
|
||||
"location": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": "matches discovery"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user