From 7825fc9ed2024b57536e438dcd000365d32e3fa4 Mon Sep 17 00:00:00 2001 From: Arthur Lutz Date: Wed, 24 May 2017 19:09:20 +0200 Subject: [PATCH] use uwsgi not uwsgi_python --- plugins/uwsgi/uwsgi_ | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/uwsgi/uwsgi_ b/plugins/uwsgi/uwsgi_ index 735227a3..c0fb48eb 100644 --- a/plugins/uwsgi/uwsgi_ +++ b/plugins/uwsgi/uwsgi_ @@ -27,7 +27,7 @@ if [ "$mode" = "memory" ]; then exit 0 else - memory_array=(`ps auwx | grep "uwsgi_python" | grep -v grep | awk '{print $6 }'`) + memory_array=(`ps auwx | grep -i "uwsgi" | grep -v grep | awk '{print $6 }'`) for i in "${memory_array[@]}" do @@ -46,7 +46,7 @@ elif [ "$mode" = "processes" ]; then echo "processes.label active processes" else echo -n "processes.value " - ps awwwux | grep 'uwsgi_python' | grep -v grep | wc -l + ps awwwux | grep -i 'uwsgi' | grep -v grep | wc -l exit 0 fi @@ -61,7 +61,7 @@ elif [ "$mode" = "average" ]; then echo 'uwsgi_average.info The average process size for uWSGI' else echo -n "uwsgi_average.value " - ps awwwux | grep 'uwsgi_python' | grep -v grep | awk '{total_mem = $6 * 1024 + total_mem; total_proc++} END{printf("%d\n", total_mem / total_proc)}' + ps awwwux | grep -i 'uwsgi' | grep -v grep | awk '{total_mem = $6 * 1024 + total_mem; total_proc++} END{printf("%d\n", total_mem / total_proc)}' exit 0 fi