From Scorching Wigeon, 1 Year ago, written in Plain Text.
Embed
  1. mib: UBNT-UFIBER-MIB
  2. modules:
  3.     os:
  4.         sysDescr_regex: '/v(?<version>\d+\.\d+\.\d+)/'
  5.         hardware: UBNT-UFIBER-MIB::ubntModel.0
  6.         version: UBNT-UFIBER-MIB::ubntVersion.0
  7.  
  8.     sensors:
  9.         count:
  10.             data:
  11.                 -
  12.                     oid: ubntOnusCount
  13.                     num_oid: '.1.3.6.1.4.1.41112.1.5.6.1.{{ $index }}'
  14.                     index: 'ubntOnusCount.{{ $index }}'
  15.                     descr: "Number of ONU's"
  16.                 -
  17.                     oid: ubntSfpsCount
  18.                     num_oid: '.1.3.6.1.4.1.41112.1.5.7.1.{{ $index }}'
  19.                     index: 'ubntSfpsCount.{{ $index }}'
  20.                     descr: "Number of SFP's"
  21.         temperature:
  22.             data:
  23.                 -
  24.                     oid: ubntThermTemperature
  25.                     divisor: 1000
  26.                     num_oid: '.1.3.6.1.4.1.41112.1.5.4.2.1.3.{{ $index }}'
  27.                     index: 'ubntThermTemperature.{{ $index }}'
  28.                     descr: 'Temperatures {{ $index }}'
  29.                     low_limit: 0
  30.                     low_warn_limit: 5
  31.                     warn_limit: 35
  32.                     high_limit: 40
  33.         fanspeed:
  34.             data:
  35.                 -
  36.                     oid: ubntFanRpm
  37.                     num_oid: '.1.3.6.1.4.1.41112.1.5.5.2.1.3.{{ $index }}'
  38.                     index: 'ubntFanRpm.{{ $index }}'
  39.                     descr: 'Fun #{{ $index }}'
  40.  
  41.  
  42.         dbm:
  43.             data:
  44.                 -
  45.                     oid: ubntOnuEntry
  46.                     value: ubntOnuTxPower
  47.                     num_oid: '.1.3.6.1.4.1.41112.1.5.6.2.1.8.{{ $index }}'
  48.                     descr: "ONU {{ $ubntOnuSN }} TX"
  49.                     group: ONUs TX
  50.                     index: 'tx-{{ $index }}'
  51.                     divisor: 100
  52.                     skip_value_gt: 999999
  53.                 -
  54.                     oid: ubntOnuEntry
  55.                     value: ubntOnuRxPower
  56.                     num_oid: '.1.3.6.1.4.1.41112.1.5.6.2.1.9.{{ $index }}'
  57.                     descr: "ONU {{ $ubntOnuSN }} RX"
  58.                     group: ONUs RX
  59.                     index: 'rx-{{ $index }}'
  60.                     divisor: 100
  61.                     skip_value_gt: 999999
  62.         runtime:
  63.             data:
  64.                 -
  65.                     oid: ubntOnuEntry
  66.                     value: ubntOnuUpTime
  67.                     divisor: 6000
  68.                     num_oid: '.1.3.6.1.4.1.41112.1.5.6.2.1.7.{{ $index }}'
  69.                     descr: "ONU {{ $ubntOnuName }} uptime"
  70.                     group: ONUs uptime
  71.                     index: 'ubntOnuUpTime-{{ $index }}'
  72.                 -
  73.                     oid: ubntOnuEntry
  74.                     value: ubntOnuConnectedTime
  75.                     divisor: 6000
  76.                     num_oid: '.1.3.6.1.4.1.41112.1.5.6.2.1.6.{{ $index }}'
  77.                     descr: "ONU {{ $ubntOnuName }} connected time"
  78.                     group: ONUs connected time
  79.                     index: 'ubntOnuConnectedTime-{{ $index }}'
  80.