<div dir="ltr"><span style="font-size:13px">The xymonclient-darwin.sh the xymonclient-freebsd.sh makes use of df -H out of the box. The disk graph is based on capacity %used.  df -k or df-H display the % used. so changing from one to the other should not impact the graphs.  We tried this on another host and df -k or df -h displays the columns differently and I recall having to change the [df] sed stanza to make it display correctly.  I  don't recall the exact steps and we never went further than the one test host. .  </span><br style="font-size:13px"><br style="font-size:13px"><span style="font-size:13px">i</span><span style="font-family:monospace">ndespd1:bin root# df -h<br>Filesystem      Size   Used  Avail Capacity  Mounted on<br>/dev/disk0s2    27Gi   13Gi   14Gi    48%    /<br>devfs          190Ki  190Ki    0Bi   100%    /dev<br>/dev/disk0s4    61Gi  7.1Gi   53Gi    12%    /Users<br>/dev/disk0s5    37Gi  6.6Gi   31Gi    18%    /Applications<br>/dev/disk0s6   432Gi   22Gi  410Gi     6%    /Images<br>/dev/disk0s7   373Gi   12Gi  360Gi     4%    /Data<br>/dev/disk2s2   4.0Ti  3.2Ti  864Gi    79%    /Volumes/Macdata<br>map -hosts       0Bi    0Bi    0Bi   100%    /net<br>map auto_home    0Bi    0Bi    0Bi   100%    /home<br>map -fstab       0Bi    0Bi    0Bi   100%    /Network/Servers<br>/dev/disk1      39Mi   28Mi   12Mi    71%    /Volumes/ConfigTool 4.17<br>indespd1:bin root# df -H<br>Filesystem      Size   Used  Avail Capacity  Mounted on<br>/dev/disk0s2     29G    14G    15G    48%    /<br>devfs           194k   194k     0B   100%    /dev<br>/dev/disk0s4     65G   7.6G    57G    12%    /Users<br>/dev/disk0s5     40G   7.1G    33G    18%    /Applications<br>/dev/disk0s6    464G    24G   440G     6%    /Images<br>/dev/disk0s7    400G    13G   387G     4%    /Data<br>/dev/disk2s2    4.4T   3.5T   928G    79%    /Volumes/Macdata<br>map -hosts        0B     0B     0B   100%    /net<br>map auto_home     0B     0B     0B   100%    /home<br>map -fstab        0B     0B     0B   100%    /Network/Servers<br>/dev/disk1       41M    29M    12M    71%    /Volumes/ConfigTool 4.17<br>indespd1:bin root# df -k<br>Filesystem    1024-blocks       Used Available Capacity  Mounted on<br>/dev/disk0s2     28793176   13499372  15037804    48%    /<br>devfs                 189        189         0   100%    /dev<br>/dev/disk0s4     63476564    7412180  56064384    12%    /Users<br>/dev/disk0s5     39062500    6889736  32172764    18%    /Applications<br>/dev/disk0s6    453125000   22965716 430159284     6%    /Images<br>/dev/disk0s7    390744108   12832232 377911876     4%    /Data<br>/dev/disk2s2   4294631384 3388796832 905834552    79%    /Volumes/Macdata<br>map -hosts              0          0         0   100%    /net<br>map auto_home           0          0         0   100%    /home<br>map -fstab              0          0         0   100%    /Network/Servers<br>/dev/disk1          40000      28200     11800    71%    /Volumes/ConfigTool 4.17</span><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 10, 2014 at 4:17 PM, Vernon Everett <span dir="ltr"><<a href="mailto:everett.vernon@gmail.com" target="_blank">everett.vernon@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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.<div>But that was also many versions ago, probably version 3.something.</div><div>It may just work now, and worth a try.</div><div>Please let us know the results.</div><div><br></div><div>If it's the alpha component people are worried about, manipulating the data isn't difficult though.</div><div><div>Something similar to this will do the trick.</div><div><br></div><div><font face="monospace">toByte()</font></div><div><font face="monospace">{</font></div><div><font face="monospace">    OUTPUT=$1</font></div><div><font face="monospace">    DENOM=$(echo $OUTPUT | sed -e "s/^.*\(.\)$/\1/")</font></div><div><font face="monospace">    NUMBER=$(echo $OUTPUT | sed "s/.$//")</font></div><div><font face="monospace">    [ "$DENOM" = "K" ] && OUTPUT=$(echo "$NUMBER*1024" | bc)</font></div><div><font face="monospace">    [ "$DENOM" = "M" ] && OUTPUT=$(echo "$NUMBER*1024*1024" | bc)</font></div><div><font face="monospace">    [ "$DENOM" = "G" ] && OUTPUT=$(echo "$NUMBER*1024*1024*1024" | bc)</font></div><div><font face="monospace">    [ "$DENOM" = "T" ] && OUTPUT=$(echo "$NUMBER*1024*1024*1024*1024" | bc)</font></div><div><font face="monospace">    echo $OUTPUT</font></div><div><font face="monospace">}</font></div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 11 December 2014 at 03:19, Nick Pettefar <span dir="ltr"><<a href="mailto:Nick@pettefar.com" target="_blank">Nick@pettefar.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The graphs still work, I believe the df -h is just for the web page display.<br>
<br>
The Disk and Trends graphs still show the same values after the -h<br>
change on our systems.<br>
<br>
Regards,<br>
<br>
Nick Pettefar<br>
<span><br>
<br>
On 10 December 2014 at 19:13, Galen Johnson <<a href="mailto:solitaryr@gmail.com" target="_blank">solitaryr@gmail.com</a>> wrote:<br>
> Also, df -k is numeric...df -h is alphanumeric and would require additional<br>
> manipulation to graph.<br>
</span><div><div>_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><span class="HOEnZb"><font color="#888888"><br>
</font></span></div></div></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><span>"Accept the challenges so that you can feel the exhilaration of victory"</span><div><span>- General George Patton</span></div></div>
</font></span></div>
<br>_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br></blockquote></div><br></div>