"Cannot find file" error on host
Re: "Cannot find file" error on host
Dude, nice catch!
-
- Posts: 43
- Joined: Tue Jul 15, 2014 6:58 pm
Re: "Cannot find file" error on host
Wouldn't you know it. A missing forward slash has caused me almost a weeks worth of trouble. Thank you guys so much for all you r help with this. And thank you millisa for giving me a rundown on how to write a better Perl script. Everything seems to be working now. I greatly appreciate everyone helping here.emislivec wrote:This would account for the error from the log:millisa wrote:I'll take a swing since I have an unhealthy relationship with perl...
The perl script has a few issues:Missing leading slash there. Should probably be:Code: Select all
#!usr/bin/perl
Code: Select all
#!/usr/bin/perl
This would happen if /usr/local/nagios/libexec/ftp.pl doesn't exist, or the interpreter given in the #! line doesn't exist.Code: Select all
execvp(/usr/local/nagios/libexec/ftp.pl, ...) failed. errno is 2: No such file or directory
(Edit: Also thanks for the thorough posting millisa.)
Re: "Cannot find file" error on host
If nothing else, regardless of your perl knowledge gained, at least if someone else has a similar problem, your week's worth of banging your head against the screen might help them solve their problem.