Help creating new OS

discovery
snmp
Tags: #<Tag:0x00007f9327d6e450> #<Tag:0x00007f9327d6e310>

#1

hi all
im new to Librenms, and im trying to monitor an Audiocodes Mediant 1000, but the LibreNMS shows it as a “Generic device”.
how could i add it as a new OS?
i created the discovery and the poller
https://p.libren.ms/view/8083364a
https://p.libren.ms/view/ab05f5e7

i have the mibs also, if they are needed
best
Ariel


#2

https://docs.librenms.org/Developing/Support-New-OS/
https://docs.librenms.org/Developing/


#3

thanks Murrant
i had ran the script, but i receive this errors

Cannot find module (TB): At line 0 in (none)
Undefined OBJECT-GROUP (snmpBasicNotificationsGroup): At line 692 in /opt/librenms/mibs/audiocodes/V2-MIB.MY
Undefined OBJECT-GROUP (ipv6RouterAdvertRowStatus): At line 801 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipv6RouterAdvertDefaultLifetime): At line 795 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipv6RouterAdvertCurHopLimit): At line 789 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipv6RouterAdvertRetransmitTime): At line 783 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipv6RouterAdvertReachableTime): At line 777 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipv6RouterAdvertLinkMTU): At line 771 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipv6RouterAdvertOtherConfigFlag): At line 765 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipv6RouterAdvertManagedFlag): At line 760 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipv6RouterAdvertMinInterval): At line 754 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipv6RouterAdvertMaxInterval): At line 748 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipAddressStorageType): At line 735 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipAddressRowStatus): At line 728 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipAddressStatus): At line 722 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipAddressType): At line 716 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipv6InterfaceForwarding): At line 708 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipv6InterfaceEnableStatus): At line 702 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipv4InterfaceEnableStatus): At line 696 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipLastChangeGroup): At line 689 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipv6RouterAdvertGroup): At line 685 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipv6ScopeGroup): At line 681 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipAddressPrefixGroup): At line 677 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipv6IfGroup): At line 673 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipv6GeneralGroup2): At line 669 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipv4IfStatsHCPacketGroup): At line 662 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipv4IfStatsGroup): At line 657 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipv4SystemStatsHCPacketGroup): At line 650 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipv4SystemStatsGroup): At line 646 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipv4IfGroup): At line 642 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipIfStatsHCPacketGroup): At line 631 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipIfStatsHCOctetGroup): At line 624 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipIfStatsGroup): At line 620 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipSystemStatsHCPacketGroup): At line 613 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipSystemStatsHCOctetGroup): At line 606 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipDefaultRouterGroup): At line 603 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipNetToPhysicalGroup): At line 603 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipAddressGroup): At line 602 in /opt/librenms/mibs/audiocodes/IP-MIB.my
Undefined OBJECT-GROUP (ipSystemStatsGroup): At line 602 in /opt/librenms/mibs/audiocodes/IP-MIB.my
.*Table$: Unknown Object Identifier (Sub-id not found: (top) -> *Table$)
Failed to create new discovery file /opt/librenms/includes/definitions/discovery/audiocodes.yaml

any idea?
thanks


#4

Did you add that?


#5

i have a folder in
mibs/audiocodes/


#6

Don’t include standard mins in vendor directories.


#7

i had created a dedicated folder for audiocodes

sorry for my noob questions…or answers… this is my first time with Librenms


#8

Hello

I am as well working on this. How far did you go ? just to ensure we don’t both do it. So far, I have basic device recognition, and am working on ports (FXS in my case).

PipoCanaja


#9

Hi PipoCanaja!
im trying to create de yaml to use the MIB for a DS1 (E1 lines), but without any luck


#10

Ok.

I’ll do it then.

Please send me the results of both commands:

snmpbulkwalk -OUneb -v2c -c COMMUNITY HOSTNAME .  | ./pbin.sh
snmpbulkwalk -OUneb -v2c -m all -M /opt/librenms/mibs:/opt/librenms/mibs/audiocode -c COMMUNITY HOSTNAME .  | ./pbin.sh

(you can send this in Private message if you like).
(I suppose you did add the MIBS in /opt/librenms/mibs/audiocode. If not, please adapt the command accordingly)
Also please indicate what information would make sense for you.

PipoCanaja


#11

PipoCanaja… i get an error when i made the snmbulkwalk… something about a database error


#12

I would need more precisions to help you on this. Contacting you in PM.

PipoCanaja


#13

Hello @Ariel_Dorfman

A basic support for Audiocodes is now in. This will make testing somehow easier cause the structure will be there, so patching will be simpler.
Could you check what information you get now, after a ./daily.sh and re-discovery + polling of your audiocodes devices ?

Bye
PipoCanaja