Skip to content

Commit

Permalink
Support for DKT Comega FTTx devices (#9732)
Browse files Browse the repository at this point in the history
* DKT Comega device support

* DKT Comega device support

* DKT Comega device support

* DKT Comega device support
  • Loading branch information
PipoCanaja authored and murrant committed Feb 7, 2019
1 parent ccd9973 commit c7c1ca2
Show file tree
Hide file tree
Showing 13 changed files with 5,017 additions and 0 deletions.
Binary file added html/images/os/dkt.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions includes/definitions/discovery/dkt.yaml
@@ -0,0 +1,23 @@
mib: DKT-CATV-MIB:DKT-FE-MIB:DKT-GE-MIB:DKT-GENERIC-MIB:DKT-MIB:DKT-RMON-MIB
modules:
sensors:
state:
data:
-
oid: catvSignalDetect
value: catvSignalDetect
num_oid: '.1.3.6.1.4.1.27304.11.3.{{ $index }}'
descr: 'CATV Signal Detect'
index: '0'
states:
- { descr: Signal Ok, graph: 0, value: 1, generic: 0 }
- { descr: No Signal, graph: 0, value: 0, generic: 3 }
-
oid: catvSwitch
value: catvSwitch
num_oid: '.1.3.6.1.4.1.27304.11.2.{{ $index }}'
descr: 'CATV Module'
index: '0'
states:
- { descr: Powered, graph: 0, value: 1, generic: 0 }
- { descr: Not powered, graph: 0, value: 0, generic: 3 }
11 changes: 11 additions & 0 deletions includes/definitions/dkt.yaml
@@ -0,0 +1,11 @@
os: dkt
group: dkt
text: 'DKT Comega'
type: network
icon: dkt
over:
- { graph: device_bits, text: 'Device Traffic' }
mib_dir:
- dkt
discovery:
- sysObjectID: .1.3.6.1.4.1.27304
5 changes: 5 additions & 0 deletions includes/polling/os/dkt.inc.php
@@ -0,0 +1,5 @@
<?php

$hardware = 'DKT ' . snmp_get($device, 'DKT-GENERIC-MIB::hwVersion.0', '-OQv');
$version = snmp_get($device, 'DKT-GENERIC-MIB::swVersion.0', '-OQv');

60 changes: 60 additions & 0 deletions mibs/dkt/DKT-CATV-MIB
@@ -0,0 +1,60 @@
DKT-CATV-MIB DEFINITIONS ::= BEGIN

IMPORTS
MODULE-IDENTITY, OBJECT-TYPE, Integer32,
Counter32 FROM SNMPv2-SMI
OBJECT-GROUP FROM SNMPv2-CONF
dkt FROM DKT-MIB;

catvMIB MODULE-IDENTITY
LAST-UPDATED "200812170000Z"
ORGANIZATION "DKT A/S"
CONTACT-INFO
"postal: DKT A/S
Fanoevej 6
DK-4060 Kirke Saaby
Denmark

email: info@dktcomega.com"
DESCRIPTION "DKT CATV MIB."
::= { dkt 11 }

catvVersion OBJECT-TYPE
SYNTAX OCTET STRING (SIZE(0..100))
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Version string for the CATV module"
::= { catvMIB 1 }

catvSwitch OBJECT-TYPE
SYNTAX INTEGER
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"Switch CATV module on or off. 1 = on 0 = off"
::= { catvMIB 2 }

catvSignalDetect OBJECT-TYPE
SYNTAX INTEGER
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"CATV Rx signal detect. 1 = signal, 0 = no signal"
::= { catvMIB 3 }


catvModuleGroup OBJECT-GROUP
OBJECTS {
catvVersion,
catvSwitch,
catvSignalDetect
}
STATUS current
DESCRIPTION
"The objects are related to the DKT CATV module."
::= { catvMIB 4 }

END


0 comments on commit c7c1ca2

Please sign in to comment.