check_disk_smb not working
Posted: Tue Apr 22, 2025 11:24 am
I'm trying to monitor some SMB shares, but I run into a weird problem.
If I run the plugin in the console, it works, but if Nagios runs it, I get the "Result from smbclient not suitable" message.
I modified it so I can see the actual return message from smbclient :
If I run the plugin in the console, it works, but if Nagios runs it, I get the "Result from smbclient not suitable" message.
I modified it so I can see the actual return message from smbclient :
Code: Select all
/usr/bin/smbclient //192.168.1.10/Drive -U user%password -m SMB3 -c du
Can't load /etc/samba/smb.conf - run testparm to debug it
ERROR: Could not determine network interfaces, you must use a interfaces config line
Result from smbclient not suitable
UNKNOWN