Netwatch Simple en Mikrotik

bitfrost's picture

/tool netwatch
add down-script="/tool e-mail send \\\r\
\n to=monitoreo@mail.com \\\r\
\n subject=\"Perdida Conectividad\"\r\
\n/log info \"Perdida Internet\"" host=8.8.8.8 up-script=\
"/tool e-mail send \\\r\
\n to=monitoreo@mail.com \\\r\
\n subject=\"Subida Conectividad\"\r\
\n/log info \"Subida Internet\""

/system logging action
set 1 disk-file-count=10 disk-lines-per-file=10000
/system logging
add action=disk topics=script