Ad Widget

Collapse

SNMP Dynamic index with quotes in the string

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • craigwelsh
    Junior Member
    • Sep 2005
    • 12

    #1

    SNMP Dynamic index with quotes in the string

    I wanted to use dynamic indexes for some Netapp filers I have many volumes on. The problem is that it returns the names of each volume in double quotes as below and Zabbix seems to strip those off when looking for an exact match.

    SMI::enterprises.789.1.5.4.1.2.17 = STRING: "/vol/sdd_home/"
    SNMPv2-SMI::enterprises.789.1.5.4.1.2.18 = STRING: "/vol/sdd_home/.snapshot"
    SNMPv2-SMI::enterprises.789.1.5.4.1.2.19 = STRING: "/vol/dvt_home/"
    SNMPv2-SMI::enterprises.789.1.5.4.1.2.20 = STRING: "/vol/dvt_home/.snapshot"
    SNMPv2-SMI::enterprises.789.1.5.4.1.2.21 = STRING: "/vol/dvt1/"
    SNMPv2-SMI::enterprises.789.1.5.4.1.2.22 = STRING: "/vol/dvt1/.snapshot"

    .1.3.6.1.4.1.789.1.5.4.1.3[index,.1.3.6.1.4.1.789.1.5.4.1.2,"/vol/dvt_home"]
    (enterprises.789 seems ok instead of the full if the quotes issue was sorted)

    Anyone got any ideas how to escape that or any other tips on how you monitor filer volumes and quotas for space? Thanks.

    zabbix 1.8.2
    Last edited by craigwelsh; 13-05-2010, 17:16.
  • r0k5t4r
    Member
    • Jun 2009
    • 91

    #2
    Hi have you fixed this problem? I just stepped over the same issue.

    Comment

    • r0k5t4r
      Member
      • Jun 2009
      • 91

      #3
      You don't need the quotes. I missed out the last / on the volume name.

      Comment

      • magawake
        Junior Member
        • Aug 2010
        • 24

        #4
        Can you please share exactly how your OID is setup and trigger? I would like to try this out because we just got a new NetApp at our side.
        ________
        Suzuki gsv-r specifications
        Last edited by magawake; 16-03-2011, 20:11.

        Comment

        • craigwelsh
          Junior Member
          • Sep 2005
          • 12

          #5
          It was the missing trailing / at fault I think as was mentioned, apologies for digging up an old thread but hopefully the following is useful and applies to 1.8.3 and probably the latest release too (1.8.4).

          To monitor a volume dvt1:

          Application: Volume-dvt1

          Description & Key: dvt1_dfFileSys
          OID: enterprises.789.1.5.4.1.2["index","enterprises.789.1.5.4.1.2","/vol/dvt1/"]
          Text

          Description & Key: dvt1_dfKBytesTotal
          OID: enterprises.789.1.5.4.1.3["index","enterprises.789.1.5.4.1.2","/vol/dvt1/"]
          Numeric unsigned decimal B

          Description & Key: dvt1_dfKBytesUsed
          OID: enterprises.789.1.5.4.1.4["index","enterprises.789.1.5.4.1.2","/vol/dvt1/"]
          Numeric unsigned decimal B

          Calculated
          Description & Key: dvt1_Used
          100*last("dvt1_dfKBytesUsed")/last("dvt1_dfKBytesTotal")
          Numeric unsigned decimal %

          Trigger on the %used
          Warning > 84, < 96
          Critical > 95


          Problem I have now is quotas as the dynamic index is two layers above them rather than one..

          Comment

          Working...