Ad Widget

Collapse

Invalid SNMP OID: cannot parse expression

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Spirou
    Member
    • Jun 2016
    • 62

    #1

    Invalid SNMP OID: cannot parse expression

    Hi,

    i create discovery rule for to check ioread :

    discovery rule :

    name : Disk device
    Type : SNMPV2 agent
    key : diskIOIndex
    SNMP OID : discovery{#SNMPVALUE},UCD-DISKIO-MIB::diskIOIndex
    SMP community : public


    item prototype (for io read) :
    Name : Disque IO Read $1
    Type : SNMPV2 agent
    key : diskIONRead[{#SNMPVALUE}]
    SNMP OID : UCD-DISKIO-MIB::diskIONRead.{#SNMPINDEX}
    SMP community : public

    I have an error : Invalid SNMP OID: cannot parse expression

    any idea guys ? tyvm for help

    regards
  • Spirou
    Member
    • Jun 2016
    • 62

    #2
    I have another discover rule and prototype item for cpu and it work well.
    The only différence is the mib : HOST-RESOURCES-MIB::hrProcessorLoad is for CPU and disk is UCD-DISKIO-MIB::diskIOIndex

    ...
    Last edited by Spirou; 01-10-2016, 18:59.

    Comment

    • Spirou
      Member
      • Jun 2016
      • 62

      #3
      The only difference i see is the directory for the mib :

      /usr/share/snmp/mibs/UCD-DISKIO-MIB.txt

      /var/lib/mibs/ietf/HOST-RESOURCES-MIB

      any ideas ?

      Comment

      • Spirou
        Member
        • Jun 2016
        • 62

        #4
        The only difference i see is the directory for the mib :

        /usr/share/snmp/mibs/UCD-DISKIO-MIB.txt

        /var/lib/mibs/ietf/HOST-RESOURCES-MIB

        commande snmpwalk work btw :

        snmpwalk -v2c -c public localhost UCD-DISKIO-MIB::diskIOIndex

        UCD-DISKIO-MIB::diskIOIndex.1 = INTEGER: 1
        UCD-DISKIO-MIB::diskIOIndex.2 = INTEGER: 2
        UCD-DISKIO-MIB::diskIOIndex.3 = INTEGER: 3
        UCD-DISKIO-MIB::diskIOIndex.4 = INTEGER: 4
        UCD-DISKIO-MIB::diskIOIndex.5 = INTEGER: 5
        UCD-DISKIO-MIB::diskIOIndex.6 = INTEGER: 6
        UCD-DISKIO-MIB::diskIOIndex.7 = INTEGER: 7
        UCD-DISKIO-MIB::diskIOIndex.8 = INTEGER: 8
        UCD-DISKIO-MIB::diskIOIndex.9 = INTEGER: 9
        UCD-DISKIO-MIB::diskIOIndex.10 = INTEGER: 10
        UCD-DISKIO-MIB::diskIOIndex.11 = INTEGER: 11
        UCD-DISKIO-MIB::diskIOIndex.12 = INTEGER: 12
        UCD-DISKIO-MIB::diskIOIndex.13 = INTEGER: 13
        UCD-DISKIO-MIB::diskIOIndex.14 = INTEGER: 14
        UCD-DISKIO-MIB::diskIOIndex.15 = INTEGER: 15
        UCD-DISKIO-MIB::diskIOIndex.16 = INTEGER: 16
        UCD-DISKIO-MIB::diskIOIndex.17 = INTEGER: 17
        UCD-DISKIO-MIB::diskIOIndex.18 = INTEGER: 18
        UCD-DISKIO-MIB::diskIOIndex.19 = INTEGER: 19
        UCD-DISKIO-MIB::diskIOIndex.20 = INTEGER: 20
        UCD-DISKIO-MIB::diskIOIndex.21 = INTEGER: 21
        UCD-DISKIO-MIB::diskIOIndex.22 = INTEGER: 22
        UCD-DISKIO-MIB::diskIOIndex.23 = INTEGER: 23
        UCD-DISKIO-MIB::diskIOIndex.24 = INTEGER: 24
        UCD-DISKIO-MIB::diskIOIndex.25 = INTEGER: 25
        UCD-DISKIO-MIB::diskIOIndex.26 = INTEGER: 26
        UCD-DISKIO-MIB::diskIOIndex.27 = INTEGER: 27
        UCD-DISKIO-MIB::diskIOIndex.28 = INTEGER: 28
        UCD-DISKIO-MIB::diskIOIndex.29 = INTEGER: 29
        UCD-DISKIO-MIB::diskIOIndex.30 = INTEGER: 30
        UCD-DISKIO-MIB::diskIOIndex.31 = INTEGER: 31
        UCD-DISKIO-MIB::diskIOIndex.32 = INTEGER: 32

        any ideas ?

        Comment

        • Spirou
          Member
          • Jun 2016
          • 62

          #5
          After some research it seem "counter32" type snmp is not suported by zabbix.
          Can you confirm that please ?

          ty

          Comment

          Working...