Hi LibreNMS Team,
I’d like to add 16 digital interface status from Moxa 1210. In the MIB file I have (placed in mibs/moxa), I have these information (only a part of the entire MIB) :
– I/O
– 1.3.6.1.4.1.8691.10.1210.10
e1210monitor OBJECT IDENTIFIER ::= { e1210 10 }
– DI channel
diTable OBJECT-TYPE
SYNTAX SEQUENCE OF DIEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
“The DI channel monitor table”
::= { e1210monitor 1 }
diEntry OBJECT-TYPE
SYNTAX DIEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
“The DI channel monitor item”
INDEX { diIndex }
::= { diTable 1 }
DIEntry ::= SEQUENCE {
diIndex Integer32,
diMode Integer32,
diStatus Integer32,
diFilter Integer32,
diTrigger Integer32,
diCntStart Integer32,
diCounterReset Integer32,
diCounterOverflowFlag Integer32,
diCounterOverflowFlagClear Integer32
}
diIndex OBJECT-TYPE
SYNTAX Integer32 (0…15)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
“DI - index”
::= { diEntry 1 }
diMode OBJECT-TYPE
SYNTAX Integer32 (0…1)
MAX-ACCESS read-write
STATUS current
DESCRIPTION “DI - mode (0: DI, 1: Counter mode)”
::= { diEntry 3 }
diStatus OBJECT-TYPE
SYNTAX Integer32 (0…2147483647)
MAX-ACCESS read-only
STATUS current
DESCRIPTION “DI - DI mode status (0: OFF, 1: ON) or Counter mode value”
::= { diEntry 4 }
I tried to create a simple YAML file based on https://docs.librenms.org/#Developing/Support-New-OS/ :
os: E1210
text: E1210
type: environment
icon: moxa
discovery:
- sysObjectID:
- .1.3.6.1.4.1.8691.10.1210
mib_dir:
- moxa
tried to re discover, re poll, remove cache
but it didn’t work…
also tried to create another “type” of YAML file based on https://docs.librenms.org/#Developing/Sensor-State-Support/
mib: MOXA_IO_E1210-MIB
modules:
sensors:
state:
data:
-
oid: diTable
num_oid: .1.3.6.1.4.1.8691.10.1210.10.1.1.4.
descr: diStatus
index: ‘diStatus.{{ $index }}’
state_name: diStatus
but it also didn’t work…
I cannot see my digital interface status
also tried to execute new-os.php with the command : ./new-os.php -h 10.68.107.101 -o E1210
but the only answer I have is :
Info:
You can use to build the yaml files for a new OS.
Usage:
-h Is the device ID or hostname of the device in LibreNMS detected as generic
-o This is the OS name, i.e ios, nxos, eos
-t This is the OS type, i.e network, power, etc
-v The vendor name in lower case, i.e cisco, arista
Example:
./scripts/new-os.php -h 44 -o new-eos
Ow, I also post the beginning of the MIB file if it can help one of you
– *****************************************************************
– Moxa Active Ethernet I/O Server MIB
– 01-03-2013
– Copyright © 2013 by Moxa Automation Co., Ltd.
– All rights reserved.
– *****************************************************************
MOXA-IO-E1210-MIB DEFINITIONS ::= BEGIN
IMPORTS
enterprises, Unsigned32, Integer32, MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE FROM SNMPv2-SMI;
– 1.3.6.1.4.1.8691.10.1210
e1210 MODULE-IDENTITY
Thanks all for you help !