Check IMAP Mailboxes meldet Unkwon wenn keine E-Mail im Postfach vorliegt

Hallo zusammen,

seitdem die Application Kollegen ein Updates ihres IceWarp Mailservers eingespielt haben, bekommen wir folgende Fehlermeldung im Monitoring angezeigt:

An exception occured (Run in debug mode for details): ‘NoneType’ object has no attribute ‘split’

Beim Analysieren habe ich festgestellt das dieser Fehler nur auftritt wenn ich die Optionen --warn-age und --crit-age mit angebe.

An exception occured (Run in debug mode for details): ‘NoneType’ object has no attribute ‘split’
Traceback (most recent call last):
File “/opt/omd/versions/1.5.0p24.cee/lib/nagios/plugins/check_mailboxes”, line 302, in
main(options)
File “/opt/omd/versions/1.5.0p24.cee/lib/nagios/plugins/check_mailboxes”, line 242, in main
old_mails = imap.mails(mb, before=(now - options.warn_age) + 86400)
File “/opt/omd/versions/1.5.0p24.cee/lib/nagios/plugins/check_mailboxes”, line 132, in mails
return MailList(self.__conn, ids[1][0].split())
AttributeError: ‘NoneType’ object has no attribute ‘split’

Problem am Plugin check_mailboxes oder muss der Hersteller IceWarp nachbessern?

Gruß

Man könnte argumentieren, dass die beiden Parameter für das Alter von Emails nur funktionieren können, wenn auch Emails im Postfach liegen. Allerdings sollte hier das Nagios-Plugin mit diesem Umstand umgehen können.

Es muss also einen Fix für check_mailboxes geben.

I agree with @r.sander
Can you share the output of the plugin from the command line with -d (debug) ?

Es hat auch funktioniert bis zum Update des IceWarp Servers.
Die Application Kollegen haben beim Hersteller auch schon ein Ticket offen und ich möchte einfach von der Monitoringseite klären ob es Bug im Monitoring vorliegt oder, was ich hoffe :smiley: , im IceWarp Server.

Debug Output:

An exception occured (Run in debug mode for details): ‘NoneType’ object has no attribute ‘split’
Traceback (most recent call last):
File “/opt/omd/versions/1.5.0p24.cee/lib/nagios/plugins/check_mailboxes”, line 302, in
main(options)
File “/opt/omd/versions/1.5.0p24.cee/lib/nagios/plugins/check_mailboxes”, line 242, in main
old_mails = imap.mails(mb, before=(now - options.warn_age) + 86400)
File “/opt/omd/versions/1.5.0p24.cee/lib/nagios/plugins/check_mailboxes”, line 132, in mails
return MailList(self.__conn, ids[1][0].split())
AttributeError: ‘NoneType’ object has no attribute ‘split’

Hat jemand noch eine Idee woran das liegen und wie man es lösen könnte.
Der Hersteller IceWarp sieht keine Probleme bei sich.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact @fayepal if you think this should be re-opened.