omniti-labs/reconnoiter — pull request #47 by TheTeaWeevil (2012-01-25 22:43:38+00:00)
Title: EHLO Response Metrics Support

I added support into smtp.lua to show metrics for the EHLO response, per this ticket:

https://src.omniti.com/circonus/ticket.php/896

Basically, it pulls out the top response line as the banner, then goes through each of the EHLO response lines, storing values at "ehlo_response_". If there is a field without a parameter (example: "HELP"), it stores the value "true" to indicate that it is there (example: 'ehlo_response_help = true'). If there are one or more parameters (example: "AUTH GSSAPI DIGEST-MD5 CRAM-MD5"), it stores all of the parameters exactly as they were received (example: 'ehlo_response_auth = GSSAPI DIGEST-MD5 CRAM-MD5').