Xymon Mailing List Archive search

xymon file size checking

3 messages in this thread

list Martin Wojak · Fri, 20 Feb 2015 13:29:34 +1100 ·
I'm using the new Xymon Powershell Client (xymonclient.ps1).

I use dirsize and it works great for directories, but can't find a file 
size checker?

Thanks,

Martin.
list Jeremy Laidman · Fri, 20 Feb 2015 14:32:15 +1100 ·
quoted from Martin Wojak
On 20 February 2015 at 13:29, <user-a23a3b28d7cd@xymon.invalid> wrote:
I use dirsize and it works great for directories, but can't find a file
size checker?
According to the PS client documentation, "same as standard
client-local.cfg".  So define the "file:" entry the same as "dirsize",

file:/name/of/file

and then on your Xymon server in analysis.cfg, set your threshold,
something like:

FILE /name/of/file SIZE>10M yellow
FILE /name/of/file SIZE>1G red

J
list Martin Wojak · Fri, 20 Feb 2015 16:16:35 +1100 ·
Yes, that what I thought too.  But since moving to the xymonclient.ps1, the FILE bits in analysis.cfg file is ignored... 
Martin.
quoted from Jeremy Laidman


From:   Jeremy Laidman <user-71895fb2e44c@xymon.invalid>
To:     user-a23a3b28d7cd@xymon.invalid, Cc:     "xymon at xymon.com" <xymon at xymon.com>
Date:   20/02/2015 02:32 PM
Subject:        Re: [Xymon] xymon file size checking


On 20 February 2015 at 13:29, <user-a23a3b28d7cd@xymon.invalid> wrote:
I use dirsize and it works great for directories, but can't find a file size checker? 
According to the PS client documentation, "same as standard client-local.cfg".  So define the "file:" entry the same as "dirsize", 
file:/name/of/file

and then on your Xymon server in analysis.cfg, set your threshold, something like:

FILE /name/of/file SIZE>10M yellow
FILE /name/of/file SIZE>1G red

J