forked from librenms/librenms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Smartoptics dcp m 40 zr (librenms#13634)
* 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
1 parent
ca86a17
commit e2b32c0
Showing
13 changed files
with
31,289 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.