diff --git a/plugins/apache/apache_memmory b/plugins/apache/apache_memmory index 1390d4dc..2a391ee5 100755 --- a/plugins/apache/apache_memmory +++ b/plugins/apache/apache_memmory @@ -43,8 +43,8 @@ fi if [ "$1" = "config" ]; then echo 'graph_title Average size of apache child processes' - echo 'graph_args --base 1000 -l 0 ' - echo 'graph_vlabel Kb' + echo 'graph_args --base 1024 -l 0 ' + echo 'graph_vlabel Bytes' echo 'graph_scale no' echo 'graph_category webserver' echo 'graph_info Indicate the memdium size of all the apache child process.' @@ -58,7 +58,7 @@ fi matched_processes=$(ps auxf | grep -- "$PROCS" | grep "^$USR" | grep -v grep) if [ -n "$matched_processes" ]; then - average_memory=$(printf '%s' "$matched_processes" | awk '{count+=1; sum+=$6} END {print sum/count}') + average_memory=$(printf '%s' "$matched_processes" | awk '{count+=1; sum+=$6} END {print sum / count * 1024}') else average_memory="U" fi