Page 1 of 1

check_sftp_avail

Posted: Tue Jul 23, 2013 10:59 am
by elin
Just installed the script on my plugins directory and upon "testing" I get a prompt:
"./check_sftp_avail: line 68: /usr/bin/basename: No such file or directory
WARNING: Host key verification failed - unable to authenticate server"

Not your typical shell/perl scripter and not sure how many folks have to say about the script but thought to consult with this "wise-forum" and see if someone can help?

Just in case, I have:
NagiosĀ® Coreā„¢
Version 3.2.3
running on CentOS 5.9

Many thanks,,,

Re: check_sftp_avail

Posted: Tue Jul 23, 2013 3:50 pm
by sreinhardt
Looks like you are missing the basename package. try: yum install basename

Re: check_sftp_avail

Posted: Tue Jul 23, 2013 4:27 pm
by elin
I did and seem to go no where. Here is the output:

# yum install basename
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirror.linux.duke.edu
* extras: mirror.steadfast.net
* rpmforge: mirror.us.leaseweb.net
* updates: mirrors-pa.sioru.com
Setting up Install Process
No package basename available.
Nothing to do

Re: check_sftp_avail

Posted: Wed Jul 24, 2013 8:07 am
by elin
Solved my own prob.
After going through the script, it was looking for /usr/bin/basename whereas my system had /bin/basename.
Adjusting the script to the right path saved the day...:-)

Re: check_sftp_avail

Posted: Wed Jul 24, 2013 12:54 pm
by lmiltchev
Great!