BB Unix Network Monitor - Message

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

{bb} df problem on RedHat



Issue:		df command on Red Hat 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.redhat	(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?

Does this patch apply to all platforms based upon the GNU implementation
of df? (SuSe, caldera, debian, mandrake, etc.)

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



--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index