I recall making this change some time back, and there was a problem with
something, can't remember what, but I eventually changed it back.
But that was also many versions ago, probably version 3.something.
It may just work now, and worth a try.
Please let us know the results.
If it's the alpha component people are worried about, manipulating the data
isn't difficult though.
Something similar to this will do the trick.
toByte()
{
OUTPUT=$1
DENOM=$(echo $OUTPUT | sed -e "s/^.*\(.\)$/\1/")
NUMBER=$(echo $OUTPUT | sed "s/.$//")
[ "$DENOM" = "K" ] && OUTPUT=$(echo "$NUMBER*1024" | bc)
[ "$DENOM" = "M" ] && OUTPUT=$(echo "$NUMBER*1024*1024" | bc)
[ "$DENOM" = "G" ] && OUTPUT=$(echo "$NUMBER*1024*1024*1024" | bc)
[ "$DENOM" = "T" ] && OUTPUT=$(echo "$NUMBER*1024*1024*1024*1024" | bc)
echo $OUTPUT
}
On 11 December 2014 at 03:19, Nick Pettefar <user-2027539dd102@xymon.invalid> wrote:
The graphs still work, I believe the df -h is just for the web page
display.
The Disk and Trends graphs still show the same values after the -h
change on our systems.
Regards,
Nick Pettefar
On 10 December 2014 at 19:13, Galen Johnson <user-fc632e705d24@xymon.invalid> wrote:
Also, df -k is numeric...df -h is alphanumeric and would require
additional
manipulation to graph.
--
"Accept the challenges so that you can feel the exhilaration of victory"
- General George Patton