Files
librenms-librenms/includes/definitions/discovery/smartos.yaml
Tony Murray 7e98e03338 Polling cleanup, fix PHP warnings (#13460)
* Fix warnings up to Arbos

* fixes a-c

* a-r

* a-vrp

* There and back again

* Update test data, couple fixes

* PHPSStan fixes

* style fixes, and fix Asyncos, whoops

* flip serial back.......

* less bogus data

* Poweralert sysName during polling too

* make sure things are calculated in the correct order

* fix style and bad nullables

* update test data

* A comple more conversions

* cambium ptp, misc, and hardware_mib

* remaining except vmware-esxi

* Fixes

* Update baseline

* fixes and fix up baseline

* adjust SnmpQueryMock to upstream options change

* data corrections

* restore slashes

* correctly handle all options input in SnmpQueryMock

* undo ftos changes

* restore vccodec sysDescr
2021-11-14 14:58:13 -06:00

42 lines
1.9 KiB
YAML

mib: MSERIES-ENVMON-MIB:MSERIES-PORT-MIB
modules:
os:
sysDescr_regex: '/Smart[Oo]ptics, (M-Series )?(?<hardware>\S+( [^,]+))(, SmartOS (?<version>\S+))?/'
sensors:
state:
data:
-
oid: smartPortTable
num_oid: '.1.3.6.1.4.1.30826.1.3.1.2.1.1.6.{{ $index }}'
value: smartPortStatus
descr: '{{ $smartPortAlias }} - {{ $smartPortName }}'
index: 'smartPortStatus.{{ $index }}'
state_name: smartPortStatus
states:
- { value: 1, generic: 0, graph: 1, descr: idle }
- { value: 2, generic: 2, graph: 1, descr: down }
- { value: 3, generic: 0, graph: 1, descr: up }
- { value: 4, generic: 1, graph: 1, descr: high }
- { value: 5, generic: 1, graph: 1, descr: low }
- { value: 6, generic: 1, graph: 1, descr: eyeSafety }
- { value: 7, generic: 3, graph: 1, descr: cd }
- { value: 8, generic: 3, graph: 1, descr: ncd }
temperature:
data:
-
oid: smartEnvMonTemperatureTable
value: smartEnvMonTemperatureValue
num_oid: '.1.3.6.1.4.1.30826.1.4.1.1.1.3.{{ $index }}'
descr: smartEnvMonTemperatureDescr
power:
data:
-
oid: smartPortTable
value: smartPortPower
num_oid: '.1.3.6.1.4.1.30826.1.3.1.2.1.1.5.{{ $index }}'
divisor: 10
descr: '{{ $smartPortAlias }} - {{ $smartPortName }}'
low_limit: smartPortLowPowerAlarmThreshold
high_limit: smartPortHighPowerAlarmThreshold
skip_values: -400