<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 26 March 2015 at 21:37, Marcus Mundt <span dir="ltr"><<a href="mailto:marcus.mundt@forsa.de" target="_blank">marcus.mundt@forsa.de</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">I monitor filesystems on one of my xymon clients. This went really well until switching to NFS. I managed to list and monitor the NFS mount, but the parsing of the transmitted string for the disk usage seems to go wrong at some point</blockquote></div><br>I would think that NFS-mounted filesystems would be monitored on the server that hosted them, rather than other servers that mount them.</div><div class="gmail_extra"><br></div><div class="gmail_extra">> <span style="font-size:12.8000001907349px">#df -Pl -x iso9660 -x $EXCLUDES | sed -e '/^[^  ][^     ]*$/{</span></div><span style="font-size:12.8000001907349px">> # without "l" lists NAS_BACKUP_DAILY</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">> df -hP -x iso9660 -x $EXCLUDES | sed -e '/^[^   ][^     ]*$/{</span><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">You've replaced "df -Pl" with "df -hP".  The "-h" changes the headers.  This is important because the [df] parser specifically looks for columns with the titles "Available", "Capacity" and "Mounted" to work out what each column is for.  By adding "-h" you instead get "Avail", "Use%" and "Mounted".  I think when the column headers can't be found, the parser will assume that the values are in position 1, hence the "172" being interpreted as disk space usage.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">Try changing "df -hP" to "df -P" and see if that works better.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">J</span></div><div><span style="font-size:12.8000001907349px"><br></span></div></div>