Files
librenms-librenms/includes/definitions/discovery/procurve.yaml
Tony Murray b8f2002150 Procurve hardware description cleanup (#14007)
* Procurve hardware description cleanup
Include part number and other details where available
Covers 100% of known sysDescr
Adds Aruba Instant On parsing
adds string replacements for OS fields

Could use hardware: ENTITY-MIB::entPhysicalDescr.1, but strings contain a lot of fluff and some are just "HP", I leave that for another PR

* restore .gitignore.........

* less specific

* Change regex cosmetically
2022-06-07 09:27:32 +02:00

86 lines
3.8 KiB
YAML

mib: POWERSUPPLY-MIB:FAN-MIB:STATISTICS-MIB
modules:
mempools:
data:
-
total: NETSWITCH-MIB::hpLocalMemTotalBytes
free: NETSWITCH-MIB::hpLocalMemFreeBytes
used: NETSWITCH-MIB::hpLocalMemAllocBytes
descr: 'Local Memory {{ $index }}'
type: hpLocal
-
total: NETSWITCH-MIB::hpGlobalMemTotalBytes
free: NETSWITCH-MIB::hpGlobalMemFreeBytes
used: NETSWITCH-MIB::hpGlobalMemAllocBytes
descr: 'Global Memory {{ $index }}'
type: hpGlobal
os:
sysDescr_regex:
- '/^(Aruba|ProCurve|HP) (?<hardware>[^,]+), revision (?<version>[^ ,]+)/'
- '/^(HPE OfficeConnect Switch|HP ProCurve|HP) (?<hardware>[^,]*), (?<version>P\S[0-9\.]+)/'
- '/^Aruba Instant On (?<hardware>[^,]+), InstantOn_\d+_(?<version>[0-9\.]+)/'
- '/^PROCURVE (?<hardware>.*) - (?<version>.*)$/'
- '/^(?<hardware>GbE2c)/'
version:
- NETSWITCH-MIB::hpSwitchOsVersion.0
- HP-SN-AGENT-MIB::snAgImgVer.0
serial: SEMI-MIB::hpHttpMgSerialNumber.0
hardware_replace:
- [' ', ' ']
- ' Switch'
- ' Stack'
processors:
data:
-
oid: hpSwitchCpuStat
num_oid: '.1.3.6.1.4.1.11.2.14.11.5.1.9.6.1.{{ $index }}'
type: procurve-fixed
sensors:
temperature:
data:
-
oid: hpicfPsTable
value: hpicfPsTemp
num_oid: '.1.3.6.1.4.1.11.2.14.11.5.1.55.1.1.1.4.{{ $index }}'
index: 'hpicfPsTemp.{{ $index }}'
descr: 'Power Supply #{{ $index }}'
power:
data:
-
oid: hpicfPsTable
value: hpicfPsWattageCur
num_oid: '.1.3.6.1.4.1.11.2.14.11.5.1.55.1.1.1.6.{{ $index }}'
index: 'hpicfPsWattageCur.{{ $index }}'
high_limit: hpicfPsWattageMax
descr: 'Power Supply #{{ $index }}'
state:
data:
-
oid: hpicfFanTable
value: hpicfFanState
num_oid: '.1.3.6.1.4.1.11.2.14.11.5.1.54.2.1.1.4.{{ $index }}'
descr: 'Fan #{{ $index }}'
index: 'hpicfFanState.{{ $index }}'
state_name: hpicfFanState
states:
- { descr: removed, graph: 1, value: 1, generic: 3 }
- { descr: off, graph: 1, value: 2, generic: 3 }
- { descr: underspeed, graph: 1, value: 3, generic: 1 }
- { descr: overspeed, graph: 1, value: 4, generic: 1 }
- { descr: ok, graph: 1, value: 5, generic: 0 }
- { descr: maxstate, graph: 1, value: 6, generic: 3 }
-
oid: hpicfPsTable
value: hpicfPsState
num_oid: '.1.3.6.1.4.1.11.2.14.11.5.1.55.1.1.1.2.{{ $index }}'
descr: 'Power Supply #{{ $index }}'
index: 'hpicfPsState.{{ $index }}'
state_name: hpicfPsState
states:
- { descr: psNotPresent, graph: 1, value: 1, generic: 3 }
- { descr: psNotPlugged, graph: 1, value: 2, generic: 2 }
- { descr: psPowered, graph: 1, value: 3, generic: 0 }
- { descr: psFailed, graph: 1, value: 4, generic: 2 }
- { descr: psPermFailure, graph: 1, value: 5, generic: 2 }
- { descr: psMax, graph: 1, value: 6, generic: 3 }