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 gave 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 timestamp and the byte size. And second it requires the string to end after "bytes" 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, but not provided by debian-releases yet. Thank you very much! If we can provide further information please contact us. Greetings, Mit freundlichen Grüßen Jan Szensny Datacenter Engineer ACP IT Solutions AG Heidenkampsweg 100 20097 Hamburg Tel. +49 40 8090776 20 Fax +49 40 8221686 85 E-Mail jan.szen...@acp.de http://www.acp.de ACP IT Solutions AG, Im Dörener Feld 8, D-33100 Paderborn, Vorstand: Dirk Waltje, Philipp Stute, Olaf Mende; Aufsichtsratsvorsitzender: Günther Schiller, Registergericht: Paderborn HRB 3734 Diese E-Mail ist vertraulich. Wenn Sie nicht der vorgesehene Empfänger sind, verwenden Sie bitte keine Inhalte dieser E-Mail und leiten sie auch nicht weiter. Wenn Sie fälschlicherweise diese E-Mail bekommen haben, informieren Sie uns bitte umgehend und löschen 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 delete the document.