I need to check the presence of files in a directory which name contains accented letters. It fails to find them with File was NOT found! Invalid file specified: D:/DepotInterface/Reintégrer/ message in the log.
I have the same result when running the command in the NSClient web UI.
When I clone the ‘Reintégrer’ directory with the ‘Reintegrer’ name, check works OK, it returns the correct number of files found.
Following advice found here on a similar problem, I set encoding = utf8, but that doesn’t solve the problem.
Thanks in advance.
- NSClient++ 0.5.2.35-x64 on Windows 2008 R2
- Centreon 2.7 on CentOS 6.1
- command used : check_files “path=D:/DepotInterface/Reintégrer/” “max-depth=1” “filter=creation < 10s” “top-syntax=%(status): %(count) fichiers” “warn=count > 1” “critical=count > 1”