Projet

Général

Profil

Révision ff6cea90

IDff6cea900d4970e6caa421dfae700948e046b3e1
Parent d48770e0
Enfant 23b3410b

Ajouté par Lapo Luchini il y a presque 14 ans

Initial version

Voir les différences:

plugins/other/qremote
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

Formats disponibles : Unified diff