Custom OID in LibreNMS (repeat)

Hi, is there anyway I can do the custom oid like it is in this ref http://www.maartenmoerman.nl/?p=649

I saw my MIKROTIK-MIB file doesn’t contain any custom OID value that I need to display. Can someone advise me how to add., for example, a custom oid of my queue tree:
name=.1.3.6.1.4.1.14988.1.1.2.2.1.2.16779234
bytes=.1.3.6.1.4.1.14988.1.1.2.2.1.7.16779234

In the MIKROTIK-MIB, the format:
mtxrQueueTreeTable OBJECT-TYPE
    SYNTAX SEQUENCE OF MtxrQueueTreeEntry
    MAX-ACCESS not-accessible
    STATUS current
    DESCRIPTION ""
    ::= { mtxrQueues 2 }

mtxrQueueTreeEntry OBJECT-TYPE
    SYNTAX MtxrQueueTreeEntry
    MAX-ACCESS not-accessible
    STATUS current
    DESCRIPTION "Tree queue"
    INDEX { mtxrQueueTreeIndex }
    ::= { mtxrQueueTreeTable 1 }

MtxrQueueTreeEntry ::= SEQUENCE {
    mtxrQueueTreeIndex ObjectIndex,
    mtxrQueueTreeName DisplayString,
    mtxrQueueTreeFlow DisplayString,
    mtxrQueueTreeParentIndex ObjectIndex,
    mtxrQueueTreeBytes Counter32,
    mtxrQueueTreePackets Counter32,
    mtxrQueueTreeHCBytes Counter64,
    mtxrQueueTreePCQQueues Counter32,
    mtxrQueueTreeDropped Counter32
}

mtxrQueueTreeIndex OBJECT-TYPE
    SYNTAX ObjectIndex
    MAX-ACCESS not-accessible
    STATUS current
    DESCRIPTION ""
    ::= { mtxrQueueTreeEntry 1 }

So how do I modify it to match the custom OID i want it to display.

TiA

You shouldn’t need a custom mib.

According to: http://www.oidview.com/mibs/14988/MIKROTIK-MIB.html what you are looking for is:

mtxrQueueTreeName
mtxrQueueTreeHCBytes

You can probably use those with mib based polling, take a look: http://docs.librenms.org/Extensions/MIB-based-polling/

1 Like

Hi @laf, thanks. found that out after all.
But it was a giant combined graph (with all the queue tree on 1 graph).
Can I separate it one by one (or per my preferences)? How can I do that?

Thanks

You should be able to just click the graph and it will show each one - afaik

The image showed something like this:
Screenshot_1.png

Hello,
custom oid feature has been merged to master code. https://github.com/librenms/librenms/pull/10945