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

11/13/2018 3:13 AM

Last published date

8/18/2022 3:58 PM

Overview

The SAM file count monitor counts more files than what displays in File Explorer.

Product section

Server Application Monitor

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 

  1. Log in to the server hosting SAM.
  2. Open the Control Panel and click Appearance and Personalization.
  3. Click Folder Options.
  4. Click the View tab and select show hidden files, folder, and drives.
  5. Deselect Hide protected Operating System files (Recommended), and click Apply.
  6. 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\\'