[hobbit] Unexpected service response
Henrik Storner
henrik at hswn.dk
Fri Jun 10 23:28:34 CEST 2005
In <40534FFD21F8E9428DD8CCF2B60B09EC7C0C9D at atlitdc01.atg.local> "Lowery, Michael" <mlowery at alliedtechgroup.com> writes:
[smtp flipping between green and yellow]
>I have changed the smtp test to the following, and I get green, no
>flapping between Yellow and green anymore in the history files either.
>Is the test just wrong by default, or should I be concerned that I had
>to change it from the default?
> [smtp]
> send "ehlo hostname.domainname.com\r\nquit\r\n"
> expect "220"
> options banner
> port 25
The original test was the same as the BB way of testing. That is
not to say it was "right", just to explain where I grabbed it from.
Techically, the original test - which just sends "mail" and then
"quit" - is improper; the "mail" command requires arguments, e.g.
mail from: <some.email at address.net>
so it isn't too surprising that some servers complain about it.
I'm tempted to change it to
[smtp]
send "rset\r\nquit\r\n"
expect "220"
options banner
port 25
and would like to hear if that also works with your setup. I think
the reason for the "mail" command first was to please sendmail,
which has a habit of logging connections that dont send a "mail"
command (it generated a "NOQUEUE" entry in the log, but I dont know
if it still does that).
Regards,
Henrik
More information about the Xymon
mailing list