How capable is the `expect` & `send` in protocols.conf?
list Grant Taylor
Sun, 5 Nov 2023 21:40:02 -0600
Message-Id: <user-5b99b603acf3@xymon.invalid>
Hi,
How capable is the `expect` and `send` in protocols.conf?
I'm wondering if I can have multiple instances of `expect` and / or `send` for the same protocol definition.
My current use case is for monitoring of an SMTP server that's using multi-line SMTP greetings.
220-first line
220 second line
I want to use the following in protocols.conf but I'm not sure if it will work as desired or not.
expect "220-"
expect "220 "
send "QUIT"
I'd like Xymon to send "QUIT" /after/ it receives the "220 " line (with space).
--
Grant. . . .
unix || die