diff --git a/RouterOS_Log_To_Alert.rsc b/RouterOS_Log_To_Alert.rsc index 8d97c43..06ca031 100644 --- a/RouterOS_Log_To_Alert.rsc +++ b/RouterOS_Log_To_Alert.rsc @@ -1,5 +1,21 @@ -#log print where message~"telnet" -#log print file= +:global SendEmail do={ + +:local smtpServer #smtp server IP +:local smtpPort #smtp port +:local from #sender email +:local to #recipeints email +:local cc #cc email +:local subject #email subject +:local body #email body + +:log info "..::Sending email notification::.."; +tool e-mail send server=$smtpServer port=$smtpPort from=$from to=$to cc=$cc subject=$subject body=$body; + +} + +#Here script starts + + + -#filter log and if match send alert via email