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: 1915
Joined: Sat Dec 24, 2016 11:17 am
Location: jo.overland at gmail.com

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"
	}
}
 
Why do not use Splunk to monitor your MikroTik Router(s)? Look at this page in how to set it up.

MikroTik->Splunk
 
 
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: che and 25 guests