Projet

Général

Profil

Révision 240cf1fd

ID240cf1fdb00336091b524edce728f7d6eb5f9980
Parent 7de8f2ca
Enfant 5f66fcc3, 41bf031a

Ajouté par Mike Koss il y a presque 14 ans

autoconf support

Voir les différences:

plugins/nginx/nginx_working_set
2 2
#
3 3
# Munin plugin for monitoring Nginx working set
4 4
#
5
# ---
5
# by Mike Koss, Feb 12, 2012 - MIT License
6
#
7
#%# family=auto
8
#%# capabilities=autoconf
6 9

  
7
if [ "$1" == config ]; then
10
case $1 in
11
config)
8 12
    cat <<'EOF'
9 13
graph_title NGINX Working Set
10 14
graph_vlabel WS Bytes
......
13 17
ws.label Working Set
14 18
EOF
15 19
    exit 0
16
fi
20
    ;;
21

  
22
autoconf)
23
    if [ "$(pidof nginx)" == "" ]; then
24
        echo no
25
    else
26
        echo yes
27
    fi
28
    exit 0
29
    ;;
30
esac
17 31

  
18 32
KBS=$(ps -o rss --no-heading -p $(pidof nginx))
19 33
total=0

Formats disponibles : Unified diff