Projet

Général

Profil

Paste
Télécharger au format
Statistiques
| Branche: | Révision:

root / plugins / qmail / qremote @ 17f78427

Historique | Voir | Annoter | Télécharger (523 octets)

1 ff6cea90 Lapo Luchini
#!/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 17f78427 Lars Kruse
graph_args --base 1000 -l 0
21 ff6cea90 Lapo Luchini
graph_vlabel running processes
22 33e95e6f Lars Kruse
graph_category mail
23 ff6cea90 Lapo Luchini
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