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,,,
check_sftp_avail
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: check_sftp_avail
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.
Re: check_sftp_avail
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
# 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
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...
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
Great!
Be sure to check out our Knowledgebase for helpful articles and solutions!