Page 1 of 1

check_disk_smb dependencies

Posted: Wed Jul 01, 2020 3:20 pm
by Bitflogger
Hello, I'm running v5.6.14 on a CentOS 7 64-bit VM.

When I run check_disk_smb, I get:

check requires smbclient, smbclient not set

I see a smbclient file on my server, but it seems to be a text file that something else includes, there is no main function.

What do I need to install to support check_disk_smb ?

Thanks!

Earl

Re: check_disk_smb dependencies

Posted: Thu Jul 02, 2020 11:21 am
by ssax
Do this:

Code: Select all

yum install samba-client
Then edit this file:

Code: Select all

/usr/local/nagios/libexec/utils.pm
Change this:

Code: Select all

$PATH_TO_SMBCLIENT = "";
To this:

Code: Select all

$PATH_TO_SMBCLIENT = "/usr/bin/smbclient";
Then it should work.

Re: check_disk_smb dependencies

Posted: Mon Jul 06, 2020 11:39 am
by Bitflogger
That worked!

Thanks!

Please lock the case.

Earl

Re: check_disk_smb dependencies

Posted: Mon Jul 06, 2020 2:57 pm
by scottwilkerson
Bitflogger wrote:That worked!

Thanks!

Please lock the case.

Earl
Great!

Locking thread