[Xymon] Human readable disk space

Steffan mailinglist at tikklik.nl
Mon Sep 4 09:42:10 CEST 2017

Thanxs all


Van: Xymon [mailto:xymon-bounces at xymon.com] Namens Jeremy Laidman
Verzonden: zondag 3 september 2017 11:48
Aan: Steffan Noord <steffannoord at gmail.com>
CC: xymon at xymon.com
Onderwerp: Re: [Xymon] Human readable disk space




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.






On 30 August 2017 at 18:27, Steffan Noord <steffannoord at gmail.com <mailto:steffannoord at gmail.com> > 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



Xymon mailing list
Xymon at xymon.com <mailto:Xymon at xymon.com> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20170904/5e8ed899/attachment.html>

More information about the Xymon mailing list