Page 1 of 2

Netapp checking setup problem

Posted: Tue May 29, 2018 2:07 pm
by tcanthonyii
I'm attempting to use this plugin
https://exchange.nagios.org/directory/P ... ap/details

Downloaded from git hub. Instructions state I need the netapp perl sdk. Downloaded that. Instructions state to copy the contents of netapp/* to your /usr/lib/perl5 or /usr/lib64/perl5 directory. Neither of these directories exist for me. Did a search of the OS non exist with name, nor with the world perl.

I did a yum install perl to the nagiosxi server and it says xxxxxx already installed and latest version. Nothing to do.

Code: Select all

[root@NagiosXIMon /]# yum install perl
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.mirrors.tds.net
 * epel: mirror.steadfast.net
 * extras: packages.oit.ncsu.edu
 * updates: mirror.sesp.northwestern.edu
Package 4:perl-5.10.1-144.el6.x86_64 already installed and latest version
Nothing to do
You have new mail in /var/spool/mail/root
I'm using the NagiosXI appliance. The instruction are not that great for a small time user like me. How do I either get to that directory or how do I install the netapp plugin on my Nagios server so I can complete the rest of the steps.

Any help is much appreciated.

Re: Netapp checking setup problem

Posted: Tue May 29, 2018 2:12 pm
by tcanthonyii

Code: Select all

[root@NagiosXIMon /]# which perl
/usr/bin/perl
[root@NagiosXIMon /]# cd ..
[root@NagiosXIMon /]# cd /usr/bin/perl
-bash: cd: /usr/bin/perl: Not a directory
[root@NagiosXIMon /]#
just adding this.

Re: Netapp checking setup problem

Posted: Tue May 29, 2018 4:49 pm
by scottwilkerson
/usr/lib64/perl5 should exist on our VM

Code: Select all

cd /usr/lib64/perl5
ls -l

Re: Netapp checking setup problem

Posted: Wed May 30, 2018 9:22 am
by tcanthonyii
Weird. I don't totally understand linux so I'm not sure why I can go directly to it but not get there one directory at a time.

Thanks for your help. I was able to copy the files.

Re: Netapp checking setup problem

Posted: Wed May 30, 2018 9:34 am
by tcanthonyii
I do have one other problem with this plugin.

It says this in the instructions: https://outsideit.net/monitoring-netapp-ontap/

Code: Select all

Copy check_netapp_ontap.pl script to your nagios libexec folder and configure the correct permissions

but the download also comes with a commands-netapp.conf file that has information in it. Should this be be copied anywhere?

While creating a command I have a "require option is not set!" error. See attached picture.
command.JPG

Re: Netapp checking setup problem

Posted: Wed May 30, 2018 10:51 am
by scottwilkerson
you can put both of these in /usr/local/nagios/libexec

Or just upload through Admin -> Manage Plugins

Re: Netapp checking setup problem

Posted: Wed May 30, 2018 1:49 pm
by tcanthonyii
OK so now I'm getting a "failed test query: server returned http error: 400 bad" I really wish these plugins had documentation for dummies like me. I don't work with this stuff everyday.

I really appreciate the help.

Re: Netapp checking setup problem

Posted: Wed May 30, 2018 2:04 pm
by scottwilkerson
One thing I am going to mention is that it may be best to put single quotes around your password in the command as the special char can have an effect..

Also, before putting it into nagios, work through making the command work correctly on the command line

Re: Netapp checking setup problem

Posted: Wed May 30, 2018 2:29 pm
by tcanthonyii
I got it working. I had the wrong version of the SDK installed. I have other questions but I need to direct them to the developer I think. For instance I have 2 volumes at or near capacity all the time so I want to exclude them from my volume health check for instance or create a check per volume and or lun.

Re: Netapp checking setup problem

Posted: Wed May 30, 2018 2:54 pm
by tcanthonyii
And now I have that figured out too.

You can close this ticket.