netapp device monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

netapp device monitoring

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: netapp device monitoring

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

Re: netapp device monitoring

Post 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

+++++++++++++
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: netapp device monitoring

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

Re: netapp device monitoring

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: netapp device monitoring

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: netapp device monitoring

Post 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);
}
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

Re: netapp device monitoring

Post 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,
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: netapp device monitoring

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

Re: netapp device monitoring

Post by mejokj »

Hi cdienger,

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

Thanks