BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
{bb} Tweak for error with bb-disk.sh on line 178...
I recently installed BB 1.9e client on a Fedora Core 3 machine. This has
two drives setup together as a logical volume. Because of this, the default
name for the device is quite long, ie "/dev/mapper/VolGroup00-LogVol00".
This causes the standard "df -k" to wrap the info for that device to the
next line, and thus messes up the parsing for that drive. In addition to no
longer monitoring that device essentially, it caused an integer comparison
error on line 178 of bb-disk.sh in /bb/bin. The solution is relatively
simple: change the $DFCMD to use "df -k -P" instead of "df -k". This
changes the df to POSIX output, which displays all info on a single line
without wrapping. It has the side effect of using the POSIX phrasing for
the column headers, but since bb-disk.sh doesn't parse the headers anyway
though, it doesn't matter. Finally I can get my device monitored and not
fill up my BBOUT file with useless messages either.
Hope this helps others who might be in the same predicament.
I wanted to pass this information on to be included in the next version,
but I have no idea who to contact about this anymore, or when 1.9f might be
coming out anyway.
---
Tim Meader
CNE Internet Services
Raytheon ITS
Tim.Meader@gsfc.nasa.gov
(301) 286-8013
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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