I habe the same issue on Debian 7.5.
After installing gawak everything looks ok but I now I geht the following error.
The file /usr/local/nagios/libexec/check_mailq show this.Having no space between pattern and following word is deprecated at ./check_mailq line 613.
Bareword found where operator expected at ./check_mailq line 613, near "/usr/sbin"
(Missing operator before bin?)
Semicolon seems to be missing at ./check_mailq line 618.
syntax error at ./check_mailq line 613, near "/usr/sbin"
syntax error at ./check_mailq line 618, near "exim4 elsif"
syntax error at ./check_mailq line 623, near "nullmailer elsif"
syntax error at ./check_mailq line 670, near "}"
Execution of ./check_mailq aborted due to compilation errors.
Code: Select all
}else{
if (defined $utils::PATH_TO_QMAIL_QSTAT
&& -x $utils::PATH_TO_QMAIL_QSTAT)
{
$mailq = 'qmail';
}
/usr/sbin/postfix elsif (-d '/var/lib/postfix' || -d '/var/local/lib/postfix'
/usr/sbin/postfix || -e '/usr/sbin/postfix' || -e '/usr/local/sbin/postfix')
{
$mailq = 'postfix';
}
exim4 elsif (-d '/usr/lib/exim4' || -d '/usr/local/lib/exim4'
exim || -e '/usr/sbin/exim' || -e '/usr/local/sbin/exim')
{
$mailq = 'exim';
}
nullmailer elsif (-d '/usr/lib/nullmailer' || -d '/usr/local/lib/nullmailer'
|| -e 'nullmailer-send'
|| -e 'nullmailer-send')
{
$mailq = 'nullmailer';
}
else {
$mailq = 'sendmail';
}
}