[Xymon] file counts
Galen Johnson
Galen.Johnson at sas.com
Fri Mar 3 15:11:46 CET 2017
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 stab at it...though using the terms "skills" along side "C" is a stretch for me :-).
=G=
________________________________
From: Kenneth S. Petersen <ksp at stougaards.dk>
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: info at stougaardsit.dk<mailto:info at stougaardsit.dk> 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 <Galen.Johnson at sas.com>
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 <Galen.Johnson at sas.com<mailto:Galen.Johnson at sas.com>> 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=
_______________________________________________
Xymon mailing list
Xymon at xymon.com<mailto:Xymon at xymon.com>
http://lists.xymon.com/mailman/listinfo/xymon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20170303/34961343/attachment.html>
More information about the Xymon
mailing list