[Pkg-nagios-devel] Bug#611914: Bug#611914: nagios-plugins-basic: check_smtp blindly sends HELO no matter how the server responds to connection
waja at cyconet.org
Wed Feb 9 18:24:08 UTC 2011
thanks for taking the time reporting the bug.
On Thursday, 3. February 2011, Daniel Piddock wrote:
> The check_smtp program will blindly send a EHLO/HELO line after getting
> a connection message without paying attention to the response code. If
> the response code indicated a non-OK state, check_smtp should handle it
> cleanly instead of falling over later with "recv() failed" and quitting
> with WARNING code.
Indeed. I was going into contact with upstream about it and the problem should
be fixed. I included the patch into our package.
> This is an edge use case. I want to monitor a smtp server that returns
> "451 local error" after connecting.
> Patch attached checks that the response does not contain "220" before
> comparing against any -e argument. If -e does not match, print a message
> and set return code to WARNING. Either way, return and don't send more
> data to the server.
You patch looks a bit weird about that and I won't adopt that into our
package. It would be nice if you could send you feature request upstream.
Many thanks, Jan.
Never write mail to <waja at spamfalle.info>, you have been warned!
-----BEGIN GEEK CODE BLOCK-----
GIT d-- s+: a C+++ UL++++ P+ L+++ E--- W+++ N+++ o++ K++ w--- O M V- PS PE Y++
PGP++ t-- 5 X R tv- b+ DI D+ G++ e++ h---- r+++ y++++
------END GEEK CODE BLOCK------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 190 bytes
Desc: This is a digitally signed message part.
More information about the Pkg-nagios-devel