[Xymon] SMTP on multiple ports

Phil Crooker Phil.Crooker at orix.com.au
Wed May 4 02:21:03 CEST 2011


> Can xymon smtp test on multiple ports out of the box? And if so is
> there a way to see which port is being requested?
> 
> We've got a separate test defined in protocols.cfg and that works,
but
> if the syntax were the same as for other network test, this should
> work also:
> 
> 10.0.1.1     mailer.example.com # smtp smtp:8025
> 
> However I see only one test result with no port identified.
> 
> Maybe protocols.cfg is just the way to do it, but the docs imply
that
> network tests can take a port as a parameter)
> _______________________________________________

Well at the risk of being wrong (yet again), I would think you'd need
to call it by a different name, so smtp and smtp8025 (or whatever).
You'd need to define this in protocols.cfg. You could then do a "chat"
like the one for smtp in protocols.cfg and get a result, rather than
just a connect.

[smtp]
   send "mail\r\nquit\r\n"
   expect "220"
   options banner
   port 25


[smtp8025]
   send "mail\r\nquit\r\n"
   expect "220"
   options banner
   port 8025







More information about the Xymon mailing list