Page 1 of 1

Grab interface usage and push online

Posted: Wed Mar 16, 2011 3:42 pm
by mindlesstux
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.

Re: Grab interface usage and push online

Posted: Wed Mar 16, 2011 4:11 pm
by fewi
The better approach would be to use an SNMP package on the server to poll the interface stats.

Re: Grab interface usage and push online

Posted: Wed Mar 16, 2011 6:12 pm
by mindlesstux
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.

Re: Grab interface usage and push online

Posted: Mon Mar 21, 2011 10:47 am
by janisk
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.