How capable is the `expect` & `send` in protocols.conf?

Grant Taylor gtaylor at tnetconsulting.net
Mon Nov 6 04:40:02 CET 2023


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


More information about the Xymon mailing list