root / plugins / qmail / qremote @ 17f78427
Historique | Voir | Annoter | Télécharger (523 octets)
| 1 |
#!/bin/sh |
|---|---|
| 2 |
# |
| 3 |
# Plugin to count the qmail-remote processes |
| 4 |
# |
| 5 |
# Magic markers - optional - used by installation scripts and |
| 6 |
# munin-config: |
| 7 |
# |
| 8 |
#%# family=manual |
| 9 |
#%# capabilities=autoconf |
| 10 |
|
| 11 |
if [ "$1" = "autoconf" ]; then |
| 12 |
echo "yes" |
| 13 |
exit 0 |
| 14 |
fi |
| 15 |
|
| 16 |
if [ "$1" = "config" ]; then |
| 17 |
|
| 18 |
cat <<EOT |
| 19 |
graph_title Qmail-remote processes |
| 20 |
graph_args --base 1000 -l 0 |
| 21 |
graph_vlabel running processes |
| 22 |
graph_category mail |
| 23 |
remote.label remote |
| 24 |
remote.type GAUGE |
| 25 |
EOT |
| 26 |
exit 0 |
| 27 |
fi |
| 28 |
|
| 29 |
echo -n "remote.value " && pgrep qmail-remote | wc -l |
