Skip to content

Commit

Permalink
pretty it up!
Browse files Browse the repository at this point in the history
  • Loading branch information
Rocco Muscaritolo authored and Rocco Muscaritolo committed Apr 7, 2014
1 parent f33ff4f commit 807d3a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scaledown_check_gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@
#
#return new AlarmStatus(OK, 'Auto Scale servers are being used too heavily for safe scale down.');

########################################################################################################################


# Getting time parameters for sar command
end=`date | awk '{ print $4}'`
start=`date -d "1 hour ago" | awk '{ print $4}'`


########################################################################################################################


# Find average sysload from last hour
sysloadavg=`sar -q -s $start -e $end | grep Average | tail -n 1 | tr -s ' ' | awk '{print $4}'`

Expand Down

0 comments on commit 807d3a8

Please sign in to comment.