Xymon Mailing List Archive search

file counts

list Galen Johnson
Fri, 3 Mar 2017 14:11:46 +0000
Message-Id: <user-9f2768978e4f@xymon.invalid>

Thanks for the offer, Kenneth.  I have a simple script (ls $dir | wc -l) as well but I had thought that it was already a part of the Xymon base.  It would be nice to have it as an option to DIR and if I can find the time, I may look into dusting off my C skills and take a user-f38fa604f572@xymon.invalid using the terms "skills" along side "C" is a stretch for me :-).


=G=


From: Kenneth S. Petersen <user-bdc293fcf8df@xymon.invalid>
Sent: Friday, March 3, 2017 3:37 AM
To: Galen Johnson; Galen Johnson
Cc: xymon at xymon.com
Subject: SV: [Xymon] file counts

Hi Galen,
I'm using the count file feature but with a external script on windows along with bbwin 0.13 or 0.12

It a two part script, one cfg file in the bbwin etc folder and one vbs in the bbwin ext folder.
Then call it from bbwin.cfg
Actually it's the bbwin, fsmon.vbs that I have altered so it fits my needs.

Let me know if you want the script.


Med Venlig Hilsen
Kenneth S. Petersen
IT Konsulent - Stougaards IT
Wiuffsvej 3, DK-4540 Fårevejle, Denmark
Email: user-376c3952b9e2@xymon.invalid<mailto:user-376c3952b9e2@xymon.invalid> Mob.+45 2163 2325


Fra: Xymon [mailto:xymon-bounces at xymon.com] På vegne af Galen Johnson
Sendt: 3. marts 2017 01:30
Til: Galen Johnson <user-87f955643e3d@xymon.invalid>
Cc: xymon at xymon.com
Emne: Re: [Xymon] file counts

Apparently, I wasn't the only one with this need.  I found a thread from 2011.  I really don't want to go that route so consider this a feature request that DIR can support more than just size but file count as well.
=G=

On Thu, Mar 2, 2017 at 2:20 PM, Galen Johnson <user-87f955643e3d@xymon.invalid<mailto:user-87f955643e3d@xymon.invalid>> wrote:

?Hey,


I could've sworn that Xymon had a way to count the number of files in a particular directory (natively) and you could set up alerts based on number of files.  Apparently, I was wrong or I'm not seeing it in the docs.  Obviously, I could get clever with file ages but that's just annoying.  Am I missing something?


thanks


=G=