mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 10:28:36 +00:00
- have some dirs
This commit is contained in:
parent
0b089ea777
commit
08346aac58
687 changed files with 0 additions and 0 deletions
30
plugins/mail/queuestats
Executable file
30
plugins/mail/queuestats
Executable file
|
@ -0,0 +1,30 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Plugin to count the qmail queue
|
||||
#
|
||||
# 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 queue stats
|
||||
graph_args --base 1000 -l 0
|
||||
graph_vlabel mails in queue
|
||||
graph_category Mail
|
||||
queue.label queue
|
||||
queue.type GAUGE
|
||||
queue.min 0
|
||||
EOT
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo -n "queue.value " && /usr/bin/find $queue/mess/ -type f -print | /usr/bin/wc -l
|
Loading…
Add table
Add a link
Reference in a new issue