Page 1 of 1

check_smb_share returning error 127

Posted: Wed Apr 12, 2017 9:27 am
by SavaSC
Hello,

I have installed the plugin check_smb_share and am trying to set it up. I have the command defined as:

Code: Select all

$USER$/check_smb_share -H $HOSTNAME$ -s $ARG1$ -u $ARG2$ -p $ARG3$
When I run the check from the command line, it works fine and I get back that the share is OK. However, from inside of Nagios, it returns the following error:
(Return code of 127 is out of bounds - plugin may be missing)
Any ideas about what I'm doing wrong??

Re: check_smb_share returning error 127

Posted: Wed Apr 12, 2017 10:20 am
by mcapra
Are you certain this is correct?

Code: Select all

$USER$/check_smb_share -H $HOSTNAME$ -s $ARG1$ -u $ARG2$ -p $ARG3$
Typically $USER1$ rather than $USER$ is used to represent the path to the plugins Nagios XI uses.

Re: check_smb_share returning error 127

Posted: Wed Apr 12, 2017 10:28 am
by SavaSC
Well....... Allll Righty then! LOL! Thanks for catching my error. That seems to have fixed the problem.

Re: check_smb_share returning error 127

Posted: Wed Apr 12, 2017 10:37 am
by cdienger
Thanks for the update. Can I assume we can lock the thread?