Community discussions

MikroTik App
 
howdey57
Member Candidate
Member Candidate
Topic Author
Posts: 122
Joined: Wed Dec 31, 2014 2:36 pm

DHCP-client script can't send (external) email because there is no internet connection

Sat May 01, 2021 6:43 pm

I'm trying to send myself a notification when the DHCP-client reconnects to my ISP. However that doesn't work because the script runs before the DHCP conversation has finished and therefore the email action fails. I presume a splunk message would also fail.

Does anyone have a suggestion about how to send a notification in this scenario?

Charles
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11445
Joined: Thu Mar 03, 2016 10:23 pm

Re: DHCP-client script can't send (external) email because there is no internet connection

Sat May 01, 2021 8:55 pm

Why don't you insert a delay (e.g. of 30 seconds) at the beginning of your script?
 
howdey57
Member Candidate
Member Candidate
Topic Author
Posts: 122
Joined: Wed Dec 31, 2014 2:36 pm

Re: DHCP-client script can't send (external) email because there is no internet connection

Sat May 01, 2021 9:17 pm

Thanks, that worked. Perhaps I should have thought of that!

Who is online

Users browsing this forum: amt, bschapendonk, Dwemer, lurker888, sirbryan, TheCat12 and 95 guests