[Nagiosplug-devel] [ nagiosplug-Bugs-905708 ] check_smtp do not check error codes

SourceForge.net noreply at sourceforge.net
Fri Feb 27 23:07:02 CET 2004


Bugs item #905708, was opened at 2004-02-27 04:24
Message generated for change (Comment added) made by kdebisschop
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=905708&group_id=29880

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Max Kosmach (begemot)
>Assigned to: Karl DeBisschop (kdebisschop)
Summary: check_smtp do not check error codes

Initial Comment:
check_smtp now checks only first code
(ie 220 ...)
But not check any other codes, 
(ie 250 2.1.0 nagios-test at mydomain.ru... Sender ok..)
so I can't detect that my mailserver can't receive mail
because of low space, died milter plugin or other



----------------------------------------------------------------------

>Comment By: Karl DeBisschop (kdebisschop)
Date: 2004-02-28 02:03

Message:
Logged In: YES 
user_id=1671

I have made changes to CVS HEAD to address this.

check_smtp wil now accept command (-C) and response (-R)
arguments. Generally, in pair, but if you have 5 command and
3 responses, it will work excep only 3 reponses will
actually be checked.

I the respons check is a string match against from the start
of the server response. So '-R 250' passes if the server
responds '250 2.1.0 karl at debisschop.net...' but '-R 2.5.1'
is not a match.

That' may be a problem, I think. Should -R be a regex match?

Any other comments?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=905708&group_id=29880




More information about the Devel mailing list