From 56c8dabfbc6a6dc8cb6a066d0b74f861b9d16327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Wei=C3=9Fl?= Date: Mon, 17 Mar 2014 01:05:08 +0100 Subject: Add 'disksup_posix_only' parameter to disksup On embedded (Linux) systems the "df" program is very often provided by the Busybox (or Toolbox) project. This version does not provide the "-l" option (for displaying only local filesystems) used in disksup.erl. To make disksup work on these embedded platforms, this patch adds a new application parameter 'disksup_posix_only', to make diskup use only options defined in the POSIX standard: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/df.html --- lib/os_mon/doc/src/disksup.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/os_mon/doc') diff --git a/lib/os_mon/doc/src/disksup.xml b/lib/os_mon/doc/src/disksup.xml index dbcfd65095..c8566d0126 100644 --- a/lib/os_mon/doc/src/disksup.xml +++ b/lib/os_mon/doc/src/disksup.xml @@ -73,6 +73,16 @@ much disk can be utilized before the disk_almost_full alarm is set. The default is 0.80 (80%).

+ disksup_posix_only = bool() + +

Specifies whether the disksup helper process should only + use POSIX conformant commands (true) or not. The default is + false. Setting this parameter to true can be + necessary on embedded systems with stripped-down versions + of Unix tools like df. The returned disk data and alarms + can be different when using this option.

+

The parameter is ignored on Windows.

+

See config(4) for information about how to change the value of configuration -- cgit v1.2.3