Hi,
Is it possible to add custom oid to template to poll graphs for FGLT pon ports because by default only operational state works.
SNMP[’/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUst’ ‘-m’ ‘EtherLike-MIB’ ‘-M’ ‘/opt/librenms/mibs:/opt/librenms/mibs/nokia:/opt/librenms/mibs/Array’ ‘udp:HOSTNAME:161’ ‘dot3StatsIndex.228655104’ ‘dot3StatsDuplexStatus.228655104’]
ifSpeed.228655104 = 1244000000
ifInOctets.228655104 = NULL
ifInUcastPkts.228655104 = NULL
ifInUnknownProtos.228655104 = NULL
ifOutOctets.228655104 = NULL
ifOutUcastPkts.228655104 = NULL
ifInErrors.228655104 = NULL
ifOutErrors.228655104 = NULL
ifInNUcastPkts.228655104 = NULL
ifOutNUcastPkts.228655104 = NULL
ifInDiscards.228655104 = NULL
ifOutDiscards.228655104 = NULL
ifPhysAddress.228655104 = NULL
ifLastChange.228655104 = 53778410
ifType.228655104 = gpon
ifMtu.228655104 = NULL
For ifInOctets and ifOutOctets I have the oid which polls these results but I want to know how to integrate them to template so they can poll automatically to the interfaces.
iso.3.6.1.4.1.637.61.1.35.21.57.1.12.53778410 = Hex-STRING: 00 00 00 00 0E 5E 31 FC
iso.3.6.1.4.1.637.61.1.35.21.57.1.11.53778410 = Hex-STRING: 00 00 00 00 00 01 43 CA
These are the OID which gives the traffic for last 5 mins, so with a simple hex convert rule and by dividing by 300s and multiple by 8 bits we can get the traffic in mb/s for these interfaces.
Since the result is in hex I can not add them by custom graphs so the only way I think is to add a rule on template which should address the poll to above oids.
Any help would be appreciated.
Thanks