Page 3 of 4

Re: Monitor Netapp device which is using SNMP V3

Posted: Wed Apr 06, 2016 11:27 pm
by arunkrishnan.tvm
Sorry for that.

I have changed authpriv to authPriv but still getting the same error.

Yes, My user name and password have special characters.

Re: Monitor Netapp device which is using SNMP V3

Posted: Thu Apr 07, 2016 9:52 am
by tmcdonald
Can you try wrapping them in single quotes? Depending on the characters they might cause issues.

Re: Monitor Netapp device which is using SNMP V3

Posted: Thu Apr 07, 2016 9:56 am
by rkennedy
arunkrishnan.tvm wrote:Sorry, I have failed to modify the Perl script using the required variables.

Finally found one another plugin in Nagios Exchange with SNMP3 support. When I execute the check command like below I am getting incorrect argument error.
Please help me to correct the command:

https://exchange.nagios.org/directory/P ... p3/details

./check_netapp3.pl -H 192.168.23.4 -P 3 -L authpriv -U myusr -a SHA1 -A mypasswd -X mypasswd -v CPULOAD -w 60 -c 70
It doesn't look like you're specifying a community string (-C).

Re: Monitor Netapp device which is using SNMP V3

Posted: Thu Apr 07, 2016 8:22 pm
by Box293
OK so there was about 10 things I fixed which should resolve your issue. Let us know if the updated plugin works for you.

I tested with this command and got this result (cause that device doesn't exist on my network).

Code: Select all

./check_netapp3.pl -H 192.168.23.4 -P 3 -L authPriv -U myusr -a SHA1 -A mypasswd -X mypasswd -v CPULOAD -w 60 -c 70
UNKNOWN:No response from remote host '192.168.23.4' during discovery
check_netapp3.pl.txt

Re: Monitor Netapp device which is using SNMP V3

Posted: Mon Apr 11, 2016 11:59 am
by arunkrishnan.tvm
Thank you very much Box293. It is working fine now.

But some variable checks showing error.

CACHEAGE - Cache Age
CIFSOPS - CIFS Operations
FAN - fan failed state
GLOBALSTATUS - Global Status
NDMPSESSIONS - NDMP Sessions
NETRCVD - Net In
NETSENT - Net Out
NFSOPS - NFS Operations
NVRAM - nvram battery status
PS - Power Supply failed state
TAPEREAD - Bytes Tape Read
TAPEWRITE - Bytes Tape Write
TEMP - over temperature check

Code: Select all

./check_netapp3.pl -H 192.168.23.45 -P 3 -L authPriv -U myuser -a SHA1 -A mypasswd -X mypasswd -v CACHEAGE -w 60 -c 70
CRITICAL:Requested table is empty or does not exist for .1.3.6.1.4.1.789.1.2.2.23 with snmp version 3

./check_netapp3.pl -H 192.168.23.45 -P 3 -L authPriv -U myuser -a SHA1 -A mypasswd -X mypasswd -v CIFSOPS -w 60 -c 70
CRITICAL:Requested table is empty or does not exist for 1.3.6.1.4.1.789.1.2.2 with snmp version 3

./check_netapp3.pl -H 192.168.23.45 -P 3 -L authPriv -U myuser -a SHA1 -A mypasswd -X mypasswd -v FAN -w 60 -c 70
CRITICAL:Requested table is empty or does not exist for .1.3.6.1.4.1.789.1.2.4.2 with snmp version 3

./check_netapp3.pl -H 192.168.23.45 -P 3 -L authPriv -U myuser -a SHA1 -A mypasswd -X mypasswd -v GLOBALSTATUS -w 60 -c 70
CRITICAL:Requested table is empty or does not exist for .1.3.6.1.4.1.789.1.2.2.4 with snmp version 3

./check_netapp3.pl -H 192.168.23.45 -P 3 -L authPriv -U myuser -a SHA1 -A mypasswd -X mypasswd -v NDMPSESSIONS -w 60 -c 70
CRITICAL:Requested table is empty or does not exist for 1.3.6.1.4.1.789.1.10.2 with snmp version 3

./check_netapp3.pl -H 192.168.23.45 -P 3 -L authPriv -U myuser -a SHA1 -A mypasswd -X mypasswd -v NETRCVD -w 60 -c 70
CRITICAL:Requested table is empty or does not exist for 1.3.6.1.4.1.789.1.2.2 with snmp version 3

./check_netapp3.pl -H 192.168.23.45 -P 3 -L authPriv -U myuser -a SHA1 -A mypasswd -X mypasswd -v NETSENT -w 60 -c 70
CRITICAL:Requested table is empty or does not exist for 1.3.6.1.4.1.789.1.2.2 with snmp version 3

./check_netapp3.pl -H 192.168.23.45 -P 3 -L authPriv -U myuser -a SHA1 -A mypasswd -X mypasswd -v NFSOPS -w 60 -c 70
CRITICAL:Requested table is empty or does not exist for 1.3.6.1.4.1.789.1.2.2 with snmp version 3

./check_netapp3.pl -H 192.168.23.45 -P 3 -L authPriv -U myuser -a SHA1 -A mypasswd -X mypasswd -v NVRAM -w 60 -c 70
CRITICAL:Requested table is empty or does not exist for .1.3.6.1.4.1.789.1.2.5.1 with snmp version 3

./check_netapp3.pl -H 192.168.23.45 -P 3 -L authPriv -U myuser -a SHA1 -A mypasswd -X mypasswd -v PS -w 60 -c 70
CRITICAL:Requested table is empty or does not exist for .1.3.6.1.4.1.789.1.2.4.4 with snmp version 3

./check_netapp3.pl -H 192.168.23.45 -P 3 -L authPriv -U myuser -a SHA1 -A mypasswd -X mypasswd -v TAPEREAD -w 60 -c 70
CRITICAL:Requested table is empty or does not exist for 1.3.6.1.4.1.789.1.2.2 with snmp version 3

./check_netapp3.pl -H 192.168.23.45 -P 3 -L authPriv -U myuser -a SHA1 -A mypasswd -X mypasswd -v TAPEWRITE -w 60 -c 70
CRITICAL:Requested table is empty or does not exist for 1.3.6.1.4.1.789.1.2.2 with snmp version 3

./check_netapp3.pl -H 192.168.23.45 -P 3 -L authPriv -U myuser -a SHA1 -A mypasswd -X mypasswd -v TEMP -w 60 -c 70
CRITICAL:Requested table is empty or does not exist for .1.3.6.1.4.1.789.1.2.4.1 with snmp version 3

Re: Monitor Netapp device which is using SNMP V3

Posted: Mon Apr 11, 2016 4:13 pm
by rkennedy
What is the result if you query the OID's directly through a SNMP walk using SNMPv3? Perhaps something has changed.

Re: Monitor Netapp device which is using SNMP V3

Posted: Tue Apr 12, 2016 1:43 pm
by arunkrishnan.tvm
How to query directly using OID's ? Could you please provide an example syntax ?

Another major issue I am facing with this plugin is unable to check the volume usage and volume related checks. It is showing the error "ERROR: No snmp response from 192.168.23.45 (alarm timeout)".

Code: Select all

./check_netapp3.pl -H 192.168.23.45 -P 3 -L authPriv -U myusr -a SHA1 -A mypasswd -X mypasswd -v DISKUSED -o n2_sata -w 60 -c 70
ERROR: No snmp response from 192.168.23.45 (alarm timeout)

Re: Monitor Netapp device which is using SNMP V3

Posted: Tue Apr 12, 2016 3:52 pm
by ssax
This will produce a lot of output but it will show us if those OIDs are even available on your remote device:

Code: Select all

snmpwalk -v 3 -l authPriv -u myusr -a SHA1 -A mypasswd -X mypasswd .1.3.6.1.4.1.789.1

Re: Monitor Netapp device which is using SNMP V3

Posted: Wed Apr 13, 2016 2:04 pm
by arunkrishnan.tvm
I am getting the following result when I try to run the command:

Also is there any way to fix the volume usage checking issue. It is showing the error "ERROR: No snmp response from 192.168.23.45 (alarm timeout)".

Code: Select all

[root@TCVNG01 libexec]# snmpwalk -H 192.168.23.45 -v 3 -l authPriv -u myusr -a SHA1 -A mypasswd -X mypasswd .1.3.6.1.4.1.789.1

Configuration directives understood:
No log handling enabled - turning on stderr logging
  In snmpwalk.conf and snmpwalk.local.conf:
    includeRequested         (1|yes|true|0|no|false)
    excludeRequested         (1|yes|true|0|no|false)
    printStatistics          (1|yes|true|0|no|false)
    dontCheckOrdering        (1|yes|true|0|no|false)
    timeResults              (1|yes|true|0|no|false)
  In snmp.conf and snmp.local.conf:
    doDebugging              (1|0)
    debugTokens              token[,token...]
    logTimestamp             (1|yes|true|0|no|false)
    mibdirs                  [mib-dirs|+mib-dirs|-mib-dirs]
    mibs                     [mib-tokens|+mib-tokens]
    mibfile                  mibfile-to-read
    showMibErrors            (1|yes|true|0|no|false)
    strictCommentTerm        (1|yes|true|0|no|false)
    mibAllowUnderline        (1|yes|true|0|no|false)
    mibWarningLevel          integerValue
    mibReplaceWithLatest     (1|yes|true|0|no|false)
    printNumericEnums        (1|yes|true|0|no|false)
    printNumericOids         (1|yes|true|0|no|false)
    escapeQuotes             (1|yes|true|0|no|false)
    dontBreakdownOids        (1|yes|true|0|no|false)
    quickPrinting            (1|yes|true|0|no|false)
    numericTimeticks         (1|yes|true|0|no|false)
    oidOutputFormat          integerValue
    suffixPrinting           integerValue
    extendedIndex            (1|yes|true|0|no|false)
    printHexText             (1|yes|true|0|no|false)
    printValueOnly           (1|yes|true|0|no|false)
    dontPrintUnits           (1|yes|true|0|no|false)
    hexOutputLength          integerValue
    dumpPacket               (1|yes|true|0|no|false)
    reverseEncodeBER         (1|yes|true|0|no|false)
    defaultPort              integerValue
    defCommunity             string
    noTokenWarnings          (1|yes|true|0|no|false)
    noRangeCheck             (1|yes|true|0|no|false)
    persistentDir            string
    tempFilePattern          string
    noDisplayHint            (1|yes|true|0|no|false)
    16bitIDs                 (1|yes|true|0|no|false)
    clientaddr               string
    clientaddrUsesPort       (1|yes|true|0|no|false)
    serverSendBuf            integerValue
    serverRecvBuf            integerValue

Re: Monitor Netapp device which is using SNMP V3

Posted: Wed Apr 13, 2016 4:13 pm
by rkennedy
Try this one, and post the full output -

Code: Select all

snmpwalk -H 192.168.23.45 -v 3 -l authPriv -u myusr -a SHA -A mypasswd -X mypasswd .1.3.6.1.4.1.789.1