Skip to content

Commit 7ff96cf

Browse files
superhj1987oldratlee
authored andcommitted
Update monitor-host.sh
1 parent b21a3ba commit 7ff96cf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

monitor-host.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ io_log_path=$LOG_PATH'/io_'$cur_date'.log'
2525
network_log_path=$LOG_PATH'/network_'$cur_date'.log'
2626

2727
# total performance check
28-
top -b -d $DELAY -n $COUNT > $top_log_path 2>&1 &
28+
top -b -d $DELAY -n $COUNT >> $top_log_path 2>&1 &
2929

3030
# memory check
31-
vmstat $DELAY $COUNT > $memory_log_path 2>&1 &
31+
vmstat $DELAY $COUNT >> $memory_log_path 2>&1 &
3232

3333
# cpu check
34-
sar -u $DELAY $COUNT > $cpu_log_path 2>&1 &
34+
sar -u $DELAY $COUNT >> $cpu_log_path 2>&1 &
3535

3636
# IO check
37-
iostat $DELAY $COUNT > $io_log_path 2>&1 &
37+
iostat $DELAY $COUNT >> $io_log_path 2>&1 &
3838

3939
# network check
40-
sar -n DEV $DELAY $COUNT > $network_log_path 2>&1 &
40+
sar -n DEV $DELAY $COUNT >> $network_log_path 2>&1 &

0 commit comments

Comments
 (0)