Xymon Mailing List Archive search

xymon file size checking

list Martin Wojak
Fri, 20 Feb 2015 16:16:35 +1100
Message-Id: <user-a7130a0f53bd@xymon.invalid>

Yes, that what I thought too.  But since moving to the xymonclient.ps1, the FILE bits in analysis.cfg file is ignored... 
Martin.


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