uawdijnntqw1x1x1
IP : 216.73.216.74
Hostname : www.vorobey-market.ru
Kernel : Linux www.vorobey-market.ru 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
..
/
usr
/
src
/
..
/
share
/
munin
/
plugins
/
sendmail_mailqueue
/
/
#!/usr/bin/sh # -*- sh -*- : << =cut =head1 NAME sendmail_mailqueue - Plugin to graph the sendmail queue size =head1 CONFIGURATION This plugin uses the following configuration variables [sendmail_mailqueue] env.mspqueue - MSQ queue directory env.mtaqueue - MTA queue directory =head2 DEFAULT CONFIGURATION The default configuration is [sendmail_mailqueue] env.mspqueue /var/spool/mqueue-client env.mtaqueue /var/spool/mqueue =head1 AUTHOR Unknown author =head1 LICENSE GPLv2 =head1 MAGIC MARKERS #%# family=auto #%# capabilities=autoconf =cut MSP_QUEUE=/var/spool/mqueue-client MTA_QUEUE=/var/spool/mqueue if [ "$mspqueue" ]; then MSP_QUEUE=$mspqueue ; fi if [ "$mtaqueue" ]; then MTA_QUEUE=$mtaqueue ; fi if [ "$1" = "autoconf" ]; then if [ -d ${MSP_QUEUE} -a -d ${MTA_QUEUE} ] ; then echo yes exit 0 else echo no exit 0 fi fi if [ "$1" = "config" ]; then echo 'graph_title Sendmail queued mails' echo 'graph_order mails' echo 'graph_vlabel mails in queue' echo 'graph_category sendmail' echo 'mails.label mails' exit 0 fi # Append /. to directory to force following symlinks at the start # point. mspmails=$(find ${MSP_QUEUE}/. -type f -name '[qQ]*' 2>/dev/null | fgrep -v '.hoststat' | wc -l) mtamails=$(find ${MTA_QUEUE}/. -type f -name '[qQ]*' 2>/dev/null | fgrep -v '.hoststat' | wc -l) echo "mails.value `expr ${mspmails} + ${mtamails}`"
/home/../usr/src/../share/munin/plugins/sendmail_mailqueue