Linuxfabrik / monitoring-plugins

220+ check plugins for Icinga and other Nagios-compatible monitoring applications. Each plugin is a standalone command line tool (written in Python) that provides a specific type of check.
https://linuxfabrik.ch
The Unlicense
220 stars 51 forks source link

file-age: Type object 'SMBDirEntry' has no attribute 'from_filename' #665

Closed slalomsk8er closed 1 year ago

slalomsk8er commented 1 year ago

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

markuslf commented 1 year ago

Same error on my side. Error in lib/smb.py.

markuslf commented 1 year ago

Please use the newest the lib/smb.py