BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: {bb} disk status with lvm



Thanks, it works great.

I´ve installed the *h version, and found no “df” in bbsys.local. so I changed the “DF” variable in bbsys.sh for server and client (suse is also server and client).

 

Thanks again!

-----Ursprüngliche Nachricht-----
Von: owner-bb@bb4.com [mailto:owner-bb@bb4.com] Im Auftrag von Brookins, Neil (YBUSA-KOP)
Gesendet: Dienstag, 27. September 2005 17:17
An: bb@bb4.com
Betreff: RE: {bb} disk status with lvm

 

I posted the solution to the “df” line wrapping issue here on Aug. 3, 2005.

See below for the details. Basically you just need to use the “-P” option to “df” on any Linux distribution.

 

-------------------------------------------------------------------------

Issue:            df command on Linux outputs in multi-line format

when volume name is too long. This breaks Big Brother parsing of data.

The BB web page displays just the volume name and not the numbers, percent full, and mount point.

 

Solution:         use the "-P" option in df to force single line

output.

 

Patch location:   ${BBHOME}/install/bbsys.suse        (before installation)

                  ${BBHOME}/etc/bbsys.local           (after

installation)

 

Old code:         DF="/bin/df -k"

New code:         DF="/bin/df -P"

 

Example with "df -k":         (note the new line after the volume name)

/dev/rootvg/postgresslv

                       6192704   4088668   1789464  70%

/usr/local/postgress

 

Example with "df -P":         (note that everything is on one line)

/dev/rootvg/postgresslv   6192704   4088880   1789252      70%

/usr/local/postgress

 

Can this patch be applied to the official sources for the next release?

 

This patch applies to all platforms based upon the GNU implementation of df.

 

Note that the removal of the "-k" option still results in output in KB.

This option does not appear to be needed.

 

Neil G. Brookins

 


From: owner-bb@bb4.com [mailto:owner-bb@bb4.com] On Behalf Of Daniel Bierstedt
Sent: Tuesday, September 27, 2005 9:47 AM
To: bb@bb4.com
Subject: {bb} disk status with lvm

 

Hello,

 

i´m trying to get disk information from my suse server, but it seems that the line is too long for the display. The output looks like that:

 

/dev/mapper/data-data

/dev/sd2                 ******                       ****          60%        /

 

You see, the volume information of the lv “data” is missing. The output of df for the lv is in two lines…


Home | Main Index | Thread Index