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
monitor netapp
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: monitor netapp
Did you make sure to change the execution policies for it?
Code: Select all
chmod +x name-of-file-or-directory-path-and-fileRe: monitor netapp
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
appreciate the help
Re: monitor netapp
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
@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.
"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.
Re: monitor netapp
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.
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
Excellent, thanks for letting us know.