[Nagiosplug-help] check_mailq under AIX 4.3.3

Subhendu Ghosh sghosh at sghosh.org
Tue Feb 25 02:58:14 CET 2003


On Tue, 25 Feb 2003 Nick.Tschannen at isceco.admin.ch wrote:

> Hello, 
> 
> I had a little problem whit check_mailq under AIX 4.3.3:
> When i tried to execute check_mailq i got the following result:
> 
> 	AIX@:/nagios/libexec> ./check_mailq -w 10 -c 20
> 	Use of uninitialized value in concatenation (.) or string at
> ./check_mailq line 109.
> 	Use of uninitialized value in concatenation (.) or string at
> ./check_mailq line 109.
>  	| mailq =
> 	Use of uninitialized value in exit at ./check_mailq line 110.
> 
> The problem is, under AIX the mailq-command has another output than under
> Linux or Solaris:
> 
> 	AIX@:/nagios/libexec> mailq
> 	The mail queue is empty.
> 
> 	Linux-Solaris#> mailq
> 	/var/spool/mqueue is empty
> 
> As a workaround i changed the following line in check_mailq from:
> 
> 	# only first line is relevant in this iteration.
> 	while (<MAILQ>) {
> 	==>>    if (/mqueue/) {
> To:
> 	# only first line is relevant in this iteration.
> 	while (<MAILQ>) {
> 	==>>    if (/queue/) { 
> 
> This works for me and maybe it helps some other people...
> 
> Nick Tschannen
> 

Thanks  - couple of questions:

- is this a sendmail output or another MTA?
- if there are messages in the queue what is the output?


-- 
-sg





More information about the Help mailing list