Fix older ProCurve hardware/version (#12155)

This commit is contained in:
Tony Murray
2020-09-24 12:51:41 -05:00
committed by GitHub
parent 8381aa5b89
commit 2a515d308a
2 changed files with 26 additions and 1 deletions

View File

@@ -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

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