Page 1 of 2

netapp device monitoring

Posted: Tue Dec 29, 2020 8:42 am
by mejokj
We are using the NetApp device and we have been monitoring below NetApp status of disks but we are not able to monitor below services on screen shot. Please help us to resolve this and what needs to change in check. We are getting snmp walk result as below.

toolsadmin@emea-nagios-a ~]$ pynag execute XXXX "NetApp Status of disks"

# /usr/local/nagios/libexec/check-netapp-ng.pl -H ip -C public -T DISKSUMMARY

OK: DISKSUMMARY (There are no failed disks.) Disk Summary : Total->30 Active->27 Spare->10 Failed ->0 Reconstructing ->0 | faileddisks=0 total=30 active=27 spare=10 reconstructing=0



[toolsadmin@emea-nagios-a ~]$ /usr/local/nagios/libexec/check-netapp-ng.pl -H XXXX -C public -T NVRAM

CRIT: NVRAM | nvrambatterystatus=noSuchObject



[root@emea-nagios-a ~]# snmpwalk -v 2c -c public ip

SNMPv2-MIB::sysDescr.0 = STRING: NetApp Release 9.4P3: Thu Oct 11 22:23:50 UTC 2018

SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.789.2.5

DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (4294967295) 497 days, 2:27:52.95

SNMPv2-MIB::sysContact.0 = STRING:

SNMPv2-MIB::sysName.0 = STRING: euntapc01.informatica.com

SNMPv2-MIB::sysLocation.0 = STRING: Dublin,Ireland

SNMPv2-MIB::sysServices.0 = INTEGER: 72

Re: netapp device monitoring

Posted: Tue Dec 29, 2020 4:51 pm
by cdienger
What are the other values are you passing the command with the -T option? NVRAM quiries OID .1.3.6.1.4.1.789.1.2.5.1.0, try running:

Code: Select all

snmpget -v 2c -c public ip .1.3.6.1.4.1.789.1.2.5.1.0

Re: netapp device monitoring

Posted: Wed Dec 30, 2020 7:53 am
by mejokj
The below is the output.

+++++++++++++
[root@emea-nagios-a ~]# snmpget -v 2c -c public XXXX .1.3.6.1.4.1.789.1.2.5.1.0

SNMPv2-SMI::enterprises.789.1.2.5.1.0 = No Such Object available on this agent at this OID



The below are the some other services we have enabled.



# /usr/local/nagios/libexec/check-netapp-ng.pl -H XXXX -C public -T CPULOAD -w 80 -c 90

OK: CPULOAD 2% | cpuload=2%;80;90;;



# /usr/local/nagios/libexec/check-netapp-ng.pl -H XXXX -C public -T SHELFINFO

OK: SHELFINFO ok | shelfinfo=0, temp_1=16, temp_2=19

+++++++++++++

Re: netapp device monitoring

Posted: Wed Dec 30, 2020 5:16 pm
by cdienger
CPULOAD and SHELFINFO appear to be working. What are the commands that are failing in the screenshot using exactly? Also, looking at the output of some of these(OK: SHELFINFO ok | shelfinfo=0, temp_1=16, temp_2=19
for example), we would only expect to see a simple message(OK: SELFINFO OK) in status tables. Details like temps would be part of the performance data which would be visible in graphs or under the advanced tab of a service.

.1.3.6.1.4.1.789.1.2.5.1.0 doesn't appear to exist on the device. You may want to check with the device's documentation or support to verify the OID. I would also try running this on the XI machine to see what OIDs may be available:

Code: Select all

snmpwalk -v 2c -c public XXXX .1.3.6.1.4.1.789
The snmpwalk command will use MIB files on the system to help discover OIDS. Make sure that any MIBs for the device are imported in XI. Importing MIBs can be done under Admin > System Extensions > Manage MIBs. You'll want to again check with your device's documentation or support to make sure you have the correct MIBs.

Re: netapp device monitoring

Posted: Wed Jan 06, 2021 12:06 pm
by mejokj
Hi cdienger,

We did not understand why the OID is not present in device for couple of service is showing ok irrespective of status information. Please find the below how come its showing OK (no suchObject)

[nagios@emea-nagios-a root]$ /usr/local/nagios/libexec/check-netapp-ng.pl -H 10.34.212.88 -C public -T NDMPSESSIONS

OK: NDMPSESSIONS noSuchObject | ndmpsess=noSuchObject

Thanks

Re: netapp device monitoring

Posted: Wed Jan 06, 2021 4:49 pm
by ssax
That's because of the way the plugin is written, I get the same thing when running it against a system that doesn't have anything (a linux server in my case):

Code: Select all

[root@xid ~]# perl check-netapp-ng.pl -H X.X.X.X -C 'community' -T NDMPSESSIONS
OK: NDMPSESSIONS noSuchObject  | ndmpsess=noSuchObject
What is the output of these commands?
- Change X.X.X.X to the IP of the netapp and change the community

Code: Select all

snmpwalk -v2c -c 'community' X.X.X.X 1.3.6.1.4.1.789.1.10.2.0
snmpwalk -v2c -c 'community' X.X.X.X 1.3.6.1.4.1.789.1.2.5.1.0

Re: netapp device monitoring

Posted: Wed Jan 06, 2021 4:57 pm
by cdienger
The OK status will be returned if the value of $check is <= the warning or critical thresholds. This is how the value of $check is determined:

Code: Select all

...
### NDMPSESSIONS ###
} elsif("$opt{'check_type'}" eq "NDMPSESSIONS") {
        my $check = _get_oid_value($snmp_session,$snmpNdmpSessions);
        ($msg,$stat) = _clac_absolute_err_stat($check,$opt{'check_type'},$opt{'warn'},$opt{'crit'});
        $perf = "ndmpsess=$check";
...
and here is the status logic:

Code: Select all

sub _clac_generic_err_stat(@) {
        my $value = shift;
        my $value_type = shift;
        my $tmp_warn = shift;
        my $tmp_crit = shift;
        my $scale = shift;
        my $r_msg;
        my $r_stat;
        if($opt{'inform'} or ($value <= $tmp_warn)) {
                $r_stat = $ERRORS{'OK'};
                $r_msg = "OK: $value_type $value $scale";
        }  elsif($value > $tmp_warn and $value < $tmp_crit) {
                $r_stat = $ERRORS{'WARNING'};
                $r_msg = "WARN: $value_type $value $scale";
        } elsif($value >= $tmp_crit) {
                $r_stat = $ERRORS{'CRITICAL'};
                $r_msg = "CRIT: $value_type $value $scale";
        }
        return($r_msg,$r_stat);
}

Re: netapp device monitoring

Posted: Thu Jan 07, 2021 2:27 am
by mejokj
Hi Ssax

Please find the below output details.

[root@emea-nagios-a ~]# snmpwalk -v2c -c 'public' euntapc01 1.3.6.1.4.1.789.1.10.2.0

SNMPv2-SMI::enterprises.789.1.10.2.0 = No Such Object available on this agent at this OID


[root@emea-nagios-a ~]# snmpwalk -v2c -c 'public' euntapc01 X 1.3.6.1.4.1.789.1.2.5.1.0

UCD-SNMP-MIB::extTable = No Such Object available on this agent at this OID

[root@emea-nagios-a ~]#


@cdienger: OK, I got your point.

Thanks,

Re: netapp device monitoring

Posted: Thu Jan 07, 2021 5:11 pm
by cdienger
Have you imported the MIB for this device? The walk requires a MIB to properly perform. The MIB can be installed under Admin > System Extensions > Manage MIBs. Please provide a copy of the MIBs for this device if they've already been loaded.

Re: netapp device monitoring

Posted: Tue Jan 12, 2021 10:06 am
by mejokj
Hi cdienger,

We have sent you the MIB file as PM to you. Please check

Thanks