We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b21a3ba commit 7ff96cfCopy full SHA for 7ff96cf
monitor-host.sh
@@ -25,16 +25,16 @@ io_log_path=$LOG_PATH'/io_'$cur_date'.log'
25
network_log_path=$LOG_PATH'/network_'$cur_date'.log'
26
27
# total performance check
28
-top -b -d $DELAY -n $COUNT > $top_log_path 2>&1 &
+top -b -d $DELAY -n $COUNT >> $top_log_path 2>&1 &
29
30
# memory check
31
-vmstat $DELAY $COUNT > $memory_log_path 2>&1 &
+vmstat $DELAY $COUNT >> $memory_log_path 2>&1 &
32
33
# cpu check
34
-sar -u $DELAY $COUNT > $cpu_log_path 2>&1 &
+sar -u $DELAY $COUNT >> $cpu_log_path 2>&1 &
35
36
# IO check
37
-iostat $DELAY $COUNT > $io_log_path 2>&1 &
+iostat $DELAY $COUNT >> $io_log_path 2>&1 &
38
39
# network check
40
-sar -n DEV $DELAY $COUNT > $network_log_path 2>&1 &
+sar -n DEV $DELAY $COUNT >> $network_log_path 2>&1 &
0 commit comments