Page 1 of 1
monitor netapp
Posted: Fri Feb 08, 2013 2:33 pm
by Phil7269
We just installed a netapp 2240 in our environment and I want to use nagios for monitoring and alerting the Netapp SAN. I've downloaded the plugin check-netapp-ng.pl, placed on my nagios server and have tried running the plugin from the command line yet keep getting the error message "no such file or directory"
Do I need to compile this plugin before it can be used? If so how do I compile? If not i would appreciate some hints on how to get this thing to work?
thank you for your help.
PT
Re: monitor netapp
Posted: Fri Feb 08, 2013 2:44 pm
by slansing
Did you make sure to change the execution policies for it?
Code: Select all
chmod +x name-of-file-or-directory-path-and-file
Re: monitor netapp
Posted: Fri Feb 08, 2013 5:50 pm
by Phil7269
Yes I did. I ran again using the command you listed and still get the same error. I am logged in as root.
appreciate the help
Re: monitor netapp
Posted: Sun Feb 10, 2013 4:54 pm
by jsmurphy
Are you able to do an ls -l on the directory containing the plugin and the output of the attempted script execution including the command you are running?
Re: monitor netapp
Posted: Mon Feb 11, 2013 4:29 pm
by abrist
@Phil7269 - Has this been resolved?
Re: monitor netapp
Posted: Tue Feb 12, 2013 12:42 pm
by Phil7269
yes, this has been resolved. thank you for your assistance
For anyone else that might experience this problem, i had originally created this file on a windows 7 computer and copied to my linux box. I had to create a new text file on the linux box and then copy the content from the windows created file into the new linux text file. I then deleted the windows created file and renamed the new linux text file with the same name, check-netapp-ng.pl
after doing this the file was accessible.
Re: monitor netapp
Posted: Tue Feb 12, 2013 1:04 pm
by slansing
Excellent, thanks for letting us know.