Unless I'm misreading this, it's working.
DIR /mm/foo/request/chkpt yellow size<25622560
I believe that says to turn yellow if less than ~25 MB.
=G=
From: Xymon <xymon-bounces at xymon.com> on behalf of Betsy Schwartz <betsy.schwartz at gmail.com> Sent: Tuesday, February 11, 2014 9:37 PM To: xymon at xymon.com Subject: [Xymon] Dir size check "Could not determine size of directory"
Trying to do a directory size alert but I am getting a yellow alert:
! /mm/foo/request/chkpt Could not determine size of directory /mm/foo/request/chkpt
The directory exists and xymon can read it. It does take a very long time, up to two minutes. Might there be a timeout and if so might I be able to change it?
(but that's why we need to alert, because this dir is growing too large...)
-bash-3.2$ whoami xymon -bash-3.2$ time du -s /mm/foo/request/chkpt 2627560 /mm/foo/request/chkpt
real 1m29.059s user 0m0.115s sys 0m2.259s
client-local config: [foo.example.com<http://foo.example.com>] log:/var/log/messages:102400 ignore MARK ignore be2net dir:/mm/foo/request/chkpt
analysis.cfg: HOST=foo.example.com<http://foo.example.com> LOAD 12.0 99.0 MEMPHYS 100 101 MEMACT 70 80 MEMSWAP 60 95 DIR /mm/foo/request/chkpt yellow size<25622560 PROC crond 1 -1 yellow PROC nscd 1 -1 yellow UP 30m 9999d
Looking at client data I see:
[dir:/mm/foo/request/chkpt ] 2627096 /mm/foo/request/chkpt
Any thoughts? server and client are both 64-bit RHEL5 running xymon 4.3.10 (hope to update soon!)