[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Minor tweak for the HP-UX client, possibly others for df output
- To: "'hobbit (at) hswn.dk'" <hobbit (at) hswn.dk>
- Subject: Minor tweak for the HP-UX client, possibly others for df output
- From: "Deiss, Mark" <Mark.Deiss (at) acs-inc.com>
- Date: Wed, 5 Oct 2005 06:02:39 -0500
Some sites that have 'df" filesystem listings that span multiple lines may
need to consolidate each filesystem listing onto a single line. Noticed
that the Hobbit rrd entries for our HPs have some "interesting" results ...
Just add the sed filter listed below to clean up the lines. Multiple lines
can occur on HP-UX servers that have long volume group names, think it may
also happen on some versions of Linux boxes, AIX boxes. Filter below is what
is incorporated in BB.
in hobbitclient-hpux.sh file:
Before -
echo "[df]"
/usr/bin/df -Pk
After -
echo "[df]"
/usr/bin/df -Pk | sed -e '/^[^ ][^ ]*$/{
N
s/[ ]*\n[ ]*/ /
}'