2007-12-15 12:21:11 +01:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Plugin to count the qmail-remote processes
|
|
|
|
#
|
|
|
|
# Magic markers - optional - used by installation scripts and
|
|
|
|
# munin-config:
|
|
|
|
#
|
|
|
|
#%# family=manual
|
|
|
|
#%# capabilities=autoconf
|
|
|
|
|
|
|
|
if [ "$1" = "autoconf" ]; then
|
|
|
|
echo "yes"
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$1" = "config" ]; then
|
|
|
|
|
|
|
|
cat <<EOT
|
|
|
|
graph_title Qmail-remote processes
|
2018-08-02 02:03:42 +02:00
|
|
|
graph_args --base 1000 -l 0
|
2007-12-15 12:21:11 +01:00
|
|
|
graph_vlabel running processes
|
2018-08-01 23:56:56 +02:00
|
|
|
graph_category mail
|
2007-12-15 12:21:11 +01:00
|
|
|
remote.label remote
|
|
|
|
remote.type GAUGE
|
|
|
|
EOT
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo -n "remote.value " && pgrep qmail-remote | wc -l
|