check_sftp_avail

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
elin
Posts: 4
Joined: Tue Jul 23, 2013 10:39 am

check_sftp_avail

Post 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,,,
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: check_sftp_avail

Post by sreinhardt »

Looks like you are missing the basename package. try: yum install basename
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
elin
Posts: 4
Joined: Tue Jul 23, 2013 10:39 am

Re: check_sftp_avail

Post 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
elin
Posts: 4
Joined: Tue Jul 23, 2013 10:39 am

Re: check_sftp_avail

Post 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...:-)
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_sftp_avail

Post by lmiltchev »

Great!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked