Files
librenms-librenms/includes/definitions/discovery/smartax.yaml
Tony Murray f2f169ae78 Modernize mempools (#12282)
* mempools to modern module
quick hacky hrstorage port

* port ucd-snmp-mib to Mempools

* Populate DB for ucd
Prep for yaml

* initial yaml attempt

* more complex conversions
fixes to YamlDiscovery, make leading $ optional and allow mib::oid format

* walk full tables and skip values
normalize percentages above 100

* handle precent only ones (specify total as 100)

* Move default polling out of YamlMempoolsDiscovery

* fixes

* Update test data hrstorage should be correct.

* perc_warn for hrstorage

* Host Resources, record buffer, cached, and shared

* Host Resources is always better, don't do both HR and UCD

* fix unix, include warning levels

* variable size

* consolidate skip_values

* define mempools schema

* number instead of integer

* more schema refactor

* one more skip_values reference

* throw error for invalid oid translation
aos6

* a*  and Cisco

* updated test data

* update almost all hrstorage data files

* b*

* c* with test data
use standard cache for hrStorage

* use cache for storage module too

* hand bsnmp properly

* bdcom

* exclude total oid from yaml so it is not polled
May add a way to ignore this behavior and poll it, but I don't know if that is needed.

* automatically handle percent only values

* ciscowlc

* only poll used or free if we have used, free, and total.

* fix skipping

* the dlinkoning
fix find value when value "name" is numeric

* support numeric oids

* dnos/ftos attempt

* I guess we can't filter on total > 0

* edgecos

* e*

* f WIP

* f*

* gwd (aka g*)

* h* + procurve

* i*

* j*

* m*

* support 0% used memory (however unlikely)

* n*

* CISCO-PROCESS-MIB memory, share cache with processors module

* ignore mempools with invalid total

* p*

* quanta

* r*
fix raisecom mibs terribly broken

* s-z

* style fixes

* Move VRP back to PHP and make it actually work

* fix zynos

* update schema

* Update Cisco processor data for description bug fixes

* fix comware processors

* comware mempools with memory size
default precision to 1

* sophos-xg updated data

* hrstorage use ram size for buffers, cache, and shared

* Show memory available instead of free in device overview

* UCD, use same rrd format, store available instead of free in the db.

* Calculate availability for HOST-RESOURCES-MIB

* Convert UCD to standard polling

* rename old rrd files

* initial graph work

* graph WIP

* Graph looking decent

* Graph looking decent for hr

* remove old ucd_graph code

* handle availability mempool
more graph cleanup

* color adjustments

* remove accidental free calculation

* Update test data and fix corner cases

* fis pfsense

* update schema

* add default value for mempool_class

* fix whitespace

* update schema

* update schema correctly

* one more time

* fortigate_1500d-sensors missing oids

* Update docs.

* fix indent

* add implements MempoolsDiscovery explicitly to OS

* remove ucd_memory graph references
remove unused device_memory graph

* remove unused functions

* set devices with mempools to rediscover to prevent/minimize gaps

* use a subquery

* add overview graph

* port health mempools table

* Update device mempool

* only show overview if multiple

* Don't override user set warn percentages in discovery

* fix missed usage

* fix style

* Safety check to not rename rrd files incorrectly if migration has not been run.

* Fix overview percent bar and represent available and used on the bar

* missed an item to convert to mempool_class

* percent on the wrong side
2020-11-23 15:35:35 -06:00

191 lines
8.7 KiB
YAML

mib: HUAWEI-DEVICE-MIB:HUAWEI-POWER-MIB:HWMUSA-DEV-MIB:HUAWEI-XPON-MIB:IF-MIB
modules:
mempools:
pre-cache:
oids:
- HWMUSA-DEV-MIB::hwMusaBoardSlotDesc
data:
-
percent_used: HWMUSA-DEV-MIB::hwMusaBoardRamUseRate
descr: 'Slot {{ $subindex1 }} {{ HWMUSA-DEV-MIB::hwMusaBoardSlotDesc }}'
skip_values:
-
oid: HWMUSA-DEV-MIB::hwMusaBoardRamUseRate
op: '='
value: -1
os:
hardware:
- ENTITY-MIB::entPhysicalDescr.36
- ENTITY-MIB::entPhysicalDescr.888624
hardware_regex: '/(?<hardware>[^,]+)/'
serial: HUAWEI-DEVICE-MIB::hwBackplanePhySerialNum.0
version: HUAWEI-DEVICE-MIB::hwSysVersionVrcb.0
sensors:
pre-cache:
data:
-
oid:
- hwFrameTypeName
- hwFrameIndex
- hwSlotIndex
- hwSlotTypeName
- hwPowerIndex
- hwPowerName
- ifName
temperature:
data:
-
oid: hwGponOltOpticsDdmInfoEntry
value: hwGponOltOpticsDdmInfoTemperature
num_oid: '.1.3.6.1.4.1.2011.6.128.1.1.2.23.1.1.{{ $index }}'
descr: "SFP {{ $ifName }}"
group: SFPs
skip_value_gt: 999999
voltage:
data:
-
oid: hwACVoltA
num_oid: '.1.3.6.1.4.1.2011.6.2.1.2.1.3.{{ $index }}'
divisor: 1000
descr: AC Input A
group: Power
-
oid: hwDCVoltageOut
num_oid: '.1.3.6.1.4.1.2011.6.2.1.3.1.1.{{ $index }}'
divisor: 1000
descr: DC Output
group: Power
-
oid: hwGponOltOpticsDdmInfoSupplyVoltage
num_oid: '.1.3.6.1.4.1.2011.6.128.1.1.2.23.1.2.{{ $index }}'
descr: "SFP {{ $ifName }}"
group: SFPs
divisor: 100
skip_value_gt: 999999
dbm:
data:
-
oid: hwGponOltOpticsDdmInfoTxPower
num_oid: '.1.3.6.1.4.1.2011.6.128.1.1.2.23.1.4.{{ $index }}'
descr: "SFP {{ $ifName }} TX"
group: SFPs TX
index: 'tx-{{ $index }}'
divisor: 100
skip_value_gt: 999999
current:
data:
-
oid: hwDCOutLoadCurrent
num_oid: '.1.3.6.1.4.1.2011.6.2.1.3.1.10.{{ $index }}'
divisor: 1000
descr: DC Total Output Load
group: Power
-
oid: hwBatteryCurrent
num_oid: '.1.3.6.1.4.1.2011.6.2.1.6.3.1.6.{{ $index }}'
divisor: 1000
descr: Battery
group: Power
-
oid: hwGponOltOpticsDdmInfoTxBiasCurrent
num_oid: '.1.3.6.1.4.1.2011.6.128.1.1.2.23.1.3.{{ $index }}'
descr: "SFP {{ $ifName }}"
group: SFPs
divisor: 1000
skip_value_gt: 999999
count:
data:
-
oid: hwGponDeviceOltControlOntNum
num_oid: '.1.3.6.1.4.1.2011.6.128.1.1.2.21.1.16.{{ $index }}'
descr: "{{ $ifName }} Added ONTs"
group: ONTs Count
index: 'count-{{ $index }}'
skip_value_lt: 1
-
oid: hwGponDeviceOltControlTcontNumInCard
num_oid: '.1.3.6.1.4.1.2011.6.128.1.1.2.21.1.21.{{ $index }}'
descr: "{{ $ifName }} T-CONT's"
group: T-CONTs Count
index: 'tconts-{{ $index }}'
skip_value_lt: 1
state:
data:
-
oid: hwFrameOperStatus
num_oid: '.1.3.6.1.4.1.2011.6.3.3.1.1.5.{{ $index }}'
index: hwFrameIndex
group: Frames
descr: "Frame {{ $hwFrameIndex }} ({{ $hwFrameTypeName }}) Status"
state_name: hwFrameOperStatus
states:
- { value: 1, generic: 0, graph: 1, descr: 'normal' }
- { value: 2, generic: 2, graph: 1, descr: 'fault' }
- { value: 3, generic: 3, graph: 1, descr: 'other' }
- { value: 4, generic: 1, graph: 1, descr: 'discovery' }
- { value: 5, generic: 1, graph: 1, descr: 'mismatch' }
- { value: 6, generic: 3, graph: 1, descr: 'offline' }
-
oid: hwPowerState
num_oid: '.1.3.6.1.4.1.2011.6.2.1.1.1.4.{{ $index }}'
descr: "Emu {{ $hwPowerIndex }} ({{ $hwPowerName }}) Status"
group: Power
state_name: hwPowerState
states:
- { value: 1, generic: 0, graph: 1, descr: 'normal' }
- { value: 2, generic: 2, graph: 1, descr: 'fault' }
- { value: 3, generic: 1, graph: 1, descr: 'protecting' }
- { value: 4, generic: 1, graph: 1, descr: 'switched' }
-
oid: hwACPowerState
num_oid: '.1.3.6.1.4.1.2011.6.2.1.2.1.2.{{ $index }}'
descr: "AC Power State"
group: Power
state_name: hwACPowerState
states:
- { value: 1, generic: 0, graph: 1, descr: 'normal' }
- { value: 2, generic: 2, graph: 1, descr: 'offline' }
- { value: 3, generic: 1, graph: 1, descr: 'exceedVoltage' }
- { value: 4, generic: 1, graph: 1, descr: 'belowVoltage' }
- { value: 5, generic: 1, graph: 1, descr: 'backup' }
-
oid: hwDCVoltageOutState
num_oid: '.1.3.6.1.4.1.2011.6.2.1.3.1.5.{{ $index }}'
descr: "DC Voltage Out State"
group: Power
state_name: hwDCVoltageOutState
states:
- { value: 1, generic: 0, graph: 1, descr: 'normal' }
- { value: 2, generic: 1, graph: 1, descr: 'exceedVoltage' }
- { value: 3, generic: 1, graph: 1, descr: 'belowVoltage' }
-
oid: hwSlotOperStatus
num_oid: '.1.3.6.1.4.1.2011.6.3.3.2.1.8.{{ $index }}'
descr: "Slot {{ $hwSlotIndex }} ({{ $hwSlotTypeName }}) Status"
group: Boards
state_name: hwSlotOperStatus
states:
- { value: 1, generic: 0, graph: 1, descr: 'online' }
- { value: 2, generic: 0, graph: 1, descr: 'normal' }
- { value: 3, generic: 2, graph: 1, descr: 'fault' }
- { value: 4, generic: 3, graph: 1, descr: 'forbidden' }
- { value: 5, generic: 0, graph: 1, descr: 'autofind' }
- { value: 6, generic: 1, graph: 1, descr: 'config' }
- { value: 7, generic: 3, graph: 1, descr: 'offline' }
- { value: 8, generic: 2, graph: 1, descr: 'abnormal' }
- { value: 9, generic: 1, graph: 1, descr: 'versionerr' }
- { value: 10, generic: 1, graph: 1, descr: 'autoload' }
- { value: 11, generic: 3, graph: 1, descr: 'outofservice' }
- { value: 12, generic: 2, graph: 1, descr: 'graceful' }
- { value: 13, generic: 3, graph: 1, descr: 'shutdown' }
- { value: 14, generic: 1, graph: 1, descr: 'energysavingshutdown' }
- { value: 15, generic: 2, graph: 1, descr: 'hightemperatureshutdown' }
- { value: 16, generic: 3, graph: 1, descr: 'manualshutdown' }
- { value: 17, generic: 1, graph: 1, descr: 'mismatch' }
- { value: 18, generic: 2, graph: 1, descr: 'acoffshutdown' }