check_mailq v2.1.1 - bug with nullmailer - always empty mailqueue
Szensny Jan <[email protected]> Tue, 29 Oct 2019 17:40:38 +0000
| Newsgroups | gmane.network.nagios.devel |
|---|---|
| Message-ID | <VI1PR03MB3950C4E7BEF67F78872247B78A610__9820.23873818747$1572422813$gmane$org@VI1PR03MB3950.eurprd03.prod.outlook.com> |
--_000_VI1PR03MB3950C4E7BEF67F78872247B78A610VI1PR03MB3950eurp_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello,
we found a possible bug in the check_mailq plugin
while checking the mailq of nullmailer.
In our case the mailqueue has had multiple mails in queue, but the plugin g=
ave us an OK with 0 Mails in queue.
By checking the source we recognized, that the regexp seems to be outdated.
In our version of the script the regexp requires two spaces between the tim=
estamp and the byte size. And second it requires the string to end after "b=
ytes"
So we just replaced the "require 2 spaces" (\s{2}) by "require minimum one=
space" (\s+)
and removed the trailing "end of string/line" ($)
Original RegExp in Line 525:
/^[1-9][0-9]*-[01][0-9]-[0-3][0-9]\s[0-2][0-9]\:[0-5][0-9]\:[0-5][0-9]\s{2}=
[0-9]+\sbytes$/
Fixed RegExp in Line 525:
/^[1-9][0-9]*-[01][0-9]-[0-3][0-9]\s[0-2][0-9]\:[0-5][0-9]\:[0-5][0-9]\s+[0=
-9]+\sbytes/
Version: check_mailq v2.1.1 (monitoring-plugins 2.1.1)
installed from official Debian-apt-repo
OS: Debian jessie
Additional-Info:
Mailer: Nullmailer
Version: 1:1.13-1+deb8u1
installed from official Debian-apt-repo
OS: Debian jessie
We hope this information can help to improve this check.
Perhaps it's already fixed in a newer version of the monitoring-plugins, bu=
t not provided by debian-releases yet.
Thank you very much!
If we can provide further information please contact us.
Greetings,
Mit freundlichen Gr=FC=DFen
Jan Szensny
Datacenter Engineer
ACP IT Solutions AG
Heidenkampsweg 100
20097 Hamburg
Tel. +49 40 8090776 20
Fax +49 40 8221686 85
E-Mail [email protected]
http://www.acp.de
ACP IT Solutions AG, Im D=F6rener Feld 8, D-33100 Paderborn, Vorstand: Dirk=
Waltje, Philipp Stute, Olaf Mende; Aufsichtsratsvorsitzender: G=FCnther Sc=
hiller, Registergericht: Paderborn HRB 3734
Diese E-Mail ist vertraulich. Wenn Sie nicht der vorgesehene Empf=E4nger si=
nd, verwenden Sie bitte keine Inhalte dieser E-Mail und leiten sie auch nic=
ht weiter. Wenn Sie f=E4lschlicherweise diese E-Mail bekommen haben, inform=
ieren Sie uns bitte umgehend und l=F6schen dieses Dokument.
This e-mail is confidential. If you are not the intended recipient, please =
do not disclose or use the contents of the e-mail. If you have erroneously =
received this e-mail, please inform us immediately by return e-mail and del=
ete the document.
--_000_VI1PR03MB3950C4E7BEF67F78872247B78A610VI1PR03MB3950eurp_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
Hello,</div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
<br>
</div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
we found a possible bug in the check_mailq plugin </div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
while checking the mailq of nullmailer.</div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
In our case the mailqueue has had multiple mails in queue, but the plugin g=
ave us an OK with 0 Mails in queue.</div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
<br>
</div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
By checking the source we recognized, that the regexp seems to be outdated.=
</div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
In our version of the script the regexp requires two spaces between the tim=
estamp and the byte size. And second it requires the string to end after &q=
uot;bytes"</div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
<span style=3D"color: rgb(0, 0, 0); font-family: Arial, Helvetica, sans-ser=
if; font-size: 10pt;">So we just replaced the "require 2 spaces" =
(\s{2}) by "require minimum one space" (\s+)</span></di=
v>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
<span style=3D"color: rgb(0, 0, 0); font-family: Arial, Helvetica, sans-ser=
if; font-size: 10pt;">and removed the trailing "end of string/line&quo=
t; ($)</span></div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
<span style=3D"color: rgb(0, 0, 0); font-family: Arial, Helvetica, sans-ser=
if; font-size: 10pt;"><br>
</span></div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
<span style=3D"color: rgb(0, 0, 0); font-family: Arial, Helvetica, sans-ser=
if; font-size: 10pt;">Original RegExp in Line 525:</span></div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
<span style=3D"color: rgb(0, 0, 0); font-family: Arial, Helvetica, sans-ser=
if; font-size: 10pt;"><span style=3D"color: rgb(32, 31, 30); font-family: A=
rial, Helvetica, sans-serif; font-size: 10pt; background-color: rgb(255, 25=
5, 255); display: inline !important;">/^[1-9][0-9]*-[01][0-9]-[0-3][0-9]\s[=
0-2][0-9]\:[0-5][0-9]\:[0-5][0-9]\s</span><span style=3D"color: rgb(32, 31,=
30); font-family: Arial, Helvetica, sans-serif; font-size: 10pt; backgroun=
d-color: rgb(255, 255, 255); display: inline !important;"><b>{2}</b></span>=
<span style=3D"color: rgb(32, 31, 30); font-family: Arial, Helvetica, sans-=
serif; font-size: 10pt; background-color: rgb(255, 255, 255); display: inli=
ne !important;">[0-9]+\sbytes</span><span style=3D"color: rgb(32, 31, 3=
0); font-family: Arial, Helvetica, sans-serif; font-size: 10pt; background-=
color: rgb(255, 255, 255); display: inline !important;"><b>$</b></span><spa=
n style=3D"color: rgb(32, 31, 30); font-family: Arial, Helvetica, sans-seri=
f; font-size: 10pt; background-color: rgb(255, 255, 255); display: inline !=
important;">/</span><br>
</span></div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
<span style=3D"color: rgb(0, 0, 0); font-family: Arial, Helvetica, sans-ser=
if; font-size: 10pt;"><span style=3D"color: rgb(32, 31, 30); font-family: &=
quot;Segoe UI", "Segoe UI Web (West European)", "Segoe =
UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue&q=
uot;, sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255=
); display: inline !important"><br>
</span></span></div>
<div style=3D""><font color=3D"#201f1e"><span style=3D"font-size: 10pt; fon=
t-family: Arial, Helvetica, sans-serif;">Fixed RegExp in Line 525:</span></=
font></div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
<span style=3D"color: rgb(0, 0, 0); font-family: Arial, Helvetica, sans-ser=
if; font-size: 10pt;"><span style=3D"color: rgb(32, 31, 30); font-family: A=
rial, Helvetica, sans-serif; font-size: 10pt; background-color: rgb(255, 25=
5, 255); display: inline !important;">/^[1-9][0-9]*-[01][0-9]-[0-3][0-9]\s[=
0-2][0-9]\:[0-5][0-9]\:[0-5][0-9]\s<b>+</b>[0-9]+\sbytes/</span><br=
>
</span></div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
<span style=3D"color: rgb(0, 0, 0); font-family: Arial, Helvetica, sans-ser=
if; font-size: 10pt;"><br>
</span></div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
<span style=3D"color: rgb(0, 0, 0); font-family: Arial, Helvetica, sans-ser=
if; font-size: 10pt;"><br>
</span></div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
<span style=3D"color: rgb(0, 0, 0); font-family: Arial, Helvetica, sans-ser=
if; font-size: 10pt;">Version: check_mailq v2.1.1 (monitori</span><span sty=
le=3D"color: rgb(0, 0, 0); font-family: Arial, Helvetica, sans-serif; font-=
size: 10pt;">ng-plugins 2.1.1)</span><br>
</div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
<span style=3D"color: rgb(0, 0, 0); font-family: Arial, Helvetica, sans-ser=
if; font-size: 10pt;">installed from official Debian-apt-repo</span><br>
</div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
OS: Debian jessie</div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
<br>
</div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
Additional-Info:</div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
Mailer: Nullmailer</div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
Version: 1:1.13-1+deb8u1</div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
installed from official Debian-apt-repo</div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
OS: Debian jessie</div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
<br>
</div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
We hope this information can help to improve this check.</div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
Perhaps it's already fixed in a newer version of the monitoring-plugins, bu=
t not provided by debian-releases yet.</div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
<br>
</div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
Thank you very much!</div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
If we can provide further information please contact us.</div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
<br>
</div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
Greetings,</div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
<br>
</div>
<div style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 10pt; c=
olor: rgb(0, 0, 0);">
<br>
</div>
<div id=3D"Signature">
<div class=3D"BodyFragment"><font size=3D"2"><span style=3D"font-size:10pt;=
">
<div class=3D"PlainText">Mit freundlichen Gr=FC=DFen<br>
<br>
Jan Szensny<br>
Datacenter Engineer<br>
<br>
ACP IT Solutions AG<br>
Heidenkampsweg 100<br>
20097 Hamburg<br>
Tel. +49 40 8090776 20 <br>
Fax +49 40 8221686 85<br>
<br>
E-Mail [email protected]<br>
http://www.acp.de<br>
<br>
<br>
ACP IT Solutions AG, Im D=F6rener Feld 8, D-33100 Paderborn, Vorstand: Dirk=
Waltje, Philipp Stute, Olaf Mende; Aufsichtsratsvorsitzender: G=FCnther Sc=
hiller, Registergericht: Paderborn HRB 3734<br>
Diese E-Mail ist vertraulich. Wenn Sie nicht der vorgesehene Empf=E4nger si=
nd, verwenden Sie bitte keine Inhalte dieser E-Mail und leiten sie auch nic=
ht weiter. Wenn Sie f=E4lschlicherweise diese E-Mail bekommen haben, inform=
ieren Sie uns bitte umgehend und l=F6schen
dieses Dokument.<br>
This e-mail is confidential. If you are not the intended recipient, please =
do not disclose or use the contents of the e-mail. If you have erroneously =
received this e-mail, please inform us immediately by return e-mail and del=
ete the document.<br>
<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>
--_000_VI1PR03MB3950C4E7BEF67F78872247B78A610VI1PR03MB3950eurp_--