Community discussions

MikroTik App
just joined
Topic Author
Posts: 18
Joined: Sun Apr 16, 2017 12:30 pm

Script to send emails depends on time

Mon Nov 02, 2020 2:05 pm

Hi Community,

ich got running some scripts. one of my scripts sending me a email, when S2S conection are down. this scripts run fine.

Some sites have a 24h reconnect by the vDSL provider. i try to set this reconnect in the night hours. sometimes the router cant resolv the new ip longer then 5, 10 or 10 minutes.
i set the netwatch host down interval to 15 minutes to prevent spamming me self at night with emails.

for the daytime are 15 minutes to long.

how can i split the script in two scripts or add an condition to send the mail for host are down in the daytime between 5AM and 02 AM after a few seconds and in the Range between 02:01 AM an 4:59 AM after 15-30 minutes?

Who is online

Users browsing this forum: cklee234 and 51 guests