Community discussions

MikroTik App
 
User avatar
docto_
newbie
Topic Author
Posts: 28
Joined: Sun Nov 12, 2006 7:48 pm
Location: Latvia

monitor bandwidth and report

Thu Jun 26, 2008 11:45 pm

Hi!

I need script to monitor bandwidth, and report about this.

#Have this:
:local i 0;

/tool bandwidth-test 192.168.250.1 user=admin password=****** direction=transmit protocol=tcp duration=5s do={
:set i $tx-10-second-average;
}

:if ($i<1000000) do={
/tool e-mail send to=my@e-mail.pr subject=$i; }

But this script don`t work. $i=0 because $tx-10-second-average takes in 1s, but I neet to 3-5s.

Thanks!
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7187
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: monitor bandwidth and report

Sat Jun 28, 2008 12:55 pm

Works for me.
By the way "tx-10-second-average" should be in quotes otherwise you will get syntax error.
 
User avatar
docto_
newbie
Topic Author
Posts: 28
Joined: Sun Nov 12, 2006 7:48 pm
Location: Latvia

Re: monitor bandwidth and report

Mon Jun 30, 2008 9:39 am

work, but only in 3.x! in 2.x don`t work.
 
Bossman
just joined
Posts: 12
Joined: Sat Jul 12, 2008 3:13 am

Re: monitor bandwidth and report

Sat Jul 12, 2008 4:00 am

Since we're on the topic... I have 2 more questions.

Is there a way to pull graphs or totals of a random IP? On occasion we want to look at customer X and see how much bandwidth they have used for the month or the last 5 days or whatever.

Expanding on that, what is the best method for pulling this information for input into an accounting system for all your users?

Who is online

Users browsing this forum: No registered users and 7 guests