<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 1 April 2015 at 06:46, Paul Grondahl <span dir="ltr"><<a href="mailto:paul@arrowtel.net" target="_blank">paul@arrowtel.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Using CentOS 6.4<br></div><div><br></div><div>The last line in the df output shows the NFS mount.</div><div><pre style="word-wrap:break-word;white-space:pre-wrap">[df]
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/vda2 19766140 6449876 12312184 35% /
/dev/vda1 99150 25418 68612 28% /boot</pre></div></div></blockquote><div>It's the [df] section of the client data that is used to record disk usage, not the [mount] section. For the Linux client script (xymonclient-linux.sh) the command is "df -Pl" where the "-l" means "local file systems".</div><div><br></div><div>The script also looks for "nodev" devices and builds an exclude list of filesystem times to remove from the output of "df". This is intended to remove pseudo filesystems such as proc and tmpfs, but also removes NFS-mounted filesystems.</div><div><br></div><div>There are various manipulations that you need to make in order for the "df" command to show the extra filesystems you want. But in my opinion, the easiest way to accomplish this is to simply add an extra "df" command into the [df] part of the script, showing the extra filesystems you want. Such as:</div><div><br></div><div><div>echo "[df]"</div><div>EXCLUDES=`cat /proc/filesystems | grep nodev | awk '{print $2}' | xargs echo | sed -e 's! ! -x !g'`</div><div><div>{ df -Pl -x iso9660 -x $EXCLUDES; df -P -t nfs | tail +2; } | sed -e '/^[^ ][^ ]*$/{</div><div>N</div><div>s/[ ]*\n[ ]*/ /</div><div>}'</div></div></div><div><br></div><div>The bit I added was "df -P -t nfs | tail +2" (along with the {braces} to make it look to awk like a single df command). Give this a go and let me know if it works for you.</div><div><br></div><div>HTH </div><div><br></div><div>Cheers</div><div>Jeremy</div></div></div></div>