Community discussions

MikroTik App
 
mindlesstux
just joined
Topic Author
Posts: 15
Joined: Tue Mar 17, 2009 3:20 pm
Location: Charlotte, NC, USA
Contact:

Grab interface usage and push online

Wed Mar 16, 2011 3:42 pm

At this time this is a request/holding/research thread.

With ATT launching network caps here in the next couple months I want to have something I trust more to check their numbers against.

Goals:
[*]Take ethernet 1 statistics and upload it to a webserver every 5 minute
[*]If webserver responds with anything but OK/http 200, store the results and on next checkin, upload store + current.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Grab interface usage and push online

Wed Mar 16, 2011 4:11 pm

The better approach would be to use an SNMP package on the server to poll the interface stats.
 
mindlesstux
just joined
Topic Author
Posts: 15
Joined: Tue Mar 17, 2009 3:20 pm
Location: Charlotte, NC, USA
Contact:

Re: Grab interface usage and push online

Wed Mar 16, 2011 6:12 pm

I realize that it would be better to use SNMP to gather these stats but I do not have any local system setup for this in any way. Also the webserver is not a full on dedicated server, think shared hosting, only can load up php/cgi/perl scripts.

I would use work resources to do this polling but I dont wanna get caught doing that. ;)

So having to think how to do this the poor mans way.
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Grab interface usage and push online

Mon Mar 21, 2011 10:47 am

elsewhere in forums mrz told that you can use fetch for different reasons. My idea is - get your stats and execute fetch with all the parameters you need, your server will get weird request you can parse and get info you need from that line. result file can contain info - how successful "operation" was.

Who is online

Users browsing this forum: No registered users and 3 guests