Page 1 of 2

nagiosxi_report_bandwidthusage how it does calculation

Posted: Tue Apr 19, 2016 12:18 am
by zaji_nms
dear expert,

would you please explain us how nagiosxi---> report ---> bandwidth usage report data usage calculated ??? we mean to say total usage in GB as shown in an atttached snap ???

your prompt reply will be highly appreciated

Regards

Re: nagiosxi_report_bandwidthusage how it does calculation

Posted: Tue Apr 19, 2016 3:04 pm
by ssax
The XI graphs are showing an average of bandwidth per second, your data at the top is showing total for the day, right?

Re: nagiosxi_report_bandwidthusage how it does calculation

Posted: Tue Apr 19, 2016 3:11 pm
by bwallace
The corresponding plugin is coded so the UI displays megabytes (MB) per second even though the label says megabits (Mb), we've already submitted a bug report for this so the developers can fix it.

In the meantime, if you prefer to see anything other the MB, then you can replace your current plugin with one of the plugins below to suit your preference.

Bits - b, Kb, Mb, Gb
check_rrdtraf_bits.zip
Bytes - B, KB, MB, GB
check_rrdtraf_bytes.zip
**Keep in mind that any one of the new plugins above may be overwritten upon upgrading, at which point they would need to be re-installed.

Re: nagiosxi_report_bandwidthusage how it does calculation

Posted: Wed Apr 20, 2016 12:12 am
by zaji_nms
ssax wrote:The XI graphs are showing an average of bandwidth per second, your data at the top is showing total for the day, right?
yes bandwidth reports is ok Mbps our concern is corresponding usage which shown JAN ( monthly usage comes in GB how its calculated ? corresponding values of monthly bandwidth utilization Mbps report data match with total Bandwidth usage GB ? )

Re: nagiosxi_report_bandwidthusage how it does calculation

Posted: Wed Apr 20, 2016 1:05 am
by zaji_nms
bwallace wrote:The corresponding plugin is coded so the UI displays megabytes (MB) per second even though the label says megabits (Mb), we've already submitted a bug report for this so the developers can fix it.

In the meantime, if you prefer to see anything other the MB, then you can replace your current plugin with one of the plugins below to suit your preference.

Bits - b, Kb, Mb, Gb
check_rrdtraf_bits.zip
Bytes - B, KB, MB, GB
check_rrdtraf_bytes.zip
tried ur script no diff
[root@ libexec]# ./check_rrdtraf_bytes -f /var/lib/mrtg/172.16.40.245_10102.rrd -w 50,50 -c 60,60 -l M
OK - Current BW in: .17MBps Out: .09MBps|in=.177079MB/s;50;60 out=.098480MB/s;50;60
[root@ libexec]# ./check_rrdtraf -f /var/lib/mrtg/172.16.40.245_10102.rrd -w 50,50 -c 60,60 -l M
OK - Current BW in: .17Mbps Out: .09Mbps|in=.177079Mb/s;50;60 out=.098480Mb/s;50;60
**Keep in mind that any one of the new plugins above may be overwritten upon upgrading, at which point they would need to be re-installed.
kindly check an attached snap we are talking about how usage values comes ???

Re: nagiosxi_report_bandwidthusage how it does calculation

Posted: Wed Apr 20, 2016 12:19 pm
by tmcdonald
I spoke to the devs and it appears the totals are pulled from the RRD files, which are where the performance data is stored. Those files average out values over time, so there will be some loss of accuracy the further back it goes, but generally-speaking they should still be very close to reality for a given time frame.

Re: nagiosxi_report_bandwidthusage how it does calculation

Posted: Thu Apr 21, 2016 1:12 am
by zaji_nms
can u please explain us how values are coming from RRD ( what calculation happening in background to represent Monthly / Quaterly seen in Bandwidth Usage Report ? if we want to take this usage as a weekly / daily ( custom ) is there any way plz explain ? as we would like to make sure this report before submit to any customer so need your prompt reply.

Re: nagiosxi_report_bandwidthusage how it does calculation

Posted: Thu Apr 21, 2016 1:18 am
by zaji_nms
also it would be nice if you give host and services filter in Bandwidth Usage Report . at present all services comes in single dropdown and very diffcult to search no search option also available there

Re: nagiosxi_report_bandwidthusage how it does calculation

Posted: Thu Apr 21, 2016 10:27 am
by tmcdonald
You're welcome to look into the code directly if you need exact calculations:

/usr/local/nagiosxi/html/includes/components/bandwidthreport/

You might particularly be interested in the fetch_rrd.php and index.php files.

As for a feature request, I will make sure that gets filed and the thread updated when it does.

Just spoke with the devs, and apparently you can click in the dropdown and start typing, and it will filter based on that. Give it a shot and let me know how that works for you.

Re: nagiosxi_report_bandwidthusage how it does calculation

Posted: Mon Apr 25, 2016 1:54 am
by zaji_nms
thanks for your feedback, we would like to add MAX Bit/s instead of Bytes/s and AVG. what do we need to change ?
exp : last month max bandwidth utilization ( In 10Mbps Out 15Mbps ) and current ( In 5Mbps ; Out 9 Mbps ) so when we fetch report it should give MAX value of last month not total IN / total OUT same way Quater 1 ( MAX value of jan / feb / march ) also what changes required to select RRD from /usr/local/nagios/share/perfdata instead of /var/lib/mrtg ???