[Xymon] Possible bug in protocol tests
Shawn Heisey
hobbit at elyograg.org
Tue Jul 28 16:26:42 CEST 2015
I had a thread on the mailing list about this previously. In the recent
past, I had to rebuild my xymon server and now I'm ready to declare that
I think the behavior I'm seeing is a bug.
http://lists.xymon.com/oldarchive/2010/11/msg00189.html
The original problem is that the default smtp settings which come with
xymon in protocols.cfg produce a warning/error in the postfix log about
improper command pipelining, so I am adjusting the xymon config to keep
that from happening.
Here's a transcript of a session with my mail server:
root at nexus2:~# telnet localhost 25
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 nexus2.REDACTED.com ESMTP Postfix (Ubuntu)
mail
503 5.5.1 Error: send HELO/EHLO first
quit
221 2.0.0 Bye
Connection closed by foreign host.
The following config duplicates that transcript, but it generates a
yellow status on a 4.3.14 server:
[smtp]
expect "220"
send "mail\r\n"
expect "503"
send "quit\r\n"
expect "221"
options banner
port 25
With the following config, I get a green status, but in fact I should
get red, because "220" is *not* in the response to the quit command:
[smtp]
send "mail\r\n"
expect "503"
send "quit\r\n"
expect "220"
options banner
port 25
Here's the bug, which might be two separate bugs: The first group of
settings above should produce a green status, the second group of
settings should produce a red status. In protocols.cfg, "expect" does
not work as expected.
I've got no idea why the first case comes out as yellow.
For the second case, the 'expect "220"' line is passing because of the
220 in the initial banner from the server. That line should fail.
Thanks,
Shawn
More information about the Xymon
mailing list