PDA

View Full Version : SNMP Dynamic index with quotes in the string


craigwelsh
13-05-2010, 17:11
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

r0k5t4r
30-07-2010, 14:52
Hi have you fixed this problem? I just stepped over the same issue.

r0k5t4r
30-07-2010, 15:00
You don't need the quotes. I missed out the last / on the volume name. :)

magawake
28-10-2010, 12:51
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 (http://www.suzuki-tech.com/wiki/Suzuki_GSV-R)

craigwelsh
09-02-2011, 19:19
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..