mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
autoconf support
This commit is contained in:
parent
7de8f2cab4
commit
240cf1fdb0
1 changed files with 17 additions and 3 deletions
|
@ -2,9 +2,13 @@
|
||||||
#
|
#
|
||||||
# Munin plugin for monitoring Nginx working set
|
# Munin plugin for monitoring Nginx working set
|
||||||
#
|
#
|
||||||
# ---
|
# by Mike Koss, Feb 12, 2012 - MIT License
|
||||||
|
#
|
||||||
|
#%# family=auto
|
||||||
|
#%# capabilities=autoconf
|
||||||
|
|
||||||
if [ "$1" == config ]; then
|
case $1 in
|
||||||
|
config)
|
||||||
cat <<'EOF'
|
cat <<'EOF'
|
||||||
graph_title NGINX Working Set
|
graph_title NGINX Working Set
|
||||||
graph_vlabel WS Bytes
|
graph_vlabel WS Bytes
|
||||||
|
@ -13,7 +17,17 @@ graph_args --base 1024
|
||||||
ws.label Working Set
|
ws.label Working Set
|
||||||
EOF
|
EOF
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
;;
|
||||||
|
|
||||||
|
autoconf)
|
||||||
|
if [ "$(pidof nginx)" == "" ]; then
|
||||||
|
echo no
|
||||||
|
else
|
||||||
|
echo yes
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
KBS=$(ps -o rss --no-heading -p $(pidof nginx))
|
KBS=$(ps -o rss --no-heading -p $(pidof nginx))
|
||||||
total=0
|
total=0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue