Skip to content

Instantly share code, notes, and snippets.

@pilasguru
Created January 22, 2016 20:54
Show Gist options
  • Save pilasguru/f08edd138107e4b10890 to your computer and use it in GitHub Desktop.
Save pilasguru/f08edd138107e4b10890 to your computer and use it in GitHub Desktop.
check host mailserver.localdomain with address 192.168.0.25
if failed host mailserver.localdomain port 25
expect "^220.*\r\n"
send "EHLO monitor.localdomain\r\n"
expect "^250.*\r\n"
send "QUIT\r\n"
expect "^221.*\r\n"
then alert
alert alertas@gmail.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment