Community discussions

MikroTik App
 
johnny09
just joined
Topic Author
Posts: 13
Joined: Wed May 27, 2015 12:21 pm

Interface Rate script

Mon Feb 22, 2021 8:39 am

Hi,

is there a script or someone could write it for incoming rate change, checks by scheduler and sends an email if there are changes.

Image

Have some ISP problems, my rate falls from 1GB to 100MB, so need to know when it happens again.
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3291
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: Interface Rate script

Mon Feb 22, 2021 12:39 pm

This should help you out some.
F.eks your default speed on ethernet 1 is 1Gbps speed.
Add this to a script, and schedule it to run every minute.
Change this part ":put "ether1 is NOT 1Gbps" to some that sends email (do a search here on the forum on how to send email)
/interface ethernet monitor ether1 once do={
	:if ($"rate" != "1Gbps") do={ 
		:put "ether1 is NOT 1Gbps"
	}
}
 
johnny09
just joined
Topic Author
Posts: 13
Joined: Wed May 27, 2015 12:21 pm

Re: Interface Rate script

Mon Feb 22, 2021 2:12 pm

Thanks. Found this post
viewtopic.php?t=101488

Who is online

Users browsing this forum: Bing [Bot], CJWW and 27 guests