How to add custom oid for aten's pdu

Hi,

I want to get dissipation and power value of ATEN’s PDU.
I can get values via snmpwalk.

Here is the result:
snmpwalk -v 2c -c STRING IP 1.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.5
SNMPv2-SMI::enterprises.21317.1.3.2.2.2.2.1.1.5.2 = STRING: “1079.6433”
SNMPv2-SMI::enterprises.21317.1.3.2.2.2.2.1.1.5.3 = STRING: “1014.9216”

snmpwalk -v 2c -c STRING IP 1.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.4SNMPv2-SMI::enterprises.21317.1.3.2.2.2.2.1.1.4.2 = STRING: “186.9160”
SNMPv2-SMI::enterprises.21317.1.3.2.2.2.2.1.1.4.3 = STRING: “120.0180”

Furthermore, I have created a file called aten.yaml.
Here is the existing file: /opt/librenms/includes/definitions/discovery/aten.yaml

modules:
sensors:
current:
data:
-
oid: devicePower
num_oid: ‘.1.3.1.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.4.{{ $index }}’
descr: Power Value
-
oid: devicePowerDissipation
num_oid: ‘.1.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.5.{{ $index }}’
descr: Dissipation Value

However, nothing shows on librenms.
Can anyone help?
Thanks.

Are you following this doc?
https://docs.librenms.org/Developing/Sensor-State-Support/

Hi Kevin,
Thanks for your help.
I have followed the instructions.
However, the values I need don’t need sensors to get them.

mib: ATEN-PE-CFG
modules:
sensors:
state:
data:
-
oid: outletValueTable
value: outletPower
num_oid: ‘.1.3.1.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.4.{{ $index }}’
descr: Power Value
index: ‘outletPower.{{ $index }}’
-
oid: outletValueTable
value: outletPowerDissipation
num_oid: ‘.1.3.6.1.4.1.21317.1.3.2.2.2.2.1.1.5.{{ $index }}’
descr: Dissipation Value
index: ‘outletPowerDissipation.{{ $index }}’

I corrected my aten.yaml after I search those oid from mib.
Unfortunately. nothing appeared.