mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 14:16:00 +00:00
Initial version
This commit is contained in:
parent
d48770e0e7
commit
ff6cea900d
1 changed files with 29 additions and 0 deletions
29
plugins/other/qremote
Executable file
29
plugins/other/qremote
Executable file
|
@ -0,0 +1,29 @@
|
||||||
|
#!/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
|
||||||
|
graph_args --base 1000 -l 0
|
||||||
|
graph_vlabel running processes
|
||||||
|
graph_category Mail
|
||||||
|
remote.label remote
|
||||||
|
remote.type GAUGE
|
||||||
|
EOT
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo -n "remote.value " && pgrep qmail-remote | wc -l
|
Loading…
Add table
Add a link
Reference in a new issue