8 nullmailer_mailqueue - Plugin to graph the nullmailer queue size
12 This plugin uses the following configuration variables
14 [nullmailer_mailqueue]
15 env.queuecmd - mailq command to execute
17 =head2 DEFAULT CONFIGURATION
19 The default configuration is
21 [nullmailer_mailqueue]
22 env.mtaqueue /usr/bin/mailq
35 #%# capabilities=autoconf
38 QUEUECMD=${queuecmd:-/usr/bin/mailq}
40 if [ "$1" = "autoconf" ]; then
41 if [ -x "$QUEUECMD" ] ; then
45 echo "no (queue command ${QUEUECMD} not found)"
50 if [ "$1" = "config" ]; then
52 echo 'graph_title nullmailer queued mails'
53 echo 'graph_order mails'
54 echo 'graph_vlabel mails in queue'
55 echo 'graph_category nullmailer'
56 echo 'mails.label mails'
60 mtamails=$(${QUEUECMD} | grep -Ec '[0-9]{4}')
61 echo "mails.value ${mtamails}"