Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
atrocity wrote:ehm, excuse my stupid question, but this summation, is it IN the graphs ?
If yes, then it's ok ... it's working.
But what i really want, is the possibility to put tables, with the summary of the trafic in numbers...
I have a nice PHP script, that can summarize the trafic. You can choose to see the results for a period of days, or for a whole mounth, also a year if you collected the data... Really, i will appreciate if something like that can be done in Cacti, because actually i continue to use MRTG, only for that feature ....
I will be more then happy to share this script, if someone think that it can be used / converted to and for Cacti
Jean
I actually wrote a very similar feature for an ISP/colo that I was doing some work for. It is a pretty cool idea; my biggest concern is where to put it in the UI I could write an option whether to turn it on or off depending on how many users would benefit from such a feature. Thoughts?
It can be simply under the detailed graph pages, no ?
Or, if it's possible, create a brand new feature in cacti....
Can you send me that script, to compare it with my one ?
Thanks
Jean
Yeah, that's definitely one place it could go. I would send you the work I did previously, but it is not an isolated script and fairly tied into Cacti itself. What I did for them was basically create a table that gave GB transfered for each month for each user that logged in.
I think that if there are 2 tables, under the detailed graphs pages, it can be enough.... Something like :
Current mounth traffic : xyz Gb total
(then the last mounths like)
08 : xyz Gb total
07 : xyz Gb total
06 : xyz Gb total
05 : xyz Gb total
04 : xyz Gb total
03 : xyz Gb total
02 : xyz Gb total
01 : xyz Gb total
But, like that, it's not really easy to manage...
Will it not be a better idea, to make a new link appear in the detailed graphs, going to a page with a form, and the user can chose what he want to see ?
Like that, you can put the 'Current mounth traffic'
Jean
raX wrote:Yeah, that's definitely one place it could go. I would send you the work I did previously, but it is not an isolated script and fairly tied into Cacti itself. What I did for them was basically create a table that gave GB transfered for each month for each user that logged in.
-Ian
Yea, something like that would be very useful. Right now, the summation feature works fine on the graphs themselves, but I'm still forced to use MRTS to get traffic sum data for specific time periods, e.g. per day, week, month, with the ability to go back several months.
I imported the new templates into Cacti (.084 from upgrade) and selected 1 interface from a polling host as a test using the bits_sec_total template.
I can see the top level graph fine. It appears to be working correctly. I do not get graphs when I drill down on the graph in question.
Given the fact that the top level graph works, am I just being impatient and the other graphs will show up in a while?
Here is the source:
ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source
ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source
egarnel wrote:Here is the source:
ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source
ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source
If you see this error, it probably means that your RRD file does not exist. Double check to make sure you have a file at /usr/local/cacti/rra/monitor2_bigbrothernmis_server_traffic_in_952.rrd.
The file does indeed exist. The weird thing is that the top level graph shows up and seems to be accurate. This is on a box that has been upgraded to 0.8.4 and has had the modification previously mentioned in this thread.
Typically when the graph looks fine at the top level, but not in detail, it indicates a problem with the graph legend. When a graph is drawn as a top level graph, Cacti doesn't even bother with the graph legend code. Since your bandwidth summation items are both COMMENT types, they both reside on the legend.
In the spirit of debugging, try replacing your 'lib/rrd.php' file with the following:
I have a feeling that your problem is a result of not having a data source selected for the two COMMENT graph items.
Go to "Graph Templates" and select "Interface - Traffic (bits/sec, Total Bandwidth)". Click "Inbound Data Source", make sure that item #5 is selected, and click "Save". Now click "Outbound Data Source", make sure that item #10 is selected, and click "Save".
On graph summation I mean the throughput summation.
Imagine that you buy internet from two different ISP and want to monitor the
sum of its in/out traffic to see what the max peak of it.
A tried to operate with CDEF creating a CDEF grap1+grap2-in/out:(cdef=current_data_source,current_data_source,+) but not worked...
Finally I done manually but I can't print out the summ of current/aver/max
values with gprint although the graph lines are in correct places showing the
sum of values.
I attached a graph to see the result.