[Nagiosplug-help] check_mailq plugin

Peter Hicks petong at jah.net
Mon Sep 22 11:26:04 CEST 2003


On Fri, Sep 19, 2003 at 11:43:17PM -0400, Subhendu Ghosh wrote:
>On Thu, 18 Sep 2003, Peter Hicks wrote:
>
>> I seem to be having trouble with the check_mailq plugin. When executed,
>> I get the following results:
>> 
>>  ./check_mailq -w 100 -c 500 -v
>> Use of uninitialized value in concatenation (.) or string at ./check_mailq line 110.
>> Use of uninitialized value in concatenation (.) or string at ./check_mailq line 110.
>>  | mailq = 
>> Use of uninitialized value in exit at ./check_mailq line 111.
>
>Which version of check_mailq was this from - did you just copy the plugin 
>over? do an rpm install? update paths in utils.pm?

The output above is fropm the latest plugins on sourceforge, not the
cvs. The plugins were compiled using ./configure \
--with-nagios-user=nagios \
--with-nagios-group=nagios

I downloaded the cvs plugins, compiled them, and tried the check_mailq
plugin from the command line. This is the output I get:

# ./check_mailq -w 5 -c 10
Duplicate specification "Warning=i" for option "warning"
Duplicate specification "Critical=i" for option "critical"
OK: mailq is empty |mailq=0

if I use the -M flag, I get this output:

c# ./check_mailq -M qmail -w 5 -c 10
Duplicate specification "Warning=i" for option "warning"
Duplicate specification "Critical=i" for option "critical"
/usr/sbin/qmail-qstat: line 1: wc: No such file or directory
/usr/sbin/qmail-qstat: line 1: find: No such file or directory
/usr/sbin/qmail-qstat: line 1: wc: No such file or directory
/usr/sbin/qmail-qstat: line 1: wc: No such file or directory
/usr/sbin/qmail-qstat: line 1: find: No such file or directory
/usr/sbin/qmail-qstat: line 1: wc: No such file or directory
/usr/sbin/qmail-qstat: line 1: expr: No such file or directory
/usr/sbin/qmail-qstat: line 1: expr: No such file or directory
Couldn't match /usr/sbin/qmail-qstat output


>
>can you post the output of "/usr/sbin/qmail-qstat"
>Does the first line of the output match the following regex:
>/^messages in queue: (\d+)/
>

output of qmail-qstat:

# qmail-qstat
messages in queue: 0
messages in queue but not yet preprocessed: 0






More information about the Help mailing list