![](https://secure.gravatar.com/avatar/21caf0a08d095be7196a1648d20942be.jpg?s=120&d=mm&r=g)
Hm.. Well... you have an odd requirement if your wish is to see how many bytes were transferred on a port since the device rebooted or the counter wrapped. But ok... if it works for you... :-)
Tom
On 12/12/2014 20:21, Justin Miller wrote:
In the db observium.ports-state, there is ifInOctlets, ifInOctlets_delta, and ifInOctets_rate. It's also there for ifOutOctlets, ifOutOctlets_delta, and ifOutOctets_rate. So the values I want are already in the database.
Furthermore, when the html/pages/devie/port.inc.php invokes includes/print-interface.inc.php to print each interface, $port contains those values.
Hacking it into the view
'<i class="icon-circle-arrow-down"
style="',$port['bps_in_style'], '"></i> <span class="small" style="',$port['bps_in_style'], '">' , formatStorage($port['ifInOctets']) , '</span><br />', '<i class="icon-circle-arrow-up" style="',$port['bps_out_style'],'"></i> <span class="small" style="',$port['bps_out_style'],'">' , formatStorage($port['ifOutOctets']) , '</span><br />',
Produces somewhat correct results which are good enough for what I need. I just need to sort it now. Maybe make a new page.
On Dec 12, 2014, at 12:19 PM, Tom Laermans <tom.laermans@powersource.cx mailto:tom.laermans@powersource.cx> wrote:
Nope.
On 12/12/2014 06:11 PM, Justin Miller wrote:
Because it's a round robin database and it has to sum the octlets for that given time, right?
Doesn't the poller read how many packets have been send or received on every port anyways? ifOutOclets / ifInOclets ? Isn't that a running total? Then to get the rate you take the difference between the current poll and the last poll and divide it by the time between polls?
There has to be an OID for this which would be easy to store at poll time, right?
Justin
On Dec 12, 2014, at 10:50 AM, Tom Laermans <tom.laermans@powersource.cx mailto:tom.laermans@powersource.cx> wrote:
It will take about 15 minutes to generate that page, then.
On 12/12/2014 04:14 PM, Justin Miller wrote:
This information is already in the RRD file is it not? Can't you export the numerical value for the TOTAL from the graph for each port and then sort based on that?
It does not have to be 100% accurate, I'm not billing for it. I just need to see what the top 10 busiest ports are on a switch.
<Mail Attachment.png>
On Dec 12, 2014, at 2:24 AM, Adam Armstrong <adama@memetic.org mailto:adama@memetic.org> wrote:
Total in what time frame? Day, week, month, year, decade? Whence would this information come? No, doing this isn't really realistically possible to do in a non-slow way (or useful) adam. ------ Original Message ------ From: "Justin Miller" <observium@dynstatic.net mailto:observium@dynstatic.net> To: "Observium Network Observation System" <observium@observium.org mailto:observium@observium.org> Sent: 12/11/2014 12:17:56 PM Subject: Re: [Observium] Sort ports based on total data usage > That appears to be instantaneous amount when the poller > collected it. I need how many bytes total. Not how many bits per > second. > > I need to see that this port downloaded 3.4 TB of data, not that > it's doing 7 megabits per second. > > Justin > >> On Dec 11, 2014, at 1:12 PM, Spencer Gaw <spencerg@frii.net >> mailto:spencerg@frii.net> wrote: >> >> Click on the Traffic column on the ports page. >> >> Regards, >> >> SG >> >> On 12/11/2014 11:08 AM, Justin Miller wrote: >>> We need to view the top X ports on switches which have used >>> the most traffic (in & out) for a given time. I haven't been >>> able to find this view. Is there a way to see this or will we >>> have to create a special page to view this? >>> >>> Justin >>> _______________________________________________ >>> observium mailing list >>> observium@observium.org mailto:observium@observium.org >>> http://postman.memetic.org/cgi-bin/mailman/listinfo/observium >> >> _______________________________________________ >> observium mailing list >> observium@observium.org mailto:observium@observium.org >> http://postman.memetic.org/cgi-bin/mailman/listinfo/observium > _______________________________________________ observium mailing list observium@observium.org mailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org mailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org mailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium