[Nagiosplug-help] check_mailq plugin
Subhendu Ghosh
sghosh at sghosh.org
Fri Sep 19 20:44:08 CEST 2003
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?
>
> I am using the 1.3.1 plugins. I tried using the plugins that are in cvs,
> but I seem to have problems with this check_mailq as well. The cvs
> version would be ideal, as I am running qmail. This is the output from
> the cvs version:
>
> ./check_mailq -M qmail -w 100 -c 200 -v
> 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+)/
Also does the nagios user have premision to run the qmail-qstat program?
>
> When looking at the source for the cvs version, I see the following,
> which looks like the output of someones mailq in the code:
That is valid for a particular configuration of sendmail with multiple
queues.
<snip>
-sg
--
More information about the Help
mailing list