[Xymon] Patch for xymonclient-darwin.sh to fix numerous bugs

Jason White jdwhite at menelos.com
Sun Oct 18 14:17:17 CEST 2015


Greetings,
The following patch fixes these long-standing issues with xymonclient-darwin.sh:

* Disk usage test erroneously uses inode usage values as Darwin combines disk usage and inode usage into the same 'df' output by default.
* Mountpoints with spaces in them were not reported.

The former issues is fixed by passing the '-P' flag to 'df' to restore legacy mode reporting. The latter issue replaces spaces with underscores in the mountpoint.

In addition to checking mount options for 'nobrowse', this patch also exclude readonly volumes which I find are mostly transient DMG files.

Regards,
-Jason

-- 
Jason White
jdwhite at menelos.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: xymonclient-darwin.sh.patch
Type: application/octet-stream
Size: 994 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20151018/d7c54afd/attachment.obj>


More information about the Xymon mailing list