Xymon Mailing List Archive search

Dir size check "Could not determine size of directory"

list Betsy Schwartz
Wed, 12 Feb 2014 09:22:54 -0500
Message-Id: <user-309c46142aee@xymon.invalid>

That was it, thank you! A space at the end of the file name.


On Wed, Feb 12, 2014 at 12:55 AM, Henrik Størner <user-ce4a2c883f75@xymon.invalid> wrote:
On 12-02-2014 03:37, Betsy Schwartz wrote:
! /mm/foo/request/chkpt
Could not determine size of directory /mm/foo/request/chkpt

client-local config:
[foo.example.com]
dir:/mm/foo/request/chkpt

analysis.cfg:
HOST=foo.example.com <http://foo.example.com>;

         DIR /mm/foo/request/chkpt yellow size<25622560

Looking at client data I see:

[dir:/mm/foo/request/chkpt ]
2627096 /mm/foo/request/chkpt

Any thoughts?
The only thing that sticks out to my eye is that there seems to be some
whitespace after the directory name in the client data:
[dir:/mm/foo/request/chkpt ]
I think this might be the cause - when the client runs the 'du' command,
it is passed to a shell which will ignore the trailing whitespace; but the
analysis module back on the Xymon server treats it as a valid part of the
directory name and so it cannot match the name from the client data with
the name from the analysis.cfg file.

Could you check the client-local.cfg file and see if there is a trailing
space in the "dir:/mm/foo/request/chkpt" line ?


Regards,
Henrik