6 Nov
2023
6 Nov
'23
3:40 a.m.
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