/tool netwatch
add disabled=no down-script=":if ([/ping 80.xx.xx.xx count=5] = 0) \\ \r\
\ndo { \r\
\n:log info \"VYPADEK - router XX\";\r\
\n/tool e-mail set address=77.75.76.48 from=\"...@email.cz\" password=1234 port=25 user=\"...@email.cz\";\r\
\n/tool e-mail send from=\"...@email.cz\" to=\"...@email.cz\" subject=(\"MONITOR\") body=(\" VYPADEK - router XX \".[/system clock get time].\" \
- \".[/system clock get date]);\r\
\n}" host=80.xx.xx.xx interval=30s timeout=1s up-script=":if ([/ping 80.xx.xx.xx count=5] = 5) \\ \r\
\ndo { \r\
\n:log info \"OBNOVA - router XX \";\r\
\n/tool e-mail set address=77.75.76.48 from=\"...@email.cz\" password=1234 port=25 user=\"...@email.cz\";\r\
\n/tool e-mail send from=\"...@email.cz\" to=\"...@email.cz\" subject=(\"MONITOR\") body=(\" OBNOVA - router XX \".[/system clock get time].\" -\
\_\".[/system clock get date]);\r\
\n}"
Zapnu MK, kde bezi script, nabootuje a hned se provede UP script (1.mail) a netwatch pinga...
nastane vypadek ciloveho zarizeni, provede se DOWN script (2.mail) a pinga dal, zase se obnovi a UP script posle ted uz 3. email
Ten prvni email, ale nechci...
hapi dik za nasmerovani ;-)