Script:
--- Up---Script:---------------------------------------------------------------------------------------
:local EmailAdd "phalla.ccmt@gmail.com"
:local CurDate [/system clock get date]
:local CurTime [/system clock get time]
:local HostName "GooGle DNS"
:local HostIP "8.8.8.8"
:log info "$HostName $HostIP is UP"
:log info "Email is sent to phalla.ccmt@gmail.com"
/tool e-mail send to="$EmailAdd" subject="Host \"$HostName\" is UP at $CurTime $CurDate" body="Host \"$HostName($HostIP)\" is up at $CurTime.
Alert by Phalla...........................................!"
------ DOWN---Script:-----------------------------------------------------------------------------
:local EmailAdd "phalla.ccmt@gmail.com"
:local CurDate [/system clock get date]
:local CurTime [/system clock get time]
:local HostName "GooGle DNS"
:local HostIP "8.8.8.8"
:log info "$HostName $HostIP is Down"
:log info "Email is sent to phalla.ccmt@gmail.com"
/tool e-mail send to="$EmailAdd" subject="Host \"$HostName\" is DOWN at $CurTime $CurDate" body="Host \"$HostName($HostIP)\" is down at $CurTime.
Alert by Phalla...........................................!"
Note:
Gmail Server: 173.194.77.108
Gmail Port: 587
2 comments
Write commentsNice post....But what will be the script for frequent email (10-15mints) if down only and one email if up.
ReplyHi.... How to send link status mail to multiple mail id?
ReplyEmoticonEmoticon