Re: "Cannot find file" error on host
Posted: Mon Aug 25, 2014 11:20 am
Dude, nice catch!
Support for Nagios products and services
https://support.nagios.com/forum/
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/perlCode: Select all
#!/usr/bin/perlThis 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.)