check_smb_share returning error 127

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
SavaSC
Posts: 238
Joined: Wed Feb 23, 2011 4:49 pm

check_smb_share returning error 127

Post 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??
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: check_smb_share returning error 127

Post 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.
Former Nagios employee
https://www.mcapra.com/
SavaSC
Posts: 238
Joined: Wed Feb 23, 2011 4:49 pm

Re: check_smb_share returning error 127

Post by SavaSC »

Well....... Allll Righty then! LOL! Thanks for catching my error. That seems to have fixed the problem.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: check_smb_share returning error 127

Post by cdienger »

Thanks for the update. Can I assume we can lock the thread?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked