Closed slalomsk8er closed 1 year ago
After upgrade the checks using smb:// fail with the error: type object 'SMBDirEntry' has no attribute 'from_filename'
type object 'SMBDirEntry' has no attribute 'from_filename'
'/usr/lib64/nagios/plugins/file-age' '--critical' '3600' '--critical-count' '0' '--only-files' '--password' '' '--pattern' '*.csv' '--timeout' '3' '--url' 'smb://HOSTNAME/TEST/99.Shared_Folders/8.Import/Excel/APP/API/' '--username' '' '--warning' '3600' '--warning-count' '0'
Upgrade to the current release or main.
AlmaLinux 8
2023022201
3.9
No response
Same error on my side. Error in lib/smb.py.
lib/smb.py
Please use the newest the lib/smb.py
This issue respects the following points:
Which variant of the Monitoring Plugins do you use?
Bug description
After upgrade the checks using smb:// fail with the error:
type object 'SMBDirEntry' has no attribute 'from_filename'
Steps to reproduce - Plugin call
'/usr/lib64/nagios/plugins/file-age' '--critical' '3600' '--critical-count' '0' '--only-files' '--password' '' '--pattern' '*.csv' '--timeout' '3' '--url' 'smb://HOSTNAME/TEST/99.Shared_Folders/8.Import/Excel/APP/API/' '--username' '' '--warning' '3600' '--warning-count' '0'
Steps to reproduce - Data
Upgrade to the current release or main.
Environment
AlmaLinux 8
Plugin Version
2023022201
Python version
3.9
List of Python modules
No response
Additional Information
No response