Ad Widget

Collapse

Cannot Parse OID Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mr.Phreak
    Junior Member
    • Jun 2016
    • 5

    #1

    Cannot Parse OID Error

    Hey Guys,

    Having problems with some Private MIBs not resolving. Showing snmp_parse_oid(): cannot parse OID "MIKROTIK-MIB::mtxrHlVoltage.0"

    MIBs are all in /usr/share/snmp/mibs and are defined in /usr/share/snmp/snmp.conf

    Code:
    [zabbix@zabbix ~]$ net-snmp-config --snmpconfpath
    /etc/snmp:/usr/share/snmp:/usr/lib64/snmp:/home/zabbix/.snmp:/var/lib/net-snmp
    [zabbix@zabbix ~]$ net-snmp-config --default-mibdirs
    /home/zabbix/.snmp/mibs:/usr/share/snmp/mibs
    All the standard ones from Template SNMP Device appear to work (such as SNMPv2-MIB::sysContact.0)

    Running snmpget from the terminal works

    Code:
    [zabbix@zabbix ~]$ snmpget -v2c -c public 192.168.127.254 MIKROTIK-MIB::mtxrHlVoltage.0
    MIB search path: /home/zabbix/.snmp/mibs:/usr/share/snmp/mibs
    MIKROTIK-MIB::mtxrHlVoltage.0 = INTEGER: 27.4
    Just hoping someone can point me in the right direction as to where to start looking.

    Cheers,
    Darryn.
  • Mr.Phreak
    Junior Member
    • Jun 2016
    • 5

    #2
    Also after some looking around, find the following errors in the zabbix_server.log

    Code:
    /usr/share/snmp/mibs/MIKROTIK-MIB.txt: Permission denied
    /usr/share/snmp/mibs/MIKROTIK-MIB.txt: Permission denied
    /usr/share/snmp/mibs/MIKROTIK-MIB.txt: Permission denied
    
    MIB search path: $HOME/.snmp/mibs:/usr/share/snmp/mibs
    Cannot find module (MIKROTIK-MIB): At line 1 in (none)
    It appears to have the same permissions as the standard mibs which work fine.

    Code:
    -rw-r--r--. 1 root root    64817 Aug 21 18:38 MIKROTIK-MIB.txt
    -rw-r--r--. 1 root root    29305 May 13 01:14 SNMPv2-MIB.txt

    Comment

    • SomeDude79
      Junior Member
      • Feb 2020
      • 1

      #3
      Hey Guys,

      I know this an old question but has anyone else comme across this problem?
      Mr. Phreak, where you able to resolve it?

      I am having the same issue and am trying to find a solution.

      Thank you

      Comment

      Working...