# Register routine with plugin registery
$CHECKFUNCS{'mailq'} = \&check_mailq;
-# $Id: check_mailq,v 1.2 2000/08/21 19:35:17 sljohnson Exp $
+# $Id: check_mailq,v 1.3 2000/08/22 19:39:58 sljohnson Exp $
# Sendmail mailq check for mail servers. If checks the numeber of mail
# message queue against the $MAILQWARN AND $MAILQCRIT variables
while (<FOO>) {
if (/Mail Queue\s+\((\d+)/) { $mqcnt = $1; $singleq=1; }
elsif (/Total Requests:\s+(\d+)/) { $mqcnt = $1; }
- elsif (/\s+(\S+)\s+\((\d+)/) { $qcnt{$1} = $2; }
+ elsif (/\s+(\S+)\s+\((\d+)\s+requests\)/) { $qcnt{$1} = $2; }
elsif (/(\S+)\s+is empty/) { $qcnt{$1} = 0; }
# If sendmail is pre 8.10, just grab the first few entries for message