diff --git a/plugins/apache/apache_memmory b/plugins/apache/apache_memmory index f754e00f..24583bb0 100755 --- a/plugins/apache/apache_memmory +++ b/plugins/apache/apache_memmory @@ -36,26 +36,24 @@ PROCS=${binname:-apache2} if [ "$1" = "autoconf" ]; then - echo yes - exit 0 + echo yes + exit 0 fi if [ "$1" = "config" ]; then - echo 'graph_title Medium size of apache child process.' - echo 'graph_args --base 1000 -l 0 ' - echo 'graph_vlabel Kb' - echo 'graph_scale no' - echo 'graph_category webserver' - echo 'graph_info Indicate the memdium size of all the apache child process.' + echo 'graph_title Medium size of apache child process.' + echo 'graph_args --base 1000 -l 0 ' + echo 'graph_vlabel Kb' + echo 'graph_scale no' + echo 'graph_category webserver' + echo 'graph_info Indicate the memdium size of all the apache child process.' + echo "servers.label servers" + echo "servers.type GAUGE" + echo "servers.min 0" - - echo "servers.label servers" - echo "servers.type GAUGE" - echo "servers.min 0" - - exit 0 + exit 0 fi VAL1=`ps auxf | grep ${PROCS} | grep ^${USR} | grep -v grep | wc -l`