From librenms, 3 Years ago, written in Plain Text.
Embed
  1. ====== cat ./includes/definitions/discovery/parks.yaml ===
  2. mib: PARKS-SFP-MIB
  3. modules:
  4.     sensors:
  5.         pre-cache:
  6.             data:
  7.                 -
  8.                     oid:
  9.                         - ifDescr
  10.                         - ifAdminStatus
  11.                         - ifType
  12.                         - pkSfpVendorName
  13.                         - pkSfpVendorPN
  14.                         - pkSfpVendorSN
  15.         temperature:
  16.             data:
  17.                 -
  18.                     oid: pkSfpTable
  19.                     value: pkSfpDiagTemperature
  20.                     num_oid: '.1.3.6.1.4.1.3893.1.21.1.1.1.14.{{ $index }}'
  21.                     descr: '{{ $ifDescr }} -  {{ $pkSfpVendorName }} pn:{{ $pkSfpVendorPN }} sn:{{ $pkSfpVendorSN }}'
  22.                     divisor: 100
  23.                     group: '{{ $pkSfpVendorName }}'
  24.                     high_limit: 65
  25.                     low_limit: 30
  26.                     skip_values:
  27.                         -
  28.                             oid: ifAdminStatus
  29.                             op: '!='
  30.                             value: 1
  31.                         -
  32.                             oid: ifType
  33.                             op: '!='
  34.                             value: 1
  35.         dbm:
  36.             data:
  37.                 -
  38.                     oid: pkSfpTable
  39.                     value: pkSfpDiagTXOutputPower
  40.                     descr: '{{ $ifDescr }} -  {{ $pkSfpVendorName }} pn:{{ $pkSfpVendorPN }} sn:{{ $pkSfpVendorSN }}'
  41.                     divisor: 100
  42.                     group: '{{ $pkSfpVendorName }}'
  43.                     low_limit: 2.9
  44.                     high_limit: 5.5
  45.                     skip_values:
  46.                         -
  47.                             oid: ifAdminStatus
  48.                             op: '!='
  49.                             value: 1
  50.                         -
  51.                             oid: ifType
  52.                             op: '!='
  53.                             value: 1
  54. ======eof===
  55. ====== cat ./includes/definitions/discovery/mempools/parks.yaml ===
  56. mempools:
  57.     data:
  58.         -
  59.             total: PARKS-CPUMEM-STATS-MIB::pkMemoryTotal.0
  60.             used: PARKS-CPUMEM-STATS-MIB::pkMemoryUsed.0
  61.             free: PARKS-CPUMEM-STATS-MIB::pkMemoryFree.0
  62. ======eof===
  63. ====== cat ./includes/definitions/parks.yaml ===
  64. os: parks
  65. text: 'PARKS Fiberlink'
  66. type: optical
  67. icon: parks
  68. group: gpon
  69. mib_dir:
  70.     - parks
  71. over:
  72.     - { graph: device_bits, text: 'Device Traffic' }
  73.     - { graph: device_processor, text: 'CPU Usage' }
  74.     - { graph: device_mempool, text: 'Memory Usage' }
  75. discovery:
  76.     - sysDescr_regex:
  77.         - '/PARKS/'
  78.  
  79. ======eof===
  80.