Nagios and checking samba disks – check_disk_smb
The following is useful when the linux machine is not correctly joined to a domain:
I have noticed a number of PROBLEM alerts from my Nagios 3.2.0 implementation on Fedora 12 when checking the available disk space on a WinXP share such as:
- Result from smbclient not suitable
- No Answer from Client
This used to work before upgrading both my Nagios and Fedora implementations.
To get this working once again, I’ve had to do two things – allow Nagios to login and specify the domain name as part of the user name on the check_disk_smb command.
To permit login to nagios, edit the passwd file with sudo vipw and change the shell to /bin/sh for nagios (should have been /sbin/nologin).
Next, in the private configuration file for Nagios, change the USER variable to be DOMAIN\\\\User; note the four backslashes are necessary. If that USER variable is being used elsewhere where the the new value would alter the results from other Nagios checks, add a new USER variable and update the configuration files accordingly.









