aboutsummaryrefslogtreecommitdiffstats
path: root/lib/os_mon/src/disksup.erl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2011-04-12 18:09:11 +0200
committerMicael Karlberg <[email protected]>2011-04-12 18:09:11 +0200
commita0c01db642374fb9fbbbb47263929f1e442e20d7 (patch)
tree4a080c6a416eeaddbfdfca343d3f3d898639b289 /lib/os_mon/src/disksup.erl
parent4346b5dae76052e8c06b1cda70d561b10c1c486d (diff)
parent47fc3df88eada4b07d8805dbc7fd418f6fac1c11 (diff)
downloadotp-a0c01db642374fb9fbbbb47263929f1e442e20d7.tar.gz
otp-a0c01db642374fb9fbbbb47263929f1e442e20d7.tar.bz2
otp-a0c01db642374fb9fbbbb47263929f1e442e20d7.zip
Merge branch 'dev' into bmk/inets/inet56_integration
Diffstat (limited to 'lib/os_mon/src/disksup.erl')
-rw-r--r--lib/os_mon/src/disksup.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/os_mon/src/disksup.erl b/lib/os_mon/src/disksup.erl
index 3340f7ee72..3ee1df759f 100644
--- a/lib/os_mon/src/disksup.erl
+++ b/lib/os_mon/src/disksup.erl
@@ -103,6 +103,7 @@ init([]) ->
Flavor==darwin;
Flavor==linux;
Flavor==openbsd;
+ Flavor==netbsd;
Flavor==irix64;
Flavor==irix ->
start_portprogram();
@@ -267,6 +268,9 @@ check_disk_space({unix, freebsd}, Port, Threshold) ->
check_disk_space({unix, openbsd}, Port, Threshold) ->
Result = my_cmd("/bin/df -k -t ffs", Port),
check_disks_solaris(skip_to_eol(Result), Threshold);
+check_disk_space({unix, netbsd}, Port, Threshold) ->
+ Result = my_cmd("/bin/df -k -t ffs", Port),
+ check_disks_solaris(skip_to_eol(Result), Threshold);
check_disk_space({unix, sunos4}, Port, Threshold) ->
Result = my_cmd("df", Port),
check_disks_solaris(skip_to_eol(Result), Threshold);