Xymon Mailing List Archive search

Human readable disk space

list Jeremy Ruffer
Sun, 3 Sep 2017 11:36:57 +0100
Message-Id: <user-be62ef524378@xymon.invalid>

That's the advantage of using df -B G.
It's still working in blocks and just increases the size of the blocks.
Jeremy Ruffer

On 3 September 2017 at 10:48, Jeremy Laidman <user-71895fb2e44c@xymon.invalid>
wrote:
Steffan

The table shown in the disk test page is directly from the "df" command
executed on the client. This can't be modified without also changing the
parser (in xymond_client), because it assumes that the numbers are in
blocks.

It would be possible to make your own test column to use in place of
"disk" and then reformat the client data message to your liking - perhaps
even constructing an HTML table. However you'd either have to name it
something other than "disk" and have two tests almost the same, or you'd
need to somehow suppress the "disk" message from the xymond_client process.
I'm not sure how you would do this.

Of course it's open source, so you're free to adjust xymond_client to
reformat the disk status message any way you see fit. In short, I don't see
any easy way to do this.

Cheers
Jeremy


On 30 August 2017 at 18:27, Steffan Noord <user-f8824a6d4da5@xymon.invalid> wrote:
Im using xymon for many years
I just wondering is there a easy way to make the output more readable?

Filesystem             1024-blocks      Used  Available Capacity Mounted
on
/dev/mapper/sysvg-root    10321208   4397592    5399328      45% /
/dev/sda1                  1032088    152244     827416      16% /boot
/dev/mapper/sysvg-vz    1898719656 249544968 1552725360      14% /vz

As you see there is no scaling in the output to GB etc

Thanxs

Steffan