monitor netapp

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Phil7269
Posts: 24
Joined: Tue Oct 16, 2012 1:13 pm

monitor netapp

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: monitor netapp

Post 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
Phil7269
Posts: 24
Joined: Tue Oct 16, 2012 1:13 pm

Re: monitor netapp

Post 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
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: monitor netapp

Post 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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: monitor netapp

Post by abrist »

@Phil7269 - Has this been resolved?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Phil7269
Posts: 24
Joined: Tue Oct 16, 2012 1:13 pm

Re: monitor netapp

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: monitor netapp

Post by slansing »

Excellent, thanks for letting us know.
Locked