Quantcast
Channel: THWACK: All Content - Server & Application Monitor
Viewing all articles
Browse latest Browse all 12281

File Count Monitor deficiencies, and how to overcome them?

$
0
0

This thread is very similiar to the one found at Need help getting File Count monitor to work, but different enough (and enough time has lapsed) for me to feel that a new topic was necessary.

 

I am wanting to use the File Count Monitor to tell me how many *.tmp files are in a particular directory on each of a set of our servers.  However, I began to notice yesterday that once the count got somewhere above 28k or so the process would just bomb out entirely.  Instead, it would generate an error of "

 

 

Param([string]$Path)
$FileType = "*.tmp"
$FileCount = [System.IO.Directory]::GetFiles("$Path", "$FileType").Count
'Message.FileCount: Number of *.tmp files found.'
'Statistic.FileCount: ' + $FileCount

 

When this code is tested outside of Orion, I get the expected results and file count, and it completes within a few seconds.  However, when I test it in Orion, I get an output of:

 

Message.FileCount: Number of *.tmp files found.
Statistic.FileCount: NaN
How can I accurately monitor this directory in Orion, or what am I doing wrong?  Such a simple task is giving me nothing but headache.

Viewing all articles
Browse latest Browse all 12281

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>