Skip to content

Commit

Permalink
Smartoptics dcp m 40 zr (librenms#13634)
Browse files Browse the repository at this point in the history
* Initial commit of DCP-M

* Match on system name DCP

* Fix matching regex

* Add pre-cache and dbm discovery

* Show dbm graph

* Adding snmpsim data

* Fix styleCI issue

* Detect dcp-m mib

* DCP-M Progress

* Fix CI issue

* Removing pre-cache and dbm files
  • Loading branch information
avermeer-tc committed Jan 10, 2022
1 parent ca86a17 commit e2b32c0
Show file tree
Hide file tree
Showing 13 changed files with 31,289 additions and 1 deletion.
59 changes: 59 additions & 0 deletions includes/definitions/discovery/smartos-dcp-m.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
mib: DCP-INTERFACE-MIB:DCP-LINKVIEW-MIB
modules:
os:
sysDescr_regex: '/Smartoptics, (?<hardware>DCP-M[\d]{1,2}-PAM4(-[\w\+]+)?)/'
sensors:
state:
data:
-
oid: dcpInterfaceTable
num_oid: '.1.3.6.1.4.1.30826.2.2.2.1.1.1.5.{{ $index }}'
value: dcpInterfaceStatus
descr: '{{ $dcpInterfaceChannelId }}'
index: 'dcpInterfaceStatus.{{ $index }}'
state_name: InterfaceStatus
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 }
-
oid: dcpLinkviewTable
num_oid: '.1.3.6.1.4.1.30826.2.2.2.1.1.1.5.{{ $index }}'
value: dcpLinkviewLocalStatus
descr: '{{ $dcpLinkviewLocalName }} - {{ $dcpLinkviewRemoteName }}'
index: 'dcpLinkviewLocalStatus.{{ $index }}'
state_name: InterfaceStatus
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 }
dbm:
data:
-
oid: dcpInterfaceTable
num_oid: '.1.3.6.1.4.1.30826.2.2.2.1.1.1.3.{{ $index }}'
value: dcpInterfaceRxPower
divisor: 10
descr: '{{ $dcpInterfaceChannelId }} - RX'
index: 'dcpInterfaceRxPower.{{ $index }}'
-
oid: dcpInterfaceTable
num_oid: '.1.3.6.1.4.1.30826.2.2.2.1.1.1.4.{{ $index }}'
divisor: 10
value: dcpInterfaceTxPower
descr: '{{ $dcpInterfaceChannelId }} - TX'
index: 'dcpInterfaceTxPower.{{ $index }}'
-
oid: dcpLinkviewTable
num_oid: '.1.3.6.1.4.1.30826.2.2.3.1.1.1.14.{{ $index }}'
divisor: 10
value: dcpLinkviewRemotePower
descr: '{{ $dcpLinkviewLocalName }} - {{ $dcpLinkviewRemoteName }} - Remote Power'
index: 'dcpLinkviewRemotePower.{{ $index }}'
-
oid: dcpLinkviewTable
num_oid: '.1.3.6.1.4.1.30826.2.2.3.1.1.1.5.{{ $index }}'
divisor: 10
value: dcpLinkviewLocalPower
descr: '{{ $dcpLinkviewLocalName }} - {{ $dcpLinkviewRemoteName }} - Local Power'
index: 'dcpLinkviewLocalPower.{{ $index }}'
12 changes: 12 additions & 0 deletions includes/definitions/smartos-dcp-m.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
os: smartos-dcp-m
text: 'SmartOptics DCP-M Series'
type: network
icon: smartoptics
group: smartoptics
mib_dir: smartoptics
over:
- { graph: device_dbm, text: dbm }
discovery:
-
sysObjectID:
- .1.3.6.1.4.1.30826.2
1 change: 1 addition & 0 deletions includes/definitions/smartos-t.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ text: 'SmartOptics T-Series'
type: network
icon: smartoptics
group: smartoptics
mib_dir: smartoptics
over:
- { graph: device_bits, text: 'Device Traffic' }
- { graph: device_processor, text: 'CPU Usage' }
Expand Down
3 changes: 2 additions & 1 deletion includes/definitions/smartos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ text: 'SmartOptics M-Series'
type: network
icon: smartoptics
group: smartoptics
mib_dir: smartoptics
over:
- { graph: device_bits, text: 'Device Traffic' }
- { graph: device_processor, text: 'CPU Usage' }
- { graph: device_mempool, text: 'Memory Usage' }
discovery:
-
sysObjectID:
- .1.3.6.1.4.1.30826
- .1.3.6.1.4.1.30826.1
Loading

0 comments on commit e2b32c0

Please sign in to comment.