[Xymon] df -h

Vernon Everett everett.vernon at gmail.com
Wed Dec 10 22:17:49 CET 2014


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 <Nick at pettefar.com> 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 <solitaryr at gmail.com> wrote:
> > Also, df -k is numeric...df -h is alphanumeric and would require
> additional
> > manipulation to graph.
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon
>



-- 
"Accept the challenges so that you can feel the exhilaration of victory"
- General George Patton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20141211/84d97221/attachment.html>


More information about the Xymon mailing list