Applications Systems
File Count Monitor is incorrect in SAM
This article addresses an issue that causes the SAM file count monitor to count more files than what displays in File Explorer.
First published date
Last published date
Overview
The SAM file count monitor counts more files than what displays in File Explorer.
Product section
Cause
File Explorer may be hiding the files.
Resolution
Configure File Explorer to display all hidden files.
View the number of files in the folder
- Log in to the server hosting SAM.
- Open the Control Panel and click Appearance and Personalization.
- Click Folder Options.
- Click the View tab and select show hidden files, folder, and drives.
- Deselect Hide protected Operating System files (Recommended), and click Apply.
- Open the fold and ensure the files display.
List the file names that the file monitor is counting
Perform the following wbemtest query. This query includes all files in all subdirectories.
select Name, Path, Drive from CIM_DataFile WHERE Drive = 'C:' and path like '\\ProgramData\\Solarwinds\\Agent\\%'
List the files (and not directories) under a specific directory
Perform the following query:
select Name, Path, Drive from CIM_DataFile WHERE Drive = 'C:' and path like '\\ProgramData\\Solarwinds\\Agent\\'